File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,8 @@ struct ITSResponse {
8383 template <o2::track::PID::ID id>
8484 static float nSigmaITS (uint32_t itsClusterSizes, float momentum, float eta)
8585 {
86+ unsigned int charge = (id == o2::track::PID::Helium3 || id == o2::track::PID::Alpha) ? 2 : 1 ;
87+ momentum *= charge;
8688 const float exp = expSignal<id>(momentum);
8789 const float average = averageClusterSize (itsClusterSizes);
8890 const float coslInv = 1 . / std::cosh (eta);
@@ -93,8 +95,7 @@ struct ITSResponse {
9395 template <o2::track::PID::ID id, typename T>
9496 static float nSigmaITS (const T& track)
9597 {
96- unsigned int charge = (id == o2::track::PID::Helium3 || id == o2::track::PID::Alpha) ? 2 : 1 ;
97- return nSigmaITS<id>(track.itsClusterSizes (), charge * track.p (), track.eta ());
98+ return nSigmaITS<id>(track.itsClusterSizes (), track.p (), track.eta ());
9899 }
99100
100101 static void setParameters (float p0, float p1, float p2,
You can’t perform that action at this time.
0 commit comments