Skip to content

Commit f9f27bc

Browse files
committed
fix typo
1 parent 020b1bf commit f9f27bc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

PWGHF/Utils/utilsPid.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,18 @@ enum PidMethod {
5252
///
5353
/// \tparam TrackType Track/ASoA row type providing TPC accessors.
5454
/// \param track Track to be tested.
55-
/// \param lightnuclei Species selector: 3=Deuteron, 4=Triton, 5=Helium3, 6=Alpha.
55+
/// \param species Species selector: 3=Deuteron, 4=Triton, 5=Helium3, 6=Alpha.
5656
/// \param bbParams is Bethe–Bloch parameters
5757
/// \return TPC nσ for the chosen nucleus hypothesis (or -999 if not applicable).
5858
template <typename TrackType>
5959
float getTPCNSigmaLightNucleiBetheBloch(const TrackType& track,
60-
HfProngSpecies lightnuclei,
60+
HfProngSpecies species,
6161
const o2::framework::Configurable<o2::framework::LabeledArray<float>>& bbParams)
6262
{
6363
if (!track.hasTPC()) {
6464
return -999.f;
6565
}
66-
const int row = static_cast<int>(lightnuclei) - static_cast<int>(HfProngSpecies::Deuteron);
66+
const int row = static_cast<int>(species) - static_cast<int>(HfProngSpecies::Deuteron);
6767

6868
if (row < 0 || row >= HfProngSpecies::NHfProngSpecies) {
6969
return -999.f;
@@ -82,7 +82,7 @@ float getTPCNSigmaLightNucleiBetheBloch(const TrackType& track,
8282
}
8383

8484
double mass = 0.;
85-
switch (lightnuclei) {
85+
switch (species) {
8686
case HfProngSpecies::Deuteron:
8787
mass = o2::constants::physics::MassDeuteron;
8888
break;
@@ -96,10 +96,10 @@ float getTPCNSigmaLightNucleiBetheBloch(const TrackType& track,
9696
mass = o2::constants::physics::MassAlpha;
9797
break;
9898
default:
99-
LOG(fatal) << "Unhandled HfProngSpecies " << static_cast<int>(lightnuclei);
99+
LOG(fatal) << "Unhandled HfProngSpecies " << static_cast<int>(species);
100100
}
101101

102-
const int charge = (lightnuclei == HfProngSpecies::Helium3 || lightnuclei == HfProngSpecies::Alpha) ? 2 : 1;
102+
const int charge = (species == HfProngSpecies::Helium3 || species == HfProngSpecies::Alpha) ? 2 : 1;
103103
const float rigidity = track.tpcInnerParam(); // p/|q|
104104

105105
const double x = static_cast<double>(charge) * static_cast<double>(rigidity) / mass;

0 commit comments

Comments
 (0)