@@ -85,9 +85,7 @@ class DielectronCut : public TNamed
8585 kTPChadrejORTOFreq = 2 ,
8686 kTPConly = 3 ,
8787 kTOFif = 4 ,
88- kITSTOFreq = 5 ,
89- kTPChadrejORITSTOFreq = 6 ,
90- kPIDML = 7
88+ kPIDML = 5
9189 };
9290
9391 template <typename T = int , typename TPair>
@@ -178,9 +176,9 @@ class DielectronCut : public TNamed
178176 if (!IsSelectedTrack (track, DielectronCuts::kITSChi2NDF )) {
179177 return false ;
180178 }
181- // if (!IsSelectedTrack(track, DielectronCuts::kITSClusterSize)) {
182- // return false;
183- // }
179+ if (!IsSelectedTrack (track, DielectronCuts::kITSClusterSize )) {
180+ return false ;
181+ }
184182
185183 if (mRequireITSibAny ) {
186184 auto hits_ib = std::count_if (its_ib_any_Requirement.second .begin (), its_ib_any_Requirement.second .end (), [&](auto && requiredLayer) { return track.itsClusterMap () & (1 << requiredLayer); });
@@ -273,12 +271,6 @@ class DielectronCut : public TNamed
273271 case static_cast <int >(PIDSchemes::kTOFif ):
274272 return PassTOFif (track);
275273
276- case static_cast <int >(PIDSchemes::kITSTOFreq ):
277- return PassTOFreq (track) && PassITSreq (track);
278-
279- case static_cast <int >(PIDSchemes::kTPChadrejORITSTOFreq ):
280- return PassTPChadrej (track) || (PassTOFreq (track) && PassITSreq (track));
281-
282274 case static_cast <int >(PIDSchemes::kPIDML ):
283275 return true ; // don't use kPIDML here.
284276
@@ -327,15 +319,6 @@ class DielectronCut : public TNamed
327319 return is_el_included_TPC && is_pi_excluded_TPC && is_el_included_TOF;
328320 }
329321
330- template <typename T>
331- bool PassITSreq (T const & track) const
332- {
333- bool is_el_included_TPC = mMinTPCNsigmaEl < track.tpcNSigmaEl () && track.tpcNSigmaEl () < mMaxTPCNsigmaEl ;
334- bool is_pi_excluded_TPC = track.tpcInnerParam () < mMaxPinForPionRejectionTPC ? (track.tpcNSigmaPi () < mMinTPCNsigmaPi || mMaxTPCNsigmaPi < track.tpcNSigmaPi ()) : true ;
335- bool is_el_included_ITS = (track.p () < mMinP_ITSClusterSize || mMaxP_ITSClusterSize < track.p ()) ? true : (mMinMeanClusterSizeITS < track.meanClusterSizeITS () * std::cos (std::atan (track.tgl ()))) && (track.meanClusterSizeITS () * std::cos (std::atan (track.tgl ())) < (mMaxMeanClusterSizeITSPDep ? mMaxMeanClusterSizeITSPDep (track.p ()) : mMaxMeanClusterSizeITS ));
336- return is_el_included_TPC && is_pi_excluded_TPC && is_el_included_ITS;
337- }
338-
339322 template <typename T>
340323 bool IsSelectedTrack (T const & track, const DielectronCuts& cut) const
341324 {
@@ -379,13 +362,8 @@ class DielectronCut : public TNamed
379362 case DielectronCuts::kITSChi2NDF :
380363 return mMinChi2PerClusterITS < track.itsChi2NCl () && track.itsChi2NCl () < mMaxChi2PerClusterITS ;
381364
382- // case DielectronCuts::kITSClusterSize: {
383- // if (track.p() < mMinP_ITSClusterSize || mMaxP_ITSClusterSize < track.p()) {
384- // return true;
385- // } else {
386- // return (mMinMeanClusterSizeITS < track.meanClusterSizeITS() * std::cos(std::atan(track.tgl()))) && (track.meanClusterSizeITS() * std::cos(std::atan(track.tgl())) < (mMaxMeanClusterSizeITSPDep ? mMaxMeanClusterSizeITSPDep(track.p()) : mMaxMeanClusterSizeITS));
387- // }
388- // }
365+ case DielectronCuts::kITSClusterSize :
366+ return ((mMinP_ITSClusterSize < track.p () && track.p () < mMaxP_ITSClusterSize ) ? (mMinMeanClusterSizeITS < track.meanClusterSizeITS () * std::cos (std::atan (track.tgl ())) && track.meanClusterSizeITS () * std::cos (std::atan (track.tgl ())) < mMaxMeanClusterSizeITS ) : true );
389367
390368 case DielectronCuts::kPrefilter :
391369 return track.pfb () <= 0 ;
@@ -416,7 +394,6 @@ class DielectronCut : public TNamed
416394 void SetNClustersITS (int min, int max);
417395 void SetChi2PerClusterITS (float min, float max);
418396 void SetMeanClusterSizeITS (float min, float max, float minP = 0 .f, float maxP = 0 .f);
419- void SetMeanClusterSizeITSPDep (std::function<float (float )> pDepCut, float minP = 0.f, float maxP = 0.f);
420397
421398 void SetPIDScheme (int scheme);
422399 void SetMinPinTOF (float min);
@@ -493,9 +470,7 @@ class DielectronCut : public TNamed
493470 bool mApplyPhiV {true };
494471 bool mApplyPF {false };
495472 float mMinMeanClusterSizeITS {-1e10f}, mMaxMeanClusterSizeITS {1e10f}; // max <its cluster size> x cos(Lmabda)
496- float mMinP_ITSClusterSize {0.0 };
497- float mMaxP_ITSClusterSize {0.0 };
498- std::function<float (float )> mMaxMeanClusterSizeITSPDep {}; // max dca in xy plane as function of pT
473+ float mMinP_ITSClusterSize {0.0 }, mMaxP_ITSClusterSize {0.0 };
499474
500475 // pid cuts
501476 int mPIDScheme {-1 };
0 commit comments