Skip to content

Commit

Permalink
Added FB set for more RUN2 ppass reconstructions and fixed train name…
Browse files Browse the repository at this point in the history
… for MC re-filterings (#454)

Co-authored-by: Catalin Ristea <catalin.ristea@Catalins-MacBook-Pro.local>
  • Loading branch information
catalinristea and Catalin Ristea authored Feb 1, 2021
1 parent 16acddb commit 354f25f
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion AOD/main_AODtrainRawAndMC.C
Original file line number Diff line number Diff line change
Expand Up @@ -1062,12 +1062,14 @@ void ProcessEnvironmentMC()
// Collision system configuration
//
iCollision = kpp;
train_tag = TrainTag[kpp];
if (gSystem->Getenv("CONFIG_SYSTEM"))
{
Bool_t valid = kFALSE;
for (Int_t icoll = 0; icoll < kNSystem; icoll++)
if (strcmp(gSystem->Getenv("CONFIG_SYSTEM"), CollisionSystemMC[icoll]) == 0) {
iCollision = icoll;
train_tag = TrainTag[icoll];
valid = kTRUE;
printf(">>>>> Using collision system from CONFIG_SYSTEM as %s (iCollision =%d)\n", CollisionSystemMC[icoll],iCollision);
break;
Expand Down Expand Up @@ -1144,7 +1146,19 @@ void SetRunFlagForFilterBits(){
else if((periodName.EqualTo("LHC16q") || periodName.EqualTo("LHC16r") ||
periodName.EqualTo("LHC16s") || periodName.EqualTo("LHC16t")) && passName.EndsWith("pass2"))
run_flag = 1501;
else if(periodName.Contains("LHC18") && passName.EndsWith("pass2"))
else if(periodName.Contains("LHC18") && passName.Contains("pass2")) /* Contains not EndsWith, due to 18c */
run_flag = 1501;
else if(periodName.Contains("LHC17") && passName.Contains("pass2")) /* Contains not EndsWith, due to 17p/q */
run_flag = 1501;
else if(periodName.Contains("LHC16") && passName.EndsWith("pass2") && !(periodName.EqualTo("LHC16k") || periodName.EqualTo("LHC16l")))
run_flag = 1501;
else if((periodName.EqualTo("LHC16k") || periodName.EqualTo("LHC16l")) && passName.EndsWith("pass3"))
run_flag = 1501;
else if((periodName.EqualTo("LHC15h") || periodName.EqualTo("LHC15i")) && passName.EndsWith("pass3"))
run_flag = 1501;
else if((periodName.EqualTo("LHC15j") || periodName.EqualTo("LHC15l")) && passName.EndsWith("pass2"))
run_flag = 1501;
else if(periodName.EqualTo("LHC15n") && passName.EndsWith("pass5"))
run_flag = 1501;
}
if(year<=2010)
Expand Down

0 comments on commit 354f25f

Please sign in to comment.