@@ -232,11 +232,11 @@ struct Kstarqa {
232232
233233 std::vector<std::string> eveCutLabels = {
234234 " All Events" ,
235- " |Vz| < 10" ,
236- std::string (" Sel8" ) + check (configGp.isSel8 .value ),
237235 std::string (" kIsTriggerTVX" ) + check (configGp.isTriggerTVX .value ),
236+ " |Vz| < 10" ,
238237 std::string (" NoTimeFrameBorder" ) + check (configGp.isNoTimeFrameBorder .value ),
239238 std::string (" NoITSROFrameBorder" ) + check (configGp.isNoITSROFrameBorder .value ),
239+ std::string (" Sel8" ) + check (configGp.isSel8 .value ),
240240 std::string (" rctChecker" ) + check (rctCut.requireRCTFlagChecker .value ),
241241 std::string (" IsINELgt0" ) + check (configGp.isINELgt0 .value ),
242242 std::string (" IsGoodITSLayersAll" ) + check (configGp.isGoodITSLayersAll .value ),
@@ -355,6 +355,7 @@ struct Kstarqa {
355355 hInvMass.add (" MCcorrections/MultiplicityRec" , " Multiplicity in generated MC with at least 1 reconstruction" , kTH1F , {multiplicityAxis});
356356 hInvMass.add (" MCcorrections/hImpactParameterGen" , " Impact parameter in generated MC" , kTH1F , {impactParAxis});
357357 hInvMass.add (" MCcorrections/MultiplicityGen" , " Multiplicity in generated MC" , kTH1F , {multiplicityAxis});
358+ hInvMass.add (" MCcorrections/MultiplicityRecINEL" , " Multiplicity in generated MC" , kTH1F , {multiplicityAxis});
358359 hInvMass.add (" MCcorrections/hImpactParametervsMultiplicity" , " Impact parameter vs multiplicity in reconstructed MC" , kTH2F , {{impactParAxis}, {multiplicityAxis}});
359360 }
360361
@@ -473,27 +474,27 @@ struct Kstarqa {
473474 if (fillHist)
474475 rEventSelection.fill (HIST (" hEventCut" ), 0 );
475476
476- if (std::abs (collision. posZ ()) > configGp. cutzvertex )
477+ if (configGp. isTriggerTVX && !collision. selection_bit (aod::evsel:: kIsTriggerTVX ) )
477478 return false ;
478479 if (fillHist)
479480 rEventSelection.fill (HIST (" hEventCut" ), 1 );
480481
481- if (configGp. isSel8 && ! collision.sel8 () )
482+ if (std::abs ( collision.posZ ()) > configGp. cutzvertex )
482483 return false ;
483484 if (fillHist)
484485 rEventSelection.fill (HIST (" hEventCut" ), 2 );
485486
486- if (configGp.isTriggerTVX && !collision.selection_bit (aod::evsel::kIsTriggerTVX ))
487+ if (configGp.isNoTimeFrameBorder && !collision.selection_bit (aod::evsel::kNoTimeFrameBorder ))
487488 return false ;
488489 if (fillHist)
489490 rEventSelection.fill (HIST (" hEventCut" ), 3 );
490491
491- if (configGp.isNoTimeFrameBorder && !collision.selection_bit (aod::evsel::kNoTimeFrameBorder ))
492+ if (configGp.isNoITSROFrameBorder && !collision.selection_bit (aod::evsel::kNoITSROFrameBorder ))
492493 return false ;
493494 if (fillHist)
494495 rEventSelection.fill (HIST (" hEventCut" ), 4 );
495496
496- if (configGp.isNoITSROFrameBorder && !collision.selection_bit (aod::evsel:: kNoITSROFrameBorder ))
497+ if (configGp.isSel8 && !collision.sel8 ( ))
497498 return false ;
498499 if (fillHist)
499500 rEventSelection.fill (HIST (" hEventCut" ), 5 );
@@ -1911,6 +1912,7 @@ struct Kstarqa {
19111912 {
19121913 // auto multiplicityRec = -1;
19131914 bool isSelectedEvent = false ;
1915+ bool isSelectedEventINEL = false ;
19141916 auto multiplicity1 = -999 .;
19151917
19161918 if (configGp.isINELgt0Gen && !mcCollision.isInelGt0 ()) {
@@ -1942,6 +1944,31 @@ struct Kstarqa {
19421944 isSelectedEvent = true ;
19431945 }
19441946
1947+ for (const auto & RecCollision : recCollisions) {
1948+ if (!RecCollision.has_mcCollision ())
1949+ continue ;
1950+
1951+ if (configGp.isTriggerTVX && !RecCollision.selection_bit (aod::evsel::kIsTriggerTVX ))
1952+ continue ;
1953+
1954+ if (std::abs (RecCollision.posZ ()) > configGp.cutzvertex )
1955+ continue ;
1956+
1957+ if (configGp.isNoTimeFrameBorder && !RecCollision.selection_bit (aod::evsel::kNoTimeFrameBorder ))
1958+ continue ;
1959+
1960+ if (configGp.isNoITSROFrameBorder && !RecCollision.selection_bit (aod::evsel::kNoITSROFrameBorder ))
1961+ continue ;
1962+
1963+ if (configGp.isSel8 && !RecCollision.sel8 ())
1964+ continue ;
1965+
1966+ if (rctCut.requireRCTFlagChecker && !rctChecker (RecCollision))
1967+ continue ;
1968+
1969+ isSelectedEventINEL = true ;
1970+ }
1971+
19451972 bool isINELgt0true = false ;
19461973
19471974 if (pwglf::isINELgtNmc (mcParticles, 0 , pdgDB)) {
@@ -1957,6 +1984,10 @@ struct Kstarqa {
19571984 hInvMass.fill (HIST (" MCcorrections/hImpactParameterGen" ), impactPar);
19581985 hInvMass.fill (HIST (" MCcorrections/MultiplicityGen" ), multiplicityGen);
19591986
1987+ if (isSelectedEventINEL) {
1988+ hInvMass.fill (HIST (" MCcorrections/MultiplicityRecINEL" ), multiplicityGen);
1989+ }
1990+
19601991 // Event loss
19611992 if (isSelectedEvent) {
19621993 hInvMass.fill (HIST (" MCcorrections/hImpactParameterRec" ), impactPar);
@@ -3200,7 +3231,7 @@ struct Kstarqa {
32003231 genDaughter1 = ROOT::Math::PxPyPzMVector (mctrack1.px (), mctrack1.py (), mctrack1.pz (), massKa);
32013232 genDaughter2 = ROOT::Math::PxPyPzMVector (mctrack2.px (), mctrack2.py (), mctrack2.pz (), massKa);
32023233
3203- mother = daughter1 + daughter2; // Phi meson
3234+ mother = daughter1 + daughter2; // Phi meson
32043235 genMother = genDaughter1 + genDaughter2; // Phi meson
32053236
32063237 recMass = mother.M ();
0 commit comments