File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -980,7 +980,7 @@ struct NucleitpcPbPb {
980980 massDiff = massTOF - pdgMass;
981981 }
982982 if (species == he4) {
983- if ((massTOF * massTOF < 6.5 && massTOF * massTOF < 9.138 ) && cfgMasscut )
983+ if (cfgMasscut && (massTOF * massTOF > 6.5 && massTOF * massTOF < 9.138 ))
984984 return ;
985985 massDiff = massTOF - pdgMass;
986986 }
@@ -1008,8 +1008,19 @@ struct NucleitpcPbPb {
10081008 float charge = (species == he3 || species == he4) ? 2 .f : 1 .f ;
10091009 float p = getRigidity (track);
10101010 float massTOF = p * charge * std::sqrt (1 .f / (beta * beta) - 1 .f );
1011+
10111012 // get PDG mass
10121013 float masssquare = massTOF * massTOF;
1014+
1015+ if (species != he4) {
1016+ masssquare = massTOF * massTOF;
1017+ }
1018+ if (species == he4) {
1019+ if (cfgMasscut && (massTOF * massTOF > 6.5 && massTOF * massTOF < 9.138 ))
1020+ return ;
1021+ masssquare = massTOF * massTOF;
1022+ }
1023+
10131024 if (track.sign () > 0 ) {
10141025 hmassnsigma[2 * species]->Fill (sigma, masssquare);
10151026 } else if (track.sign () < 0 ) {
You can’t perform that action at this time.
0 commit comments