@@ -1016,7 +1016,7 @@ struct KaonIsospinFluctuations {
10161016 // _______________________________Identification Funtions Depending on the tpcInnerParam _______________________________
10171017 // tpc Selections
10181018 template <typename T>
1019- bool selPionTPCInnerParam (T track)
1019+ bool selPionTPCInnerParam (const T& track)
10201020 {
10211021 if (vetoIdOthersTPC<kPi >(track)) {
10221022 if (0.05 <= track.tpcInnerParam () && track.tpcInnerParam () < 0.70 && std::abs (track.tpcNSigmaPi ()) < cfgPiNSigmaTPCLowP) {
@@ -1030,7 +1030,7 @@ struct KaonIsospinFluctuations {
10301030 }
10311031
10321032 template <typename T>
1033- bool selKaonTPCInnerParam (T track)
1033+ bool selKaonTPCInnerParam (const T& track)
10341034 {
10351035 if (vetoIdOthersTPC<kKa >(track)) {
10361036 if (0.05 <= track.tpcInnerParam () && track.tpcInnerParam () < 0.70 && std::abs (track.tpcNSigmaKa ()) < cfgKaNSigmaTPCLowP) {
@@ -1044,7 +1044,7 @@ struct KaonIsospinFluctuations {
10441044 }
10451045
10461046 template <typename T>
1047- bool selProtonTPCInnerParam (T track)
1047+ bool selProtonTPCInnerParam (const T& track)
10481048 {
10491049 if (vetoIdOthersTPC<kPr >(track)) {
10501050 if (0.05 <= track.tpcInnerParam () && track.tpcInnerParam () < 1.60 && std::abs (track.tpcNSigmaPr ()) < cfgPrNSigmaTPCLowP) {
@@ -1058,7 +1058,7 @@ struct KaonIsospinFluctuations {
10581058 }
10591059
10601060 template <typename T>
1061- bool selDeuteronTPCInnerParam (T track)
1061+ bool selDeuteronTPCInnerParam (const T& track)
10621062 {
10631063 if (vetoIdOthersTPC<kDe >(track)) {
10641064 if (0.05 <= track.tpcInnerParam () && track.tpcInnerParam () < 1.80 && std::abs (track.tpcNSigmaDe ()) < 3.0 ) {
@@ -1072,7 +1072,7 @@ struct KaonIsospinFluctuations {
10721072 }
10731073
10741074 template <typename T>
1075- bool selElectronTPCInnerParam (T track)
1075+ bool selElectronTPCInnerParam (const T& track)
10761076 {
10771077 if (track.tpcNSigmaEl () < 3.0 && track.tpcNSigmaPi () > 3.0 && track.tpcNSigmaKa () > 3.0 && track.tpcNSigmaPr () > 3.0 && track.tpcNSigmaDe () > 3.0 ) {
10781078 return true ;
@@ -1084,7 +1084,7 @@ struct KaonIsospinFluctuations {
10841084 // TOF Selections
10851085 // Pion
10861086 template <typename T>
1087- bool selPionTOF (T track)
1087+ bool selPionTOF (const T& track)
10881088 {
10891089 if (vetoIdOthersTOF<kPi >(track)) {
10901090 if (track.p () <= 0.75 && std::abs (track.tpcNSigmaPi ()) < cfgPiNSigmaTPCLowP && std::abs (track.tofNSigmaPi ()) < cfgPiNSigmaTOFLowP) {
@@ -1099,7 +1099,7 @@ struct KaonIsospinFluctuations {
10991099
11001100 // Kaon
11011101 template <typename T>
1102- bool selKaonTOF (T track)
1102+ bool selKaonTOF (const T& track)
11031103 {
11041104 if (vetoIdOthersTOF<kKa >(track)) {
11051105 if (track.p () <= 0.75 && std::abs (track.tpcNSigmaKa ()) < cfgKaNSigmaTPCLowP && std::abs (track.tofNSigmaKa ()) < cfgKaNSigmaTOFLowP) {
@@ -1119,7 +1119,7 @@ struct KaonIsospinFluctuations {
11191119
11201120 // Proton
11211121 template <typename T>
1122- bool selProtonTOF (T track)
1122+ bool selProtonTOF (const T& track)
11231123 {
11241124 if (vetoIdOthersTOF<kPr >(track)) {
11251125 if (track.p () <= 1.30 && std::abs (track.tpcNSigmaPr ()) < cfgPrNSigmaTPCLowP && std::abs (track.tofNSigmaPr ()) < cfgPrNSigmaTOFLowP) {
@@ -1140,7 +1140,7 @@ struct KaonIsospinFluctuations {
11401140
11411141 // Deuteron
11421142 template <typename T>
1143- bool selDeuteronTOF (T track)
1143+ bool selDeuteronTOF (const T& track)
11441144 {
11451145 if (vetoIdOthersTOF<kDe >(track)) {
11461146 if (track.p () <= 3.10 && std::abs (track.tpcNSigmaDe ()) < 3.0 && std::abs (track.tofNSigmaDe ()) < 3.0 ) {
@@ -1156,7 +1156,7 @@ struct KaonIsospinFluctuations {
11561156
11571157 // Electron
11581158 template <typename T>
1159- bool selElectronTOF (T track)
1159+ bool selElectronTOF (const T& track)
11601160 {
11611161 if ((std::pow (track.tpcNSigmaEl (), 2 ) + std::pow (track.tofNSigmaEl (), 2 )) < 9.00 && vetoIdOthersTOF<kEl >(track)) {
11621162 return true ;
@@ -1168,7 +1168,7 @@ struct KaonIsospinFluctuations {
11681168 // ______________________________Identification Functions________________________________________________________________
11691169 // Pion
11701170 template <typename T>
1171- bool selPion (T track, int & IdMethod)
1171+ bool selPion (const T& track, int & IdMethod)
11721172 {
11731173 if (cfgDoPdependentId) {
11741174 return selPiPdependent (track, IdMethod);
@@ -1187,7 +1187,7 @@ struct KaonIsospinFluctuations {
11871187
11881188 // Kaon
11891189 template <typename T>
1190- bool selKaon (T track, int & IdMethod)
1190+ bool selKaon (const T& track, int & IdMethod)
11911191 {
11921192 if (cfgDoPdependentId) {
11931193 return selKaPdependent (track, IdMethod);
@@ -1206,7 +1206,7 @@ struct KaonIsospinFluctuations {
12061206
12071207 // Proton
12081208 template <typename T>
1209- bool selProton (T track, int & IdMethod)
1209+ bool selProton (const T& track, int & IdMethod)
12101210 {
12111211 if (cfgDoPdependentId) {
12121212 return selPrPdependent (track, IdMethod);
@@ -1225,7 +1225,7 @@ struct KaonIsospinFluctuations {
12251225
12261226 // Deuteron
12271227 template <typename T>
1228- bool selDeuteron (T track, int & IdMethod)
1228+ bool selDeuteron (const T& track, int & IdMethod)
12291229 {
12301230 if (cfgDoPdependentId) {
12311231 return false ;
@@ -1244,7 +1244,7 @@ struct KaonIsospinFluctuations {
12441244
12451245 // Electron
12461246 template <typename T>
1247- bool selElectron (T track, int & IdMethod)
1247+ bool selElectron (const T& track, int & IdMethod)
12481248 {
12491249 if (cfgDoPdependentId) {
12501250 return false ;
@@ -1310,7 +1310,7 @@ struct KaonIsospinFluctuations {
13101310 }
13111311
13121312 template <typename T>
1313- bool selK0s (T v0)
1313+ bool selK0s (const T& v0)
13141314 {
13151315 if (k0sSelCut.cfgK0sMLow < v0.mK0Short () && v0.mK0Short () < k0sSelCut.cfgK0sMHigh &&
13161316 k0sSelCut.cfgK0sLowPt < v0.pt () && v0.pt () < k0sSelCut.cfgK0sHighPt &&
@@ -1323,7 +1323,7 @@ struct KaonIsospinFluctuations {
13231323 }
13241324
13251325 template <typename T>
1326- void findRepeatedEntries (std::vector<int64_t > ParticleList, T hist)
1326+ void findRepeatedEntries (std::vector<int64_t > ParticleList, const T& hist)
13271327 {
13281328 for (uint ii = 0 ; ii < ParticleList.size (); ii++) {
13291329 int nCommonCount = 0 ; // checking the repeat number of track
@@ -1441,7 +1441,7 @@ struct KaonIsospinFluctuations {
14411441 }
14421442
14431443 template <int Mode, typename T>
1444- void fillTrackQA (T track)
1444+ void fillTrackQA (const T& track)
14451445 {
14461446 // FullTrack
14471447 recoTracks.fill (HIST (HistRegDire[Mode]) + HIST (" h01_p" ), track.p ());
0 commit comments