@@ -89,11 +89,19 @@ struct Phik0shortanalysis {
8989 Configurable<bool > cfgGlobalWoDCATrack{" cfgGlobalWoDCATrack" , true , " Global track selection without DCA" };
9090 Configurable<bool > cfgPVContributor{" cfgPVContributor" , true , " PV contributor track selection" };
9191 Configurable<float > cMinKaonPtcut{" cMinKaonPtcut" , 0 .15f , " Track minimum pt cut" };
92- Configurable<float > cMaxDCAzToPVcut{" cMaxDCAzToPVcut" , 2 .0f , " Track DCAz cut to PV Maximum" };
93- Configurable<float > cMaxDCArToPV1{" cMaxDCArToPV1" , 0 .004f , " Track DCAr cut to PV config 1" };
94- Configurable<float > cMaxDCArToPV2{" cMaxDCArToPV2" , 0 .013f , " Track DCAr cut to PV config 2" };
95- Configurable<float > cMaxDCArToPV3{" cMaxDCArToPV3" , 1 .0f , " Track DCAr cut to PV config 3" };
9692 Configurable<float > etaMax{" etaMax" , 0 .8f , " eta max" };
93+ Configurable<float > cMaxDCAzToPVcut{" cMaxDCAzToPVcut" , 2 .0f , " Track DCAz cut to PV Maximum" };
94+ Configurable<float > cMaxDCArToPV1Phi{" cMaxDCArToPV1Phi" , 0 .004f , " Track DCAr cut to PV config 1 for Phi" };
95+ Configurable<float > cMaxDCArToPV2Phi{" cMaxDCArToPV2Phi" , 0 .013f , " Track DCAr cut to PV config 2 for Phi" };
96+ Configurable<float > cMaxDCArToPV3Phi{" cMaxDCArToPV3Phi" , 1 .0f , " Track DCAr cut to PV config 3 for Phi" };
97+ Configurable<float > cMaxDCArToPV1Pion{" cMaxDCArToPV1Pion" , 0 .004f , " Track DCAr cut to PV config 1 for Pions" };
98+ Configurable<float > cMaxDCArToPV2Pion{" cMaxDCArToPV2Pion" , 0 .013f , " Track DCAr cut to PV config 2 for Pions" };
99+ Configurable<float > cMaxDCArToPV3Pion{" cMaxDCArToPV3Pion" , 1 .0f , " Track DCAr cut to PV config 3 for Pions" };
100+
101+ Configurable<bool > cfgIsDCAzParameterized{" cfgIsDCAzParameterized" , false , " IsDCAzParameterized" };
102+ Configurable<float > cMaxDCAzToPV1Pion{" cMaxDCAzToPV1Pion" , 0 .004f , " Track DCAz cut to PV config 1 for Pion" };
103+ Configurable<float > cMaxDCAzToPV2Pion{" cMaxDCAzToPV2Pion" , 0 .013f , " Track DCAz cut to PV config 2 for Pion" };
104+ Configurable<float > cMaxDCAzToPV3Pion{" cMaxDCAzToPV3Pion" , 1 .0f , " Track DCAz cut to PV config 3 for Pion" };
97105
98106 Configurable<bool > isNoTOF{" isNoTOF" , false , " isNoTOF" };
99107 Configurable<float > nSigmaCutTPCKa{" nSigmaCutTPCKa" , 3 .0f , " Value of the TPC Nsigma cut for Kaons" };
@@ -415,9 +423,9 @@ struct Phik0shortanalysis {
415423 closureMCPhiPionHist.add (" h5ClosureMCPhiPiSESCut" , " Phi Invariant mass vs Pion nSigma TPC/TOF for Deltay < SecondCut for Closure Test" , kTHnSparseF , {binnedmultAxis, binnedptPiAxis, {100 , -10 .0f , 10 .0f }, {100 , -10 .0f , 10 .0f }, sigmassPhiAxis});
416424
417425 // Phi mass vs Pion NSigma dE/dx for Closure Test
418- closureMCPhiPionHist.add (" h4ClosureMCPhiPiSEIncNew" , " Pion nSigma TPC/TOF for Inclusive for Closure Test" , kTHnSparseF , {binnedmultAxis, binnedptPiAxis, {100 , -10 .0f , 10 .0f }, {100 , -10 .0f , 10 .0f }, sigmassPhiAxis });
419- closureMCPhiPionHist.add (" h4ClosureMCPhiPiSEFCutNew" , " Pion nSigma TPC/TOF for Deltay < FirstCut for Closure Test" , kTHnSparseF , {binnedmultAxis, binnedptPiAxis, {100 , -10 .0f , 10 .0f }, {100 , -10 .0f , 10 .0f }, sigmassPhiAxis });
420- closureMCPhiPionHist.add (" h4ClosureMCPhiPiSESCutNew" , " Pion nSigma TPC/TOF for Deltay < SecondCut for Closure Test" , kTHnSparseF , {binnedmultAxis, binnedptPiAxis, {100 , -10 .0f , 10 .0f }, {100 , -10 .0f , 10 .0f }, sigmassPhiAxis });
426+ closureMCPhiPionHist.add (" h4ClosureMCPhiPiSEIncNew" , " Pion nSigma TPC/TOF for Inclusive for Closure Test" , kTHnSparseF , {binnedmultAxis, binnedptPiAxis, {100 , -10 .0f , 10 .0f }, {100 , -10 .0f , 10 .0f }});
427+ closureMCPhiPionHist.add (" h4ClosureMCPhiPiSEFCutNew" , " Pion nSigma TPC/TOF for Deltay < FirstCut for Closure Test" , kTHnSparseF , {binnedmultAxis, binnedptPiAxis, {100 , -10 .0f , 10 .0f }, {100 , -10 .0f , 10 .0f }});
428+ closureMCPhiPionHist.add (" h4ClosureMCPhiPiSESCutNew" , " Pion nSigma TPC/TOF for Deltay < SecondCut for Closure Test" , kTHnSparseF , {binnedmultAxis, binnedptPiAxis, {100 , -10 .0f , 10 .0f }, {100 , -10 .0f , 10 .0f }});
421429
422430 // MCPhi invariant mass for computing efficiencies and MCnormalisation
423431 mcPhiHist.add (" h2PhieffInvMass" , " Invariant mass of Phi for Efficiency (no K0S/Pi)" , kTH2F , {binnedmultAxis, massPhiAxis});
@@ -620,7 +628,7 @@ struct Phik0shortanalysis {
620628 mcPhiHist.fill (HIST (" h2DauTracksPhiDCAzPreCutMCReco" ), track.pt (), track.dcaZ ());
621629 }
622630 }
623- if (std::abs (track.dcaXY ()) > trackConfigs.cMaxDCArToPV1 + (trackConfigs.cMaxDCArToPV2 / std::pow (track.pt (), trackConfigs.cMaxDCArToPV3 )))
631+ if (std::abs (track.dcaXY ()) > trackConfigs.cMaxDCArToPV1Phi + (trackConfigs.cMaxDCArToPV2Phi / std::pow (track.pt (), trackConfigs.cMaxDCArToPV3Phi )))
624632 return false ;
625633 if (isQA) {
626634 if constexpr (!isMC) {
@@ -709,7 +717,7 @@ struct Phik0shortanalysis {
709717 mcPionHist.fill (HIST (" h2TracksPiDCAzPreCutMCReco" ), track.pt (), track.dcaZ ());
710718 }
711719 }
712- if (std::abs (track.dcaXY ()) > trackConfigs.cMaxDCArToPV1 + (trackConfigs.cMaxDCArToPV2 / std::pow (track.pt (), trackConfigs.cMaxDCArToPV3 )))
720+ if (std::abs (track.dcaXY ()) > trackConfigs.cMaxDCArToPV1Pion + (trackConfigs.cMaxDCArToPV2Pion / std::pow (track.pt (), trackConfigs.cMaxDCArToPV3Pion )))
713721 return false ;
714722 if (isQA) {
715723 if constexpr (!isMC) {
@@ -720,8 +728,13 @@ struct Phik0shortanalysis {
720728 mcPionHist.fill (HIST (" h2TracksPiDCAzPostCutMCReco" ), track.pt (), track.dcaZ ());
721729 }
722730 }
723- if (std::abs (track.dcaZ ()) > trackConfigs.cMaxDCAzToPVcut )
724- return false ;
731+ if (trackConfigs.cfgIsDCAzParameterized ) {
732+ if (std::abs (track.dcaZ ()) > trackConfigs.cMaxDCAzToPV1Pion + (trackConfigs.cMaxDCAzToPV2Pion / std::pow (track.pt (), trackConfigs.cMaxDCAzToPV3Pion )))
733+ return false ;
734+ } else {
735+ if (std::abs (track.dcaZ ()) > trackConfigs.cMaxDCAzToPVcut )
736+ return false ;
737+ }
725738 return true ;
726739 }
727740
0 commit comments