Skip to content
Snippets Groups Projects

WIP: Synchronize std and kronos macros for mCBM2020 event building, refs #1827

1 unresolved thread
1 file
+ 10
11
Compare changes
  • Side-by-side
  • Inline
@@ -4,16 +4,16 @@
* 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/",
void build_event_win_kronos(UInt_t uRunIdx = 0,
Int_t nEvents = 0,
TString outDir = "data/",
UInt_t uRunIdIn = 0 ) {
UInt_t uRunId = 0;
TString fileName = "data/unp_mcbm_0.root";
if (99999 != uRunIdx) {
if( 0 != uRunIdIn ) {
if (0 != uRunIdIn) {
cout << "Ignored optional Run ID: " << uRunIdIn << endl;
} // if( 0 != uRunIdIn )
} // if (0 != uRunIdIn)
std::vector<UInt_t> vuListRunId = {
692, 698, 702, 704, 705, 706, 707, // 7 => 0 - 6
@@ -38,16 +38,15 @@ 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)
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;
<< " Here we have " << uRunId << endl;
return kFALSE;
} // if (uRunId < 692 && 0 != uRunId)
} // if (uRunId < 692 && 0 != uRunId)
Loading