@@ -214,6 +214,9 @@ struct EbyeMaker {
214214 Configurable<bool > kUsePileUpCut {" kUsePileUpCut" , false , " toggle strong correlation cuts (Run 2)" };
215215 Configurable<bool > kUseEstimatorsCorrelationCut {" kUseEstimatorsCorrelationCut" , false , " toggle cut on the correlation between centrality estimators (2018 Pb-Pb)" };
216216
217+ Configurable<float > kCentCutMin {" kCentCutMin" , 0 , " minimum accepted centrality" };
218+ Configurable<float > kCentCutMax {" kCentCutMax" , 100 , " maximum accepted centrality" };
219+
217220 Configurable<float > antidPtMin{" antidPtMin" , 0 .6f , " minimum antideuteron pT (GeV/c)" };
218221 Configurable<float > antidPtTof{" antidPtTof" , 1 .0f , " antideuteron pT to switch to TOF pid (GeV/c) " };
219222 Configurable<float > antidPtMax{" antidPtMax" , 1 .8f , " maximum antideuteron pT (GeV/c)" };
@@ -242,13 +245,10 @@ struct EbyeMaker {
242245 Configurable<float > antidNsigmaTpcCutLow{" antidNsigmaTpcCutLow" , -4 .f , " TPC PID cut low" };
243246 Configurable<float > antidNsigmaTpcCutUp{" antidNsigmaTpcCutUp" , 4 .f , " TPC PID cut up" };
244247 Configurable<float > antidTpcInnerParamMax{" tpcInnerParamMax" , 0 .f , " (temporary) tpc inner param cut" };
245- Configurable<float > antidTofMassMax{" tofMassMax" , 0 .3f , " (temporary) tof mass cut" };
246248
247249 Configurable<float > antipNsigmaTpcCutLow{" antipNsigmaTpcCutLow" , -4 .f , " TPC PID cut low" };
248250 Configurable<float > antipNsigmaTpcCutUp{" antipNsigmaTpcCutUp" , 4 .f , " TPC PID cut up" };
249251 Configurable<float > antipTpcInnerParamMax{" antipTpcInnerParamMax" , 0 .f , " (temporary) tpc inner param cut" };
250- Configurable<float > antipTofMassMax{" antipTofMassMax" , 0 .3f , " (temporary) tof mass cut" };
251- Configurable<float > tofMassMaxQA{" tofMassMaxQA" , 0 .6f , " (temporary) tof mass cut (for QA histograms)" };
252252
253253 Configurable<float > v0settingDcaV0Dau{" v0setting_dcav0dau" , 0 .5f , " DCA V0 Daughters" };
254254 Configurable<float > v0settingDcaV0Pv{" v0setting_dcav0pv" , 1 .f , " DCA V0 to Pv" };
@@ -271,7 +271,6 @@ struct EbyeMaker {
271271 std::array<float , kNpart > nSigmaTpcCutLow;
272272 std::array<float , kNpart > nSigmaTpcCutUp;
273273 std::array<float , kNpart > tpcInnerParamMax;
274- std::array<float , kNpart > tofMassMax;
275274
276275 HistogramRegistry histos{" histos" , {}, OutputObjHandlingPolicy::AnalysisObject};
277276
@@ -339,6 +338,7 @@ struct EbyeMaker {
339338 {
340339 const float defItsChi2NClCut = 36 .f ;
341340 const float defNClCROverFind = 0 .8f ;
341+ const float defMinChi2Cut = 0 .f ;
342342 if (std::abs (track.eta ()) > etaMax) {
343343 return false ;
344344 }
@@ -350,6 +350,7 @@ struct EbyeMaker {
350350 track.tpcNClsCrossedRows () < trackNcrossedRows ||
351351 track.tpcNClsCrossedRows () < defNClCROverFind * track.tpcNClsFindable () ||
352352 track.tpcChi2NCl () > trackChi2Cut ||
353+ track.tpcChi2NCl () < defMinChi2Cut ||
353354 track.itsChi2NCl () > defItsChi2NClCut) {
354355 return false ;
355356 }
@@ -533,7 +534,6 @@ struct EbyeMaker {
533534 nSigmaTpcCutLow = std::array<float , kNpart >{antipNsigmaTpcCutLow, antidNsigmaTpcCutLow};
534535 nSigmaTpcCutUp = std::array<float , kNpart >{antipNsigmaTpcCutUp, antidNsigmaTpcCutUp};
535536 tpcInnerParamMax = std::array<float , kNpart >{antipTpcInnerParamMax, antidTpcInnerParamMax};
536- tofMassMax = std::array<float , kNpart >{antipTofMassMax, antidTofMassMax};
537537 }
538538
539539 template <class T >
@@ -600,7 +600,7 @@ struct EbyeMaker {
600600 const float maxTofChi2 = 3 .f ; // TODO: check if this is still needed
601601 bool hasTof = track.hasTOF () && track.tofChi2 () < maxTofChi2;
602602
603- if ((trackPt <= ptTof[iP] || (trackPt > ptTof[iP] && hasTof && std::abs (mass - kPartMass [iP]) < tofMassMaxQA )) && nSigmaTPC > nSigmaTpcCutLow[iP] && nSigmaTPC < nSigmaTpcCutUp[iP]) { // for QA histograms
603+ if ((trackPt <= ptTof[iP] || (trackPt > ptTof[iP] && hasTof)) && nSigmaTPC > nSigmaTpcCutLow[iP] && nSigmaTPC < nSigmaTpcCutUp[iP]) { // for QA histograms
604604 tofMass[iP]->Fill (centrality, trackPt, mass);
605605 }
606606
@@ -616,7 +616,7 @@ struct EbyeMaker {
616616 continue ;
617617 }
618618
619- if (trackPt <= ptTof[iP] || (trackPt > ptTof[iP] && hasTof && std::abs (mass - kPartMass [iP]) < tofMassMax[iP] )) {
619+ if (trackPt <= ptTof[iP] || (trackPt > ptTof[iP] && hasTof)) {
620620 CandidateTrack candTrack;
621621 candTrack.pt = track.sign () > 0 . ? trackPt : -trackPt;
622622 candTrack.eta = trackEta;
@@ -925,13 +925,16 @@ struct EbyeMaker {
925925 if (std::abs (collision.posZ ()) > zVtxMax || !collision.selection_bit (aod::evsel::kNoITSROFrameBorder ) || !collision.selection_bit (aod::evsel::kNoTimeFrameBorder ) || !collision.selection_bit (aod::evsel::kIsTriggerTVX ) || ((!collision.selection_bit (aod::evsel::kIsGoodITSLayersAll ) || !collision.selection_bit (aod::evsel::kNoSameBunchPileup ) || !collision.selection_bit (aod::evsel::kIsGoodZvtxFT0vsPV )) && useAllEvSel))
926926 continue ;
927927
928+ auto centrality = collision.centFT0C ();
929+ if (centrality < kCentCutMin || centrality > kCentCutMax )
930+ continue ;
931+
928932 histos.fill (HIST (" QA/zVtx" ), collision.posZ ());
929933
930934 const uint64_t collIdx = collision.globalIndex ();
931935 auto v0TableThisCollision = V0s.sliceBy (perCollisionV0, collIdx);
932936 v0TableThisCollision.bindExternalIndices (&tracks);
933937
934- auto centrality = collision.centFT0C ();
935938 histos.fill (HIST (" QA/PvMultVsCent" ), centrality, collision.numContrib ());
936939 fillRecoEvent (collision, tracks, v0TableThisCollision, centrality);
937940
0 commit comments