@@ -61,16 +61,16 @@ class DalitzEECut
6161 kITSChi2NDF ,
6262 kNCuts
6363 };
64- static const char * mCutNames [ static_cast <int >(DalitzEECuts::kNCuts )] ;
64+ // static std::array<std::string, static_cast<std::size_t >(DalitzEECuts::kNCuts)> mCutNames ;
6565
6666 enum class PIDSchemes : int {
6767 kUnDef = -1 ,
6868 kTOFif = 0 ,
6969 kTPConly = 1 ,
7070 };
7171
72- const std::string getName () const { return name; }
73- const std::string getTitle () const { return title; }
72+ [[nodiscard]] const std::string& getName () const { return name; }
73+ [[nodiscard]] const std::string& getTitle () const { return title; }
7474
7575 template <o2::soa::is_iterator TTrack1, o2::soa::is_iterator TTrack2>
7676 bool IsSelected (TTrack1 const & t1, TTrack2 const & t2, float bz) const
@@ -205,8 +205,6 @@ class DalitzEECut
205205 return PassTOFif (track);
206206
207207 case static_cast <int >(PIDSchemes::kUnDef ):
208- return true ;
209-
210208 default :
211209 return true ;
212210 }
@@ -278,7 +276,7 @@ class DalitzEECut
278276 void SetPairPtRange (float minPt = 0 .f, float maxPt = 1e10f);
279277 void SetPairYRange (float minY = -1e10f, float maxY = 1e10f);
280278 void SetMeeRange (float min = 0 .f, float max = 0.04 );
281- void SetMaxPhivPairMeeDep (std::function<float (float )> meeDepCut);
279+ void SetMaxPhivPairMeeDep (const std::function<float (float )>& meeDepCut);
282280 void SelectPhotonConversion (bool flag);
283281
284282 void SetTrackPtRange (float minPt = 0 .f, float maxPt = 1e10f);
@@ -303,13 +301,13 @@ class DalitzEECut
303301 void SetTrackDca3DRange (float min, float max); // in sigma
304302 void SetMaxDcaXY (float maxDcaXY); // in cm
305303 void SetMaxDcaZ (float maxDcaZ); // in cm
306- void SetMaxDcaXYPtDep (std::function<float (float )> ptDepCut);
304+ void SetMaxDcaXYPtDep (const std::function<float (float )>& ptDepCut);
307305 void ApplyPrefilter (bool flag);
308306 void ApplyPhiV (bool flag);
309307 void IncludeITSsa (bool flag, float maxpt);
310308
311309 // Getters
312- bool IsPhotonConversionSelected () const { return mSelectPC ; }
310+ [[nodiscard]] bool IsPhotonConversionSelected () const { return mSelectPC ; }
313311
314312 private:
315313 std::string name;
@@ -321,8 +319,8 @@ class DalitzEECut
321319 float mMinPairPt {0 .f }, mMaxPairPt {1e10f}; // range in pT
322320 float mMinPairY {-1e10f}, mMaxPairY {1e10f}; // range in rapidity
323321 float mMinPhivPair {0 .f }, mMaxPhivPair {+3.2 };
324- std::function<float (float )> mMaxPhivPairMeeDep {} ; // max phiv as a function of mee
325- bool mSelectPC {false }; // flag to select photon conversion used in mMaxPhivPairMeeDep
322+ std::function<float (float )> mMaxPhivPairMeeDep ; // max phiv as a function of mee
323+ bool mSelectPC {false }; // flag to select photon conversion used in mMaxPhivPairMeeDep
326324
327325 // kinematic cuts
328326 float mMinTrackPt {0 .f }, mMaxTrackPt {1e10f}; // range in pT
@@ -340,11 +338,11 @@ class DalitzEECut
340338 bool mRequireITSibAny {true };
341339 bool mRequireITSib1st {false };
342340
343- float mMinDca3D {0 .0f }; // min dca in 3D in units of sigma
344- float mMaxDca3D {1e+10 }; // max dca in 3D in units of sigma
345- float mMaxDcaXY {1 .0f }; // max dca in xy plane
346- float mMaxDcaZ {1 .0f }; // max dca in z direction
347- std::function<float (float )> mMaxDcaXYPtDep {} ; // max dca in xy plane as function of pT
341+ float mMinDca3D {0 .0f }; // min dca in 3D in units of sigma
342+ float mMaxDca3D {1e+10 }; // max dca in 3D in units of sigma
343+ float mMaxDcaXY {1 .0f }; // max dca in xy plane
344+ float mMaxDcaZ {1 .0f }; // max dca in z direction
345+ std::function<float (float )> mMaxDcaXYPtDep ; // max dca in xy plane as function of pT
348346 bool mApplyPhiV {true };
349347 float mMinMeanClusterSizeITS {-1e10f}, mMaxMeanClusterSizeITS {1e10f}; // <its cluster size> x cos(lmabda)
350348 float mMinChi2TOF {-1e10f}, mMaxChi2TOF {1e10f}; // max tof chi2 per
0 commit comments