@@ -1213,7 +1213,7 @@ struct DedxPidAnalysis {
12131213 }
12141214 // Phi cut
12151215 template <typename T>
1216- bool passedPhiCutPri (const T& trk, float magField, const TF1 & fphiCutLow, const TF1 & fphiCutHigh )
1216+ bool passedPhiCutPri (const T& trk, float magField)
12171217 {
12181218 float p = trk.p ();
12191219 float pt = trk.pt ();
@@ -1240,7 +1240,7 @@ struct DedxPidAnalysis {
12401240 registryDeDx.fill (HIST (" hp_vs_phi_NclPID_TPC_Before" ), p, phi, nTPCPIDCl);
12411241
12421242 // cut phi
1243- if (phi < fphiCutHigh. Eval (pt) && phi > fphiCutLow. Eval (pt))
1243+ if (phi < fphiCutHigh-> Eval (pt) && phi > fphiCutLow-> Eval (pt))
12441244 return false ; // reject track
12451245
12461246 registryDeDx.fill (HIST (" hpt_vs_phi_NclFound_TPC_After" ), pt, phi, nTPCCl);
@@ -1481,7 +1481,7 @@ struct DedxPidAnalysis {
14811481
14821482 // Phi cut Secondaries
14831483 template <typename T>
1484- bool passedPhiCutSecondaries (const T& trk, float magField, const TF1 & fphiCutLow, const TF1 & fphiCutHigh )
1484+ bool passedPhiCutSecondaries (const T& trk, float magField)
14851485 {
14861486 float pt = trk.pt ();
14871487 float phi = trk.phi ();
@@ -1500,7 +1500,7 @@ struct DedxPidAnalysis {
15001500 phi = std::fmod (phi, o2::constants::math::PI / 9 .0f );
15011501
15021502 // cut phi
1503- if (phi < fphiCutHigh. Eval (pt) && phi > fphiCutLow. Eval (pt))
1503+ if (phi < fphiCutHigh-> Eval (pt) && phi > fphiCutLow-> Eval (pt))
15041504 return false ; // reject track
15051505
15061506 return true ;
@@ -1659,7 +1659,7 @@ struct DedxPidAnalysis {
16591659
16601660 // phi and Ncl cut
16611661 if (phiVarCut) {
1662- if (!passedPhiCutPri (trk, magField, *fphiCutLow, *fphiCutHigh ))
1662+ if (!passedPhiCutPri (trk, magField))
16631663 continue ;
16641664 registryDeDx.fill (HIST (" trackselAll" ), TrkPriCutLabel::PhiVarCutPri);
16651665 }
@@ -1825,10 +1825,10 @@ struct DedxPidAnalysis {
18251825 // registryDeDx.fill(HIST("trackselSec"), TrkSecCutLabel::TPCRefit);
18261826 // phi and Ncl cut
18271827 if (phiVarCut) {
1828- if (!passedPhiCutSecondaries (posTrack, magField, *fphiCutLow, *fphiCutHigh ))
1828+ if (!passedPhiCutSecondaries (posTrack, magField))
18291829 continue ;
18301830
1831- if (!passedPhiCutSecondaries (negTrack, magField, *fphiCutLow, *fphiCutHigh ))
1831+ if (!passedPhiCutSecondaries (negTrack, magField))
18321832 continue ;
18331833
18341834 registryDeDx.fill (HIST (" trackselSec" ), TrkSecCutLabel ::PhiVarCutSec);
0 commit comments