Skip to content

Commit ca94b77

Browse files
authored
Replace o2 constants with direct particle identifiers
1 parent f6f31ad commit ca94b77

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

PWGLF/Tasks/Strangeness/strangenessInJets.cxx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,67 +1247,67 @@ struct StrangenessInJets {
12471247
// Select particles inside UE cones
12481248
if (deltaRUe1 < coneRadius || deltaRUe2 < coneRadius) {
12491249
switch (pdg[index]) {
1250-
case o2::constants::physics::kK0Short:
1250+
case kK0Short:
12511251
if (particleOfInterest == ParticleOfInterest::kV0Particles) {
12521252
registryMC.fill(HIST("K0s_generated_ue"), genMultiplicity, hadron.Pt());
12531253
}
12541254
break;
1255-
case o2::constants::physics::kLambda0:
1255+
case kLambda0:
12561256
if (particleOfInterest == ParticleOfInterest::kV0Particles) {
12571257
registryMC.fill(HIST("Lambda_generated_ue"), genMultiplicity, hadron.Pt());
12581258
}
12591259
break;
1260-
case o2::constants::physics::kLambda0Bar:
1260+
case kLambda0Bar:
12611261
if (particleOfInterest == ParticleOfInterest::kV0Particles) {
12621262
registryMC.fill(HIST("AntiLambda_generated_ue"), genMultiplicity, hadron.Pt());
12631263
}
12641264
break;
1265-
case o2::constants::physics::kXiMinus:
1265+
case kXiMinus:
12661266
if (particleOfInterest == ParticleOfInterest::kCascades) {
12671267
registryMC.fill(HIST("XiNeg_generated_ue"), genMultiplicity, hadron.Pt());
12681268
}
12691269
break;
1270-
case o2::constants::physics::kXiPlusBar:
1270+
case kXiPlusBar:
12711271
if (particleOfInterest == ParticleOfInterest::kCascades) {
12721272
registryMC.fill(HIST("XiPos_generated_ue"), genMultiplicity, hadron.Pt());
12731273
}
12741274
break;
1275-
case o2::constants::physics::kOmegaMinus:
1275+
case kOmegaMinus:
12761276
if (particleOfInterest == ParticleOfInterest::kCascades) {
12771277
registryMC.fill(HIST("OmegaNeg_generated_ue"), genMultiplicity, hadron.Pt());
12781278
}
12791279
break;
1280-
case o2::constants::physics::kOmegaPlusBar:
1280+
case kOmegaPlusBar:
12811281
if (particleOfInterest == ParticleOfInterest::kCascades) {
12821282
registryMC.fill(HIST("OmegaPos_generated_ue"), genMultiplicity, hadron.Pt());
12831283
}
12841284
break;
1285-
case o2::constants::physics::kPiPlus:
1285+
case kPiPlus:
12861286
if (particleOfInterest == ParticleOfInterest::kPions) {
12871287
registryMC.fill(HIST("ll_generated_in_ue"), genMultiplicity, hadron.Pt());
12881288
}
12891289
break;
1290-
case o2::constants::physics::kKPlus:
1290+
case kKPlus:
12911291
if (particleOfInterest == ParticleOfInterest::kKaons) {
12921292
registryMC.fill(HIST("ll_generated_in_ue"), genMultiplicity, hadron.Pt());
12931293
}
12941294
break;
1295-
case o2::constants::physics::kProton:
1295+
case kProton:
12961296
if (particleOfInterest == ParticleOfInterest::kProtons) {
12971297
registryMC.fill(HIST("ll_generated_in_ue"), genMultiplicity, hadron.Pt());
12981298
}
12991299
break;
1300-
case o2::constants::physics::kPiMinus:
1300+
case kPiMinus:
13011301
if (particleOfInterest == ParticleOfInterest::kPions) {
13021302
registryMC.fill(HIST("ll_generated_in_ue"), genMultiplicity, hadron.Pt() * -1.f);
13031303
}
13041304
break;
1305-
case o2::constants::physics::kKMinus:
1305+
case kKMinus:
13061306
if (particleOfInterest == ParticleOfInterest::kKaons) {
13071307
registryMC.fill(HIST("ll_generated_in_ue"), genMultiplicity, hadron.Pt() * -1.f);
13081308
}
13091309
break;
1310-
case o2::constants::physics::kProtonBar:
1310+
case kProtonBar:
13111311
if (particleOfInterest == ParticleOfInterest::kProtons) {
13121312
registryMC.fill(HIST("ll_generated_in_ue"), genMultiplicity, hadron.Pt() * -1.f);
13131313
}

0 commit comments

Comments
 (0)