@@ -91,7 +91,6 @@ struct Phik0shortanalysis {
9191 // Configurables for track selection (not necessarily common for trigger and the two associated particles)
9292 struct : ConfigurableGroup {
9393 Configurable<float > cfgCutCharge{" cfgCutCharge" , 0 .0f , " Cut on charge" };
94- Configurable<bool > cfgPrimaryTrack{" cfgPrimaryTrack" , false , " Primary track selection" };
9594 Configurable<bool > cfgGlobalWoDCATrack{" cfgGlobalWoDCATrack" , true , " Global track selection without DCA" };
9695 Configurable<bool > cfgPVContributor{" cfgPVContributor" , true , " PV contributor track selection" };
9796 Configurable<float > cMinKaonPtcut{" cMinKaonPtcut" , 0 .15f , " Track minimum pt cut" };
@@ -115,9 +114,9 @@ struct Phik0shortanalysis {
115114 Configurable<float > nSigmaCutCombinedKa{" nSigmaCutCombinedKa" , 3 .0f , " Value of the TOF Nsigma cut for Kaons" };
116115
117116 Configurable<float > nSigmaCutTPCPion{" nSigmaCutTPCPion" , 4 .0f , " Value of the TPC Nsigma cut for Pions" };
118- Configurable<float > cMinPionPtcut{" cMinPionPtcut" , 0 .3f , " Track minimum pt cut" };
117+ Configurable<float > cMinPionPtcut{" cMinPionPtcut" , 0 .2f , " Track minimum pt cut" };
119118 Configurable<int > minTPCnClsFound{" minTPCnClsFound" , 70 , " min number of found TPC clusters" };
120- Configurable<int > minNCrossedRowsTPC{" minNCrossedRowsTPC" , 80 , " min number of TPC crossed rows" };
119+ Configurable<int > minNCrossedRowsTPC{" minNCrossedRowsTPC" , 70 , " min number of TPC crossed rows" };
121120 Configurable<float > maxChi2TPC{" maxChi2TPC" , 4 .0f , " max chi2 per cluster TPC" };
122121 Configurable<int > minITSnCls{" minITSnCls" , 4 , " min number of ITS clusters" };
123122 Configurable<float > maxChi2ITS{" maxChi2ITS" , 36 .0f , " max chi2 per cluster ITS" };
@@ -724,10 +723,8 @@ struct Phik0shortanalysis {
724723
725724 // Topological track selection
726725 template <bool isMC, typename T>
727- bool selectionTrackResonance (const T& track, bool isQA )
726+ bool selectionTrackResonance (const T& track, bool doQA )
728727 {
729- if (trackConfigs.cfgPrimaryTrack && !track.isPrimaryTrack ())
730- return false ;
731728 if (trackConfigs.cfgGlobalWoDCATrack && !track.isGlobalTrackWoDCA ())
732729 return false ;
733730 if (trackConfigs.cfgPVContributor && !track.isPVContributor ())
@@ -738,10 +735,8 @@ struct Phik0shortanalysis {
738735
739736 if (track.pt () < trackConfigs.cMinKaonPtcut )
740737 return false ;
741- if (std::abs (track.eta ()) > trackConfigs.etaMax )
742- return false ;
743738
744- if (isQA ) {
739+ if (doQA ) {
745740 if constexpr (!isMC) {
746741 dataPhiHist.fill (HIST (" h2DauTracksPhiDCAxyPreCutData" ), track.pt (), track.dcaXY ());
747742 dataPhiHist.fill (HIST (" h2DauTracksPhiDCAzPreCutData" ), track.pt (), track.dcaZ ());
@@ -752,7 +747,7 @@ struct Phik0shortanalysis {
752747 }
753748 if (std::abs (track.dcaXY ()) > trackConfigs.cMaxDCArToPV1Phi + (trackConfigs.cMaxDCArToPV2Phi / std::pow (track.pt (), trackConfigs.cMaxDCArToPV3Phi )))
754749 return false ;
755- if (isQA ) {
750+ if (doQA ) {
756751 if constexpr (!isMC) {
757752 dataPhiHist.fill (HIST (" h2DauTracksPhiDCAxyPostCutData" ), track.pt (), track.dcaXY ());
758753 dataPhiHist.fill (HIST (" h2DauTracksPhiDCAzPostCutData" ), track.pt (), track.dcaZ ());
@@ -802,35 +797,25 @@ struct Phik0shortanalysis {
802797
803798 // Topological selection for pions
804799 template <bool isTOFChecked, bool isMC, typename T>
805- bool selectionPion (const T& track, bool isQA )
800+ bool selectionPion (const T& track, bool doQA )
806801 {
807- if (!track.hasITS ())
808- return false ;
809- if (track.itsNCls () < trackConfigs.minITSnCls )
810- return false ;
811- if (track.itsChi2NCl () > trackConfigs.maxChi2ITS )
802+ if (!track.isGlobalTrackWoDCA ())
812803 return false ;
813804
814- if (! track.hasTPC () )
805+ if (track.itsNCls () < trackConfigs. minITSnCls )
815806 return false ;
816807 if (track.tpcNClsFound () < trackConfigs.minTPCnClsFound )
817808 return false ;
818- if (track.tpcNClsCrossedRows () < trackConfigs.minNCrossedRowsTPC )
819- return false ;
820- if (track.tpcChi2NCl () > trackConfigs.maxChi2TPC )
821- return false ;
822809
823810 if (track.pt () < trackConfigs.cMinPionPtcut )
824811 return false ;
825- if (std::abs (track.eta ()) > trackConfigs.etaMax )
826- return false ;
827812
828813 if constexpr (isTOFChecked) {
829814 if (track.pt () >= trackConfigs.pTToUseTOF && !track.hasTOF ())
830815 return false ;
831816 }
832817
833- if (isQA ) {
818+ if (doQA ) {
834819 if constexpr (!isMC) {
835820 dataPionHist.fill (HIST (" h2TracksPiDCAxyPreCutData" ), track.pt (), track.dcaXY ());
836821 dataPionHist.fill (HIST (" h2TracksPiDCAzPreCutData" ), track.pt (), track.dcaZ ());
@@ -841,7 +826,7 @@ struct Phik0shortanalysis {
841826 }
842827 if (std::abs (track.dcaXY ()) > trackConfigs.cMaxDCArToPV1Pion + (trackConfigs.cMaxDCArToPV2Pion / std::pow (track.pt (), trackConfigs.cMaxDCArToPV3Pion )))
843828 return false ;
844- if (isQA ) {
829+ if (doQA ) {
845830 if constexpr (!isMC) {
846831 dataPionHist.fill (HIST (" h2TracksPiDCAxyPostCutData" ), track.pt (), track.dcaXY ());
847832 dataPionHist.fill (HIST (" h2TracksPiDCAzPostCutData" ), track.pt (), track.dcaZ ());
0 commit comments