Skip to content

Commit 5907ca2

Browse files
author
Nils Konert
committed
Added particle Type kResoKStar
for histogram naming in producer task
1 parent b366991 commit 5907ca2

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

PWGCF/DataModel/FemtoDerived.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ enum ParticleType {
121121
kV0K0Short,
122122
kV0K0ShortChild,
123123
kResoKStarChild,
124+
kResoKStar,
124125
kNParticleTypes //! Number of particle types
125126
};
126127

@@ -130,9 +131,9 @@ enum MomentumType {
130131
kPtpc //! momentum at the inner wall of the TPC (useful for PID plots)
131132
};
132133

133-
static constexpr std::string_view ParticleTypeName[kNParticleTypes] = {"Track", "V0", "V0Child", "Cascade", "CascadeV0", "CascadeV0Child", "CascadeBachelor", "CharmHadron", "Reso", "ResoChild", "ResoPosdaughTPC_NegdaughTPC", "ResoPosdaughTPC_NegdaughTOF", "ResoPosdaughTOF_NegdaughTPC", "ResoPosdaughTOF_NegdaughTOF", "ResoKStarPosdaughTPC_NegdaughTPC", "ResoKStarPosdaughTPC_NegdaughTOF", "ResoKStarPosdaughTOF_NegdaughTPC", "ResoKStarPosdaughTOF_NegdaughTOF", "V0K0Short", "V0K0ShortChild", "kResoKStarChild"}; //! Naming of the different particle types
134+
static constexpr std::string_view ParticleTypeName[kNParticleTypes] = {"Track", "V0", "V0Child", "Cascade", "CascadeV0", "CascadeV0Child", "CascadeBachelor", "CharmHadron", "Reso", "ResoChild", "ResoPosdaughTPC_NegdaughTPC", "ResoPosdaughTPC_NegdaughTOF", "ResoPosdaughTOF_NegdaughTPC", "ResoPosdaughTOF_NegdaughTOF", "ResoKStarPosdaughTPC_NegdaughTPC", "ResoKStarPosdaughTPC_NegdaughTOF", "ResoKStarPosdaughTOF_NegdaughTPC", "ResoKStarPosdaughTOF_NegdaughTOF", "V0K0Short", "V0K0ShortChild", "ResoKStarChild", "ResoKStar"}; //! Naming of the different particle types
134135

135-
static constexpr std::string_view TempFitVarName[kNParticleTypes] = {"/hDCAxy", "/hCPA", "/hDCAxy", "/hCPA", "/hCPA", "/hDCAxy", "/hDCAxy", "/hCPA", "/hDCAxy", "/hDCAxy", "/hDCAxy", "/hDCAxy", "/hDCAxy", "/hDCAxy", "/hDCAxy", "/hDCAxy", "/hDCAxy", "/hDCAxy", "/hCPA", "/hDCAxy", "/hDCAxy"};
136+
static constexpr std::string_view TempFitVarName[kNParticleTypes] = {"/hDCAxy", "/hCPA", "/hDCAxy", "/hCPA", "/hCPA", "/hDCAxy", "/hDCAxy", "/hCPA", "/hDCAxy", "/hDCAxy", "/hDCAxy", "/hDCAxy", "/hDCAxy", "/hDCAxy", "/hDCAxy", "/hDCAxy", "/hDCAxy", "/hDCAxy", "/hCPA", "/hDCAxy", "/hDCAxy", "/hDCAxy"};
136137

137138
using cutContainerType = uint32_t; //! Definition of the data type for the bit-wise container for the different selection criteria
138139

PWGCF/FemtoDream/TableProducer/femtoDreamProducerTaskReso.cxx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ struct FemtoDreamProducerTaskReso {
600600
resoCutsKStar.setDaughterCuts(femto_dream_reso_selection::kNegdaugh, Resonance.confKstarDaughterDCAzMax, femtoDreamTrackSelection::kDCAzMax, femtoDreamSelection::kAbsUpperLimit);
601601
resoCutsKStar.setDaughterCuts(femto_dream_reso_selection::kNegdaugh, Resonance.confKstarDaughterPIDnSigmaMax, femtoDreamTrackSelection::kPIDnSigmaMax, femtoDreamSelection::kAbsUpperLimit);
602602

603-
resoCutsKStar.init<aod::femtodreamparticle::ParticleType::kResoKStarPosdaughTPC_NegdaughTPC, /// chose this particle type, since there is no kResoKstar-Particle type (implementing it would only serve the naming of the producer histos)
603+
resoCutsKStar.init<aod::femtodreamparticle::ParticleType::kResoKStar, /// chose this particle type, since there is no kResoKstar-Particle type (implementing it would only serve the naming of the producer histos)
604604
aod::femtodreamparticle::ParticleType::kResoKStarChild>(&qaRegistryReso, &resoRegistry);
605605

606606
resoCutsKStar.assign(Resonance.confKstarDaughterPTPCThr); // assigns Configurable value to class member
@@ -1485,22 +1485,22 @@ struct FemtoDreamProducerTaskReso {
14851485
/// Resos, where both daughters have the same PID are defaulted to sign 1. and resoIsNotAnti = true
14861486

14871487
if (resoIsNotAnti) {
1488-
resoCutsKStar.fillResoQA<aod::femtodreamparticle::ParticleType::kResoKStarPosdaughTPC_NegdaughTPC>(track1, track2, true, tempReso.M(), tempAntiReso.M(), Resonance.confKstarDaughterPIDspecies.value, Resonance.confMassQAKstarPart2PID.value);
1488+
resoCutsKStar.fillResoQA<aod::femtodreamparticle::ParticleType::kResoKStar>(track1, track2, true, tempReso.M(), tempAntiReso.M(), Resonance.confKstarDaughterPIDspecies.value, Resonance.confMassQAKstarPart2PID.value);
14891489
if (!(tempReso.M() > Resonance.confKstarInvMassLowLimit.value && tempReso.M() < Resonance.confKstarInvMassUpLimit.value))
14901490
continue;
1491-
resoCutsKStar.fillMassSelectedQA<aod::femtodreamparticle::ParticleType::kResoKStarPosdaughTPC_NegdaughTPC>(tempReso.M(), true);
1491+
resoCutsKStar.fillMassSelectedQA<aod::femtodreamparticle::ParticleType::kResoKStar>(tempReso.M(), true);
14921492
} else {
1493-
resoCutsKStar.fillResoQA<aod::femtodreamparticle::ParticleType::kResoKStarPosdaughTPC_NegdaughTPC>(track1, track2, false, tempAntiReso.M(), tempReso.M(), Resonance.confKstarDaughterPIDspecies.value, Resonance.confMassQAKstarPart2PID.value);
1493+
resoCutsKStar.fillResoQA<aod::femtodreamparticle::ParticleType::kResoKStar>(track1, track2, false, tempAntiReso.M(), tempReso.M(), Resonance.confKstarDaughterPIDspecies.value, Resonance.confMassQAKstarPart2PID.value);
14941494
if (!(tempAntiReso.M() > Resonance.confKstarInvMassLowLimit.value && tempAntiReso.M() < Resonance.confKstarInvMassUpLimit.value))
14951495
continue;
1496-
resoCutsKStar.fillMassSelectedQA<aod::femtodreamparticle::ParticleType::kResoKStarPosdaughTPC_NegdaughTPC>(tempAntiReso.M(), false);
1496+
resoCutsKStar.fillMassSelectedQA<aod::femtodreamparticle::ParticleType::kResoKStar>(tempAntiReso.M(), false);
14971497
}
14981498

14991499
resoCutsKStar.fillQA<aod::femtodreamparticle::ParticleType::kResoKStarChild,
15001500
aod::femtodreamparticle::TrackType::kPosChild,
15011501
aod::femtodreamparticle::TrackType::kNegChild>(track1, track2);
15021502

1503-
auto type = resoCutsKStar.getType<aod::femtodreamparticle::kResoKStarPosdaughTPC_NegdaughTPC>(track1, track2, resoIsNotAnti); // kResoPosdaughTPC_NegdaughTPC
1503+
auto type = resoCutsKStar.getType<aod::femtodreamparticle::kResoKStar>(track1, track2, resoIsNotAnti); // kResoPosdaughTPC_NegdaughTPC
15041504
// kResoPosdaughTPC_NegdaughTOF
15051505
// kResoPosdaughTPC_NegdaughTPC
15061506
// kResoPosdaughTOF_NegdaughTOF as possible output
@@ -1579,8 +1579,8 @@ struct FemtoDreamProducerTaskReso {
15791579
} // for (const auto& track1 : slicePosdaugh)
15801580

15811581
if (Resonance.confDoLikeSignKstar.value) {
1582-
fillLikeSign<aod::femtodreamparticle::ParticleType::kResoKStarPosdaughTPC_NegdaughTPC>(slicePosdaugh, resoCutsKStar, Resonance.confKstarDaughterPIDspecies.value, Resonance.confMassQAKstarPart2PID.value);
1583-
fillLikeSign<aod::femtodreamparticle::ParticleType::kResoKStarPosdaughTPC_NegdaughTPC>(sliceNegdaugh, resoCutsKStar, Resonance.confKstarDaughterPIDspecies.value, Resonance.confMassQAKstarPart2PID.value);
1582+
fillLikeSign<aod::femtodreamparticle::ParticleType::kResoKStar>(slicePosdaugh, resoCutsKStar, Resonance.confKstarDaughterPIDspecies.value, Resonance.confMassQAKstarPart2PID.value);
1583+
fillLikeSign<aod::femtodreamparticle::ParticleType::kResoKStar>(sliceNegdaugh, resoCutsKStar, Resonance.confKstarDaughterPIDspecies.value, Resonance.confMassQAKstarPart2PID.value);
15841584
}
15851585
} // if (confIsActivateKStar.value)
15861586
} // void fillCollisionsAndTracksAndV0(...)

0 commit comments

Comments
 (0)