Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cbmroot
Manage
Activity
Members
Labels
Plan
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computing
cbmroot
Commits
98e73f4e
Commit
98e73f4e
authored
3 years ago
by
Pierre-Alain Loizeau
Browse files
Options
Downloads
Patches
Plain Diff
In check_media macro, do not stop on 1st missing file and print all
parent
1fb0fea4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!535
Change setups for CI testing suite of mcbm simulation to current/future ones....
Pipeline
#13780
failed
3 years ago
Stage: checkRepository
Stage: checkFormat
Stage: build
Stage: finalise
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
macro/geometry/check_media.C
+5
-3
5 additions, 3 deletions
macro/geometry/check_media.C
with
5 additions
and
3 deletions
macro/geometry/check_media.C
+
5
−
3
View file @
98e73f4e
...
@@ -28,6 +28,7 @@ void check_media(const char* dataset = "test")
...
@@ -28,6 +28,7 @@ void check_media(const char* dataset = "test")
int
wrong_media
{
0
};
int
wrong_media
{
0
};
int
missing_file
{
0
};
TGeoNode
*
topNode
=
gGeoManager
->
GetTopNode
();
TGeoNode
*
topNode
=
gGeoManager
->
GetTopNode
();
TObjArray
*
nodes
=
topNode
->
GetNodes
();
TObjArray
*
nodes
=
topNode
->
GetNodes
();
for
(
Int_t
iNode
=
0
;
iNode
<
nodes
->
GetEntriesFast
();
iNode
++
)
{
for
(
Int_t
iNode
=
0
;
iNode
<
nodes
->
GetEntriesFast
();
iNode
++
)
{
...
@@ -37,15 +38,15 @@ void check_media(const char* dataset = "test")
...
@@ -37,15 +38,15 @@ void check_media(const char* dataset = "test")
std
::
cout
<<
"Checking node "
<<
nodename
<<
std
::
endl
;
std
::
cout
<<
"Checking node "
<<
nodename
<<
std
::
endl
;
std
::
pair
<
int
,
int
>
retval
=
CheckGeometry
(
nodename
);
std
::
pair
<
int
,
int
>
retval
=
CheckGeometry
(
nodename
);
if
(
-
1
==
retval
.
second
)
{
if
(
-
1
==
retval
.
second
)
{
RemoveGeoManager
()
;
++
missing_file
;
return
;
continue
;
}
}
wrong_media
+=
retval
.
second
;
wrong_media
+=
retval
.
second
;
std
::
cout
<<
"Checked "
<<
retval
.
first
<<
" sub nodes from "
<<
nodename
<<
" and found "
<<
retval
.
second
std
::
cout
<<
"Checked "
<<
retval
.
first
<<
" sub nodes from "
<<
nodename
<<
" and found "
<<
retval
.
second
<<
" with wrongly assigned media"
<<
std
::
endl
;
<<
" with wrongly assigned media"
<<
std
::
endl
;
}
}
if
(
0
==
wrong_media
)
{
if
(
0
==
wrong_media
&&
0
==
missing_file
)
{
std
::
cout
<<
std
::
endl
;
std
::
cout
<<
std
::
endl
;
std
::
cout
<<
"Test passed"
<<
std
::
endl
;
std
::
cout
<<
"Test passed"
<<
std
::
endl
;
std
::
cout
<<
"All ok"
<<
std
::
endl
;
std
::
cout
<<
"All ok"
<<
std
::
endl
;
...
@@ -53,6 +54,7 @@ void check_media(const char* dataset = "test")
...
@@ -53,6 +54,7 @@ void check_media(const char* dataset = "test")
else
{
else
{
std
::
cout
<<
std
::
endl
;
std
::
cout
<<
std
::
endl
;
std
::
cout
<<
"Test failed"
<<
std
::
endl
;
std
::
cout
<<
"Test failed"
<<
std
::
endl
;
std
::
cout
<<
"In total "
<<
missing_file
<<
" files were missing"
<<
std
::
endl
;
std
::
cout
<<
"Found in total "
<<
wrong_media
<<
" nodes with wrongly assigned media"
<<
std
::
endl
;
std
::
cout
<<
"Found in total "
<<
wrong_media
<<
" nodes with wrongly assigned media"
<<
std
::
endl
;
}
}
RemoveGeoManager
();
RemoveGeoManager
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment