@@ -207,6 +207,7 @@ struct HeavyionMultiplicity {
207207 Configurable<bool > isApplyCentMFT{" isApplyCentMFT" , false , " Centrality based on MFT tracks" };
208208 Configurable<bool > isApplyTVX{" isApplyTVX" , false , " Enable TVX trigger sel" };
209209 Configurable<bool > isApplyExtraPhiCut{" isApplyExtraPhiCut" , false , " Enable extra phi cut" };
210+ Configurable<bool > isApplyBestCollIndex{" isApplyBestCollIndex" , true , " " };
210211
211212 Configurable<bool > selectCollidingBCs{" selectCollidingBCs" , true , " BC analysis: select colliding BCs" };
212213 Configurable<bool > selectTVX{" selectTVX" , true , " BC analysis: select TVX" };
@@ -357,6 +358,7 @@ struct HeavyionMultiplicity {
357358 histos.add (" hRecMCvertexZ" , " hRecMCvertexZ" , kTH1D , {axisVtxZ}, false );
358359 histos.add (" hRecMCvtxzcent" , " hRecMCvtxzcent" , kTH3D , {axisVtxZ, centAxis, axisOccupancy}, false );
359360 histos.add (" hRecMCcentrality" , " hRecMCcentrality" , kTH1D , {axisCent}, false );
361+ histos.add (" MCCentrality_vs_FT0C" , " MCCentrality_vs_FT0C" , kTH2F , {axisCent, axisFt0cMult}, true );
360362 histos.add (" hRecMCphivseta" , " hRecMCphivseta" , kTH2D , {axisPhi2, axisEta}, false );
361363 histos.add (" hRecMCdndeta" , " hRecMCdndeta" , kTHnSparseD , {axisVtxZ, centAxis, axisOccupancy, axisEta, axisPhi, axisRecTrkType}, false );
362364 histos.add (" etaResolution" , " etaResolution" , kTH2D , {axisEta, axisDeltaEta});
@@ -875,7 +877,7 @@ struct HeavyionMultiplicity {
875877 if (!isEventSelected (RecCol)) {
876878 continue ;
877879 }
878- if (RecCol.globalIndex () != mcCollision.bestCollisionIndex ()) {
880+ if (isApplyBestCollIndex && RecCol.globalIndex () != mcCollision.bestCollisionIndex ()) {
879881 continue ;
880882 }
881883 atLeastOne = true ;
@@ -928,11 +930,12 @@ struct HeavyionMultiplicity {
928930 if (!isEventSelected (RecCol)) {
929931 continue ;
930932 }
931- if (RecCol.globalIndex () != mcCollision.bestCollisionIndex ()) {
933+ if (isApplyBestCollIndex && RecCol.globalIndex () != mcCollision.bestCollisionIndex ()) {
932934 continue ;
933935 }
934936 histos.fill (HIST (" hRecMCvertexZ" ), RecCol.posZ ());
935937 histos.fill (HIST (" hRecMCcentrality" ), selColCent (RecCol));
938+ histos.fill (HIST (" MCCentrality_vs_FT0C" ), RecCol.centFT0C (), RecCol.multFT0C ());
936939 histos.fill (HIST (" hRecMCvtxzcent" ), RecCol.posZ (), selColCent (RecCol), selColOccu (RecCol));
937940
938941 auto recTracksPart = RecTracks.sliceBy (perCollision, RecCol.globalIndex ());
0 commit comments