@@ -84,6 +84,8 @@ struct SGCandProducer {
8484 Configurable<bool > IsGoodVertex{" IsGoodVertex" , false , " Select FT0 PV vertex matching" };
8585 Configurable<bool > ITSTPCVertex{" ITSTPCVertex" , true , " reject ITS-only vertex" }; // if one wants to look at Single Gap pp events
8686 Configurable<std::vector<int >> generatorIds{" generatorIds" , std::vector<int >{-1 }, " MC generatorIds to process" };
87+ Configurable<bool > storeSG{" storeSG" , true , " Store SG events in the output" };
88+ Configurable<bool > storeDG{" storeDG" , true , " Store DG events in the output" };
8789
8890 Configurable<bool > isGoodRCTCollision{" isGoodRCTCollision" , true , " Check RCT flags for FT0,ITS,TPC and tracking" };
8991 Configurable<bool > isGoodRCTZdc{" isGoodRCTZdc" , false , " Check RCT flags for ZDC if present in run" };
@@ -355,7 +357,7 @@ struct SGCandProducer {
355357 LOGF (info, " No Newbc %i" , bc.globalBC ());
356358 }
357359 getHist (TH1, histdir + " /Stat" )->Fill (issgevent + 10 , 1 .);
358- if (issgevent <= 2 ) {
360+ if ((storeDG && issgevent == o2::aod::sgselector::DoubleGap) || (storeSG && (issgevent == o2::aod::sgselector::SingleGapA || issgevent == o2::aod::sgselector::SingleGapC)) ) {
359361 if (verboseInfo)
360362 LOGF (info, " Current BC: %i, %i, %i" , bc.globalBC (), newbc.globalBC (), issgevent);
361363 if (sameCuts.minRgtrwTOF ()) {
0 commit comments