Skip to content

Commit 6dc2aab

Browse files
committed
Unified efficiency treatment for pions
1 parent 9c4113f commit 6dc2aab

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

PWGLF/Tasks/Strangeness/phiStrangeCorrelation.cxx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,13 @@ static constexpr std::array<std::string_view, 2> phiMassRegionLabels{"Signal", "
7878
enum ParticleOfInterest {
7979
Phi = 0,
8080
K0S,
81-
PionTPC,
82-
PionTPCTOF
81+
Pion,
82+
/*PionTPC,
83+
PionTPCTOF*/
84+
ParticleOfInterestSize
8385
};
8486

85-
static constexpr std::array<std::string_view, 4> particleOfInterestLabels{"Phi", "K0S", "PionTPC", "PionTPCTOF"};
87+
static constexpr std::array<std::string_view, ParticleOfInterestSize> particleOfInterestLabels{"Phi", "K0S", "Pion" /*"PionTPC", "PionTPCTOF"*/};
8688

8789
/*
8890
#define LIST_OF_PARTICLES_OF_INTEREST \
@@ -344,7 +346,7 @@ struct PhiStrangenessCorrelation {
344346
ccdb->setLocalObjectValidityChecking();
345347
ccdb->setFatalWhenNull(false);
346348

347-
for (int i = 0; i < 4; ++i) {
349+
for (int i = 0; i < ParticleOfInterestSize; ++i) {
348350
loadEfficiencyMapFromCCDB(static_cast<ParticleOfInterest>(i));
349351
}
350352
}
@@ -553,7 +555,7 @@ struct PhiStrangenessCorrelation {
553555
if (!selectionPion(track))
554556
continue;
555557

556-
auto Pion = track.pt() < trackConfigs.tofPIDThreshold ? PionTPC : PionTPCTOF;
558+
// auto Pion = track.pt() < trackConfigs.tofPIDThreshold ? PionTPC : PionTPCTOF;
557559

558560
float weightPhiPion = computeWeight(BoundEfficiencyMap(effMaps[Phi], multiplicity, phiCand.pt(), phiCand.y()),
559561
BoundEfficiencyMap(effMaps[Pion], multiplicity, track.pt(), track.rapidity(massPi)));

0 commit comments

Comments
 (0)