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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computing
cbmroot
Commits
7f596fa5
Commit
7f596fa5
authored
5 years ago
by
Pierre-Alain Loizeau
Browse files
Options
Downloads
Patches
Plain Diff
Add optional support for Run ID outside of list in kronos evt macro to later keep only one version
parent
9f28a47b
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
macro/beamtime/mcbm2020/build_event_win_kronos.C
+22
-2
22 additions, 2 deletions
macro/beamtime/mcbm2020/build_event_win_kronos.C
with
22 additions
and
2 deletions
macro/beamtime/mcbm2020/build_event_win_kronos.C
+
22
−
2
View file @
7f596fa5
/*
* To use a specific Run ID not in the list, set uRunIdx to 99999 and provide
* your desired ID as last parameter.
* In all other cases this optional parameter is ignored.
*/
void
build_event_win_kronos
(
UInt_t
uRunIdx
=
0
,
Int_t
nEvents
=
0
,
TString
outDir
=
"data/"
)
{
TString
outDir
=
"data/"
,
UInt_t
uRunIdIn
=
0
)
{
UInt_t
uRunId
=
0
;
TString
fileName
=
"data/unp_mcbm_0.root"
;
if
(
99999
!=
uRunIdx
)
{
if
(
0
!=
uRunIdIn
)
{
cout
<<
"Ignored optional Run ID: "
<<
uRunIdIn
<<
endl
;
}
// if( 0 != uRunIdIn )
std
::
vector
<
UInt_t
>
vuListRunId
=
{
692
,
698
,
702
,
704
,
705
,
706
,
707
,
// 7 => 0 - 6
744
,
750
,
759
,
760
,
761
,
762
,
799
,
// 7 => 7 - 13
...
...
@@ -27,8 +38,17 @@ void build_event_win_kronos(UInt_t uRunIdx = 0,
uRunId
=
vuListRunId
[
uRunIdx
];
fileName
=
Form
(
"data/unp_mcbm_%03u.root"
,
uRunId
);
}
// if( 99999 != uRunIdx )
else
{
uRunId
=
uRunIdIn
;
}
// else of if (99999 != uRunIdx)
if
(
uRunId
<
692
&&
0
!=
uRunId
)
{
cout
<<
"Run ID smaller than 692 are not supported in this analysis!"
<<
" Here we have "
<<
uRunId
<<
endl
;
return
kFALSE
;
}
// if (uRunId < 692 && 0 != uRunId)
if
(
uRunId
<
692
&&
0
!=
uRunId
)
return
kFALSE
;
// ========================================================================
...
...
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