@@ -102,7 +102,7 @@ struct HfCandidateCreator2Prong {
102102 OutputObj<TH2F > hDcaXYProngs{TH2F (" hDcaXYProngs" , " DCAxy of 2-prong candidates;#it{p}_{T} (GeV/#it{c};#it{d}_{xy}) (#mum);entries" , 100 , 0 ., 20 ., 200 , -500 ., 500 .)};
103103 OutputObj<TH2F > hDcaZProngs{TH2F (" hDcaZProngs" , " DCAz of 2-prong candidates;#it{p}_{T} (GeV/#it{c};#it{d}_{z}) (#mum);entries" , 100 , 0 ., 20 ., 200 , -500 ., 500 .)};
104104 OutputObj<TH1F > hVertexerType{TH1F (" hVertexerType" , " Use KF or DCAFitterN;Vertexer type;entries" , 2 , -0.5 , 1.5 )}; // See o2::aod::hf_cand::VertexerType
105- OutputObj<TH1D > hCollisions{TH1D (" hCollisions" , " HF event counter" , 5 , -0.5 , 4.5 )};
105+ OutputObj<TH1D > hCollisions{TH1D (" hCollisions" , " HF event counter" , ValuesEvSel::NEvSel , -0 .5f , static_cast < float >(ValuesEvSel::NEvSel) - 0 . 5f )};
106106 OutputObj<TH1D > hPosZBeforeEvSel{TH1D (" hPosZBeforeEvSel" , " PV position Z before ev. selection;posZ (cm);entries" , 400 , -20 , 20 )};
107107 OutputObj<TH1D > hPosZAfterEvSel{TH1D (" hPosZAfterEvSel" , " PV position Z after ev. selection;posZ (cm);entries" , 400 , -20 , 20 )};
108108
@@ -161,11 +161,7 @@ struct HfCandidateCreator2Prong {
161161 runNumber = 0 ;
162162
163163 // / collision monitoring
164- hCollisions->GetXaxis ()->SetBinLabel (1 , " All collisions" );
165- hCollisions->GetXaxis ()->SetBinLabel (2 , " Centrality ok" );
166- hCollisions->GetXaxis ()->SetBinLabel (3 , " Centrality + sel8 ok" );
167- hCollisions->GetXaxis ()->SetBinLabel (4 , " Centrality + sel8 + posZ ok" );
168- hCollisions->GetXaxis ()->SetBinLabel (5 , " Centrality + sel8 + posZ + TF border ok" );
164+ setLabelHistoEvSel (hCollisions.object );
169165 }
170166
171167 template <bool doPvRefit, o2::aod::hf_collision_centrality::CentralityEstimator centEstimator, typename Coll, typename CandType, typename TTracks>
@@ -179,7 +175,7 @@ struct HfCandidateCreator2Prong {
179175
180176 // / reject candidates not satisfying the event selections
181177 auto collision = rowTrackIndexProng2.template collision_as <Coll>();
182- const uint16_t rejectionMask = getHfCollisionRejectionMask<centEstimator>(collision, std::array< float , 2 >{ centralityMin. value , centralityMax. value } , useSel8Trigger, maxPvPosZ, useTimeFrameBorderCut);
178+ const uint16_t rejectionMask = getHfCollisionRejectionMask<centEstimator>(collision, centralityMin, centralityMax, useSel8Trigger, maxPvPosZ, useTimeFrameBorderCut);
183179 if (rejectionMask != 0 ) {
184180 // / at least one event selection not satisfied --> reject the candidate
185181 continue ;
@@ -308,7 +304,7 @@ struct HfCandidateCreator2Prong {
308304
309305 // / reject candidates in collisions not satisfying the event selections
310306 auto collision = rowTrackIndexProng2.template collision_as <Coll>();
311- const uint16_t rejectionMask = getHfCollisionRejectionMask<centEstimator>(collision, std::array< float , 2 >{ centralityMin. value , centralityMax. value } , useSel8Trigger, maxPvPosZ, useTimeFrameBorderCut);
307+ const uint16_t rejectionMask = getHfCollisionRejectionMask<centEstimator>(collision, centralityMin, centralityMax, useSel8Trigger, maxPvPosZ, useTimeFrameBorderCut);
312308 if (rejectionMask != 0 ) {
313309 // / at least one event selection not satisfied --> reject the candidate
314310 continue ;
@@ -587,7 +583,7 @@ struct HfCandidateCreator2Prong {
587583 for (const auto & collision : collisions) {
588584
589585 // / bitmask with event. selection info
590- const uint16_t rejectionMask = getHfCollisionRejectionMask<CentralityEstimator::None>(collision, std::array< float , 2 >{ centralityMin. value , centralityMax. value } , useSel8Trigger, maxPvPosZ, useTimeFrameBorderCut);
586+ const uint16_t rejectionMask = getHfCollisionRejectionMask<CentralityEstimator::None>(collision, centralityMin, centralityMax, useSel8Trigger, maxPvPosZ, useTimeFrameBorderCut);
591587
592588 // / monitor the satisfied event selections
593589 monitorCollision (collision, rejectionMask, hCollisions.object , hPosZBeforeEvSel.object , hPosZAfterEvSel.object );
@@ -603,7 +599,7 @@ struct HfCandidateCreator2Prong {
603599 for (const auto & collision : collisions) {
604600
605601 // / bitmask with event. selection info
606- const uint16_t rejectionMask = getHfCollisionRejectionMask<CentralityEstimator::FT0C >(collision, std::array< float , 2 >{ centralityMin. value , centralityMax. value } , useSel8Trigger, maxPvPosZ, useTimeFrameBorderCut);
602+ const uint16_t rejectionMask = getHfCollisionRejectionMask<CentralityEstimator::FT0C >(collision, centralityMin, centralityMax, useSel8Trigger, maxPvPosZ, useTimeFrameBorderCut);
607603
608604 // / monitor the satisfied event selections
609605 monitorCollision (collision, rejectionMask, hCollisions.object , hPosZBeforeEvSel.object , hPosZAfterEvSel.object );
@@ -619,7 +615,7 @@ struct HfCandidateCreator2Prong {
619615 for (const auto & collision : collisions) {
620616
621617 // / bitmask with event. selection info
622- const uint16_t rejectionMask = getHfCollisionRejectionMask<CentralityEstimator::FT0M >(collision, std::array< float , 2 >{ centralityMin. value , centralityMax. value } , useSel8Trigger, maxPvPosZ, useTimeFrameBorderCut);
618+ const uint16_t rejectionMask = getHfCollisionRejectionMask<CentralityEstimator::FT0M >(collision, centralityMin, centralityMax, useSel8Trigger, maxPvPosZ, useTimeFrameBorderCut);
623619
624620 // / monitor the satisfied event selections
625621 monitorCollision (collision, rejectionMask, hCollisions.object , hPosZBeforeEvSel.object , hPosZAfterEvSel.object );
0 commit comments