@@ -900,68 +900,68 @@ class HfHelper
900900 auto candJpsi = candBp.jPsi ();
901901 float pseudoPropDecLen = candBp.decayLengthXY () * mCandBp / ptCandBp;
902902
903- int pTBin = o2::analysis::findBin (binsPt, ptCandBp);
904- if (pTBin == -1 ) {
903+ int binPt = o2::analysis::findBin (binsPt, ptCandBp);
904+ if (binPt == -1 ) {
905905 return false ;
906906 }
907907
908908 // B+ mass cut
909- if (std::abs (mCandBp - o2::constants::physics::MassBPlus) > cuts->get (pTBin , " m" )) {
909+ if (std::abs (mCandBp - o2::constants::physics::MassBPlus) > cuts->get (binPt , " m" )) {
910910 return false ;
911911 }
912912
913913 // kaon pt
914- if (ptKa < cuts->get (pTBin , " pT K" )) {
914+ if (ptKa < cuts->get (binPt , " pT K" )) {
915915 return false ;
916916 }
917917
918918 // J/Psi pt
919- if (ptJpsi < cuts->get (pTBin , " pT J/Psi" )) {
919+ if (ptJpsi < cuts->get (binPt , " pT J/Psi" )) {
920920 return false ;
921921 }
922922
923923 // J/Psi mass
924- if (std::abs (candJpsi.m () - o2::constants::physics::MassJPsi) < cuts->get (pTBin , " DeltaM J/Psi" )) {
924+ if (std::abs (candJpsi.m () - o2::constants::physics::MassJPsi) < cuts->get (binPt , " DeltaM J/Psi" )) {
925925 return false ;
926926 }
927927
928928 // d0(J/Psi)xd0(K)
929- if (candBp.impactParameterProduct () > cuts->get (pTBin , " B Imp. Par. Product" )) {
929+ if (candBp.impactParameterProduct () > cuts->get (binPt , " B Imp. Par. Product" )) {
930930 return false ;
931931 }
932932
933933 // B+ Decay length
934- if (candBp.decayLength () < cuts->get (pTBin , " B decLen" )) {
934+ if (candBp.decayLength () < cuts->get (binPt , " B decLen" )) {
935935 return false ;
936936 }
937937
938938 // B+ Decay length XY
939- if (candBp.decayLengthXY () < cuts->get (pTBin , " B decLenXY" )) {
939+ if (candBp.decayLengthXY () < cuts->get (binPt , " B decLenXY" )) {
940940 return false ;
941941 }
942942
943943 // B+ CPA cut
944- if (candBp.cpa () < cuts->get (pTBin , " CPA" )) {
944+ if (candBp.cpa () < cuts->get (binPt , " CPA" )) {
945945 return false ;
946946 }
947947
948948 // B+ CPAXY cut
949- if (candBp.cpaXY () < cuts->get (pTBin , " CPAXY" )) {
949+ if (candBp.cpaXY () < cuts->get (binPt , " CPAXY" )) {
950950 return false ;
951951 }
952952
953953 // d0 of K
954- if (std::abs (candBp.impactParameter1 ()) < cuts->get (pTBin , " d0 K" )) {
954+ if (std::abs (candBp.impactParameter1 ()) < cuts->get (binPt , " d0 K" )) {
955955 return false ;
956956 }
957957
958958 // d0 of J/Psi
959- if (std::abs (candBp.impactParameter0 ()) < cuts->get (pTBin , " d0 J/Psi" )) {
959+ if (std::abs (candBp.impactParameter0 ()) < cuts->get (binPt , " d0 J/Psi" )) {
960960 return false ;
961961 }
962962
963963 // B pseudoproper decay length
964- if (pseudoPropDecLen < cuts->get (pTBin , " B pseudoprop. decLen" )) {
964+ if (pseudoPropDecLen < cuts->get (binPt , " B pseudoprop. decLen" )) {
965965 return false ;
966966 }
967967
@@ -1091,74 +1091,74 @@ class HfHelper
10911091 auto candJpsi = candBs.jPsi ();
10921092 float pseudoPropDecLen = candBs.decayLengthXY () * mCandBs / ptCandBs;
10931093
1094- int pTBin = o2::analysis::findBin (binsPt, ptCandBs);
1095- if (pTBin == -1 ) {
1094+ int binPt = o2::analysis::findBin (binsPt, ptCandBs);
1095+ if (binPt == -1 ) {
10961096 return false ;
10971097 }
10981098
10991099 // Bs mass cut
1100- if (std::abs (mCandBs - o2::constants::physics::MassBPlus) > cuts->get (pTBin , " m" )) {
1100+ if (std::abs (mCandBs - o2::constants::physics::MassBPlus) > cuts->get (binPt , " m" )) {
11011101 return false ;
11021102 }
11031103
11041104 // kaon pt
1105- if (candKa0.pt () < cuts->get (pTBin , " pT K" ) &&
1106- candKa1.pt () < cuts->get (pTBin , " pT K" )) {
1105+ if (candKa0.pt () < cuts->get (binPt , " pT K" ) &&
1106+ candKa1.pt () < cuts->get (binPt , " pT K" )) {
11071107 return false ;
11081108 }
11091109
11101110 // J/Psi pt
1111- if (ptJpsi < cuts->get (pTBin , " pT J/Psi" )) {
1111+ if (ptJpsi < cuts->get (binPt , " pT J/Psi" )) {
11121112 return false ;
11131113 }
11141114
11151115 // phi mass
1116- if (std::abs (mcandPhi - o2::constants::physics::MassPhi) < cuts->get (pTBin , " DeltaM phi" )) {
1116+ if (std::abs (mcandPhi - o2::constants::physics::MassPhi) < cuts->get (binPt , " DeltaM phi" )) {
11171117 return false ;
11181118 }
11191119
11201120 // J/Psi mass
1121- if (std::abs (candJpsi.m () - o2::constants::physics::MassJPsi) < cuts->get (pTBin , " DeltaM J/Psi" )) {
1121+ if (std::abs (candJpsi.m () - o2::constants::physics::MassJPsi) < cuts->get (binPt , " DeltaM J/Psi" )) {
11221122 return false ;
11231123 }
11241124
11251125 // d0(J/Psi)xd0(phi)
1126- if (candBs.impactParameterProduct () > cuts->get (pTBin , " B Imp. Par. Product" )) {
1126+ if (candBs.impactParameterProduct () > cuts->get (binPt , " B Imp. Par. Product" )) {
11271127 return false ;
11281128 }
11291129
11301130 // Bs Decay length
1131- if (candBs.decayLength () < cuts->get (pTBin , " B decLen" )) {
1131+ if (candBs.decayLength () < cuts->get (binPt , " B decLen" )) {
11321132 return false ;
11331133 }
11341134
11351135 // Bs Decay length XY
1136- if (candBs.decayLengthXY () < cuts->get (pTBin , " B decLenXY" )) {
1136+ if (candBs.decayLengthXY () < cuts->get (binPt , " B decLenXY" )) {
11371137 return false ;
11381138 }
11391139
11401140 // Bs CPA cut
1141- if (candBs.cpa () < cuts->get (pTBin , " CPA" )) {
1141+ if (candBs.cpa () < cuts->get (binPt , " CPA" )) {
11421142 return false ;
11431143 }
11441144
11451145 // Bs CPAXY cut
1146- if (candBs.cpaXY () < cuts->get (pTBin , " CPAXY" )) {
1146+ if (candBs.cpaXY () < cuts->get (binPt , " CPAXY" )) {
11471147 return false ;
11481148 }
11491149
11501150 // d0 of phi
1151- if (std::abs (candBs.impactParameter1 ()) < cuts->get (pTBin , " d0 phi" )) {
1151+ if (std::abs (candBs.impactParameter1 ()) < cuts->get (binPt , " d0 phi" )) {
11521152 return false ;
11531153 }
11541154
11551155 // d0 of J/Psi
1156- if (std::abs (candBs.impactParameter0 ()) < cuts->get (pTBin , " d0 J/Psi" )) {
1156+ if (std::abs (candBs.impactParameter0 ()) < cuts->get (binPt , " d0 J/Psi" )) {
11571157 return false ;
11581158 }
11591159
11601160 // B pseudoproper decay length
1161- if (pseudoPropDecLen < cuts->get (pTBin , " B pseudoprop. decLen" )) {
1161+ if (pseudoPropDecLen < cuts->get (binPt , " B pseudoprop. decLen" )) {
11621162 return false ;
11631163 }
11641164
0 commit comments