Skip to content

Commit c4772f9

Browse files
authored
Adding invariant mass vs pT histogram (#3331)
1 parent f558b82 commit c4772f9

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

PWGCF/FemtoUniverse/Core/FemtoUniverseParticleHisto.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ class FemtoUniverseParticleHisto
141141
} else if constexpr (mParticleType == o2::aod::femtouniverseparticle::ParticleType::kCascade) {
142142
/// Cascade histograms
143143
/// to be implemented
144+
} else if constexpr (mParticleType == o2::aod::femtouniverseparticle::ParticleType::kPhi) {
145+
// Phi histograms
144146
} else {
145147
LOG(fatal) << "FemtoUniverseParticleHisto: Histogramming for requested object not defined - quitting!";
146148
}
@@ -171,6 +173,9 @@ class FemtoUniverseParticleHisto
171173
} else if constexpr (mParticleType == o2::aod::femtouniverseparticle::ParticleType::kCascade) {
172174
/// Cascade histograms
173175
tempFitVarAxisTitle = "cos#alpha";
176+
} else if constexpr (mParticleType == o2::aod::femtouniverseparticle::ParticleType::kPhi) {
177+
// Phi histograms
178+
tempFitVarAxisTitle = "InvMass";
174179
} else {
175180
LOG(fatal) << "FemtoUniverseParticleHisto: Histogramming for requested object not defined - quitting!";
176181
}
@@ -307,6 +312,8 @@ class FemtoUniverseParticleHisto
307312
/// V0 histograms
308313
} else if constexpr (mParticleType == o2::aod::femtouniverseparticle::ParticleType::kCascade) {
309314
/// Cascade histograms
315+
} else if constexpr (mParticleType == o2::aod::femtouniverseparticle::ParticleType::kPhi) {
316+
// Phi histograms
310317
} else {
311318
LOG(fatal) << "FemtoUniverseParticleHisto: Histogramming for requested object not defined - quitting!";
312319
}

PWGCF/FemtoUniverse/DataModel/FemtoDerived.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ enum ParticleType {
5959
};
6060

6161
static constexpr std::string_view ParticleTypeName[kNParticleTypes] = {"Tracks", "V0", "V0Child", "Cascade", "CascadeBachelor", "kPhi", "kPhiChild"}; //! Naming of the different particle types
62-
static constexpr std::string_view TempFitVarName[kNParticleTypes] = {"/hDCAxy", "/hCPA", "/hDCAxy", "/hCPA", "/hDCAxy"};
62+
static constexpr std::string_view TempFitVarName[kNParticleTypes] = {"/hDCAxy", "/hCPA", "/hDCAxy", "/hCPA", "/hDCAxy", "/hInvMass", "/hDCAxy"};
6363

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

PWGCF/FemtoUniverse/Tasks/femtoUniversePairTaskTrackPhi.cxx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ struct femtoUniversePairTaskTrackPhi {
9696
Partition<soa::Join<aod::FDParticles, aod::FDMCLabels>> partsOneMC = (aod::femtouniverseparticle::partType == uint8_t(aod::femtouniverseparticle::ParticleType::kPhi));
9797

9898
/// Histogramming for particle 1
99-
FemtoUniverseParticleHisto<aod::femtouniverseparticle::ParticleType::kTrack, 0> trackHistoPartOne;
99+
FemtoUniverseParticleHisto<aod::femtouniverseparticle::ParticleType::kPhi, 0> trackHistoPartOne;
100100

101101
/// Particle 2 --- IDENTIFIED HADRON
102102
Configurable<bool> ConfIsSame{"ConfIsSame", false, "Pairs of the same particle"};
@@ -123,6 +123,7 @@ struct femtoUniversePairTaskTrackPhi {
123123

124124
/// particle part
125125
ConfigurableAxis ConfTempFitVarBins{"ConfDTempFitVarBins", {300, -0.15, 0.15}, "binning of the TempFitVar in the pT vs. TempFitVar plot"};
126+
ConfigurableAxis ConfTempFitVarInvMassBins{"ConfDTempFitVarInvMassBins", {6000, 0.9, 4.0}, "binning of the TempFitVar in the pT vs. TempFitVar plot"};
126127
ConfigurableAxis ConfTempFitVarpTBins{"ConfTempFitVarpTBins", {20, 0.5, 4.05}, "pT binning of the pT vs. TempFitVar plot"};
127128

128129
/// Correlation part
@@ -277,7 +278,7 @@ struct femtoUniversePairTaskTrackPhi {
277278
void init(InitContext&)
278279
{
279280
eventHisto.init(&qaRegistry);
280-
trackHistoPartOne.init(&qaRegistry, ConfTempFitVarpTBins, ConfTempFitVarBins, twotracksconfigs.ConfIsMC, trackonefilter.ConfPDGCodePartOne);
281+
trackHistoPartOne.init(&qaRegistry, ConfTempFitVarpTBins, ConfTempFitVarInvMassBins, twotracksconfigs.ConfIsMC, trackonefilter.ConfPDGCodePartOne);
281282
if (!ConfIsSame) {
282283
trackHistoPartTwo.init(&qaRegistry, ConfTempFitVarpTBins, ConfTempFitVarBins, twotracksconfigs.ConfIsMC, tracktwofilter.ConfPDGCodePartTwo);
283284
}

0 commit comments

Comments
 (0)