Skip to content

Commit 8551143

Browse files
author
Francesco Mazzaschi
committed
fix double omega mass calculation
1 parent b529db6 commit 8551143

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

PWGLF/TableProducer/Strangeness/doubleCascTreeCreator.cxx

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,19 +92,19 @@ struct doubleCascTreeCreator {
9292
ConfigurableAxis zVtxAxis{"zVtxBins", {100, -20.f, 20.f}, "Binning for the vertex z in cm"};
9393

9494
// binning of (anti)lambda mass QA histograms
95-
ConfigurableAxis massOmegaAxis{"massLambdaAxis", {400, o2::constants::physics::MassOmegaMinus - 0.05f, o2::constants::physics::MassOmegaMinus + 0.035}, "binning for the Omega invariant-mass"};
95+
ConfigurableAxis massOmegaAxis{"massOmegaAxis", {400, o2::constants::physics::MassOmegaMinus - 0.05f, o2::constants::physics::MassOmegaMinus + 0.05}, "binning for the Omega invariant-mass"};
9696
ConfigurableAxis massXiAxis{"massXiAxis", {400, o2::constants::physics::MassXiMinus - 0.05f, o2::constants::physics::MassXiMinus + 0.05f}, "binning for the Xi invariant-mass"};
9797

9898
Configurable<float> zVtxMax{"zVtxMax", 10.0f, "maximum z position of the primary vertex"};
9999
Configurable<float> etaMax{"etaMax", 0.9f, "maximum eta"};
100100
ConfigurableAxis momAxis{"momAxisFine", {5.e2, 0.f, 5.f}, "momentum axis binning"};
101101

102102
Configurable<float> cascPtMin{"cascPtMin", 1.f, "minimum (anti)casc pT (GeV/c)"};
103-
Configurable<float> cascPtMax{"cascPtMax", 4.f, "maximum (anti)casc pT (GeV/c)"};
103+
Configurable<float> cascPtMax{"cascPtMax", 5.f, "maximum (anti)casc pT (GeV/c)"};
104104

105105
Configurable<float> minNCrossedRows{"minNCrossedRows", 100, "Minimum number of crossed TPC rows"};
106106
Configurable<float> minNITSClus{"minNITSClus", 0., "Minimum number of ITS clusters"};
107-
Configurable<float> minNTPCClus{"minNTPCClus", 100, "Minimum number of TPC clusters"};
107+
Configurable<float> minNTPCClus{"minNTPCClus", 80, "Minimum number of TPC clusters"};
108108
Configurable<float> maxNSharedTPCClus{"maxNSharedTPCClus", 5, "Maximum number of shared TPC clusters"};
109109

110110
Configurable<double> minCascCosPA{"minCascCosPA", 0.99f, "Minimum cosine of the pointing angle of the cascade"};
@@ -159,8 +159,10 @@ struct doubleCascTreeCreator {
159159

160160
// event QA
161161
histos.add<TH1>("QA/zVtx", ";#it{z}_{vtx} (cm);Entries", HistType::kTH1F, {zVtxAxis});
162-
histos.add<TH2>("QA/massXi", ";#it{p}_{T} (GeV/#it{c});#it{M}(#Lambda + #pi^{-}) (GeV/#it{c}^{2});Entries", HistType::kTH2F, {momAxis, massXiAxis});
163-
histos.add<TH2>("QA/massOmega", ";#it{p}_{T} (GeV/#it{c});#it{M}(#Omega + #pi^{-}) (GeV/#it{c}^{2});Entries", HistType::kTH2F, {momAxis, massOmegaAxis});
162+
histos.add<TH2>("QA/massXi1", ";#it{p}_{T} (GeV/#it{c});#it{M}(#Lambda + #pi^{-}) (GeV/#it{c}^{2});Entries", HistType::kTH2F, {momAxis, massXiAxis});
163+
histos.add<TH2>("QA/massOmega1", ";#it{p}_{T} (GeV/#it{c});#it{M}(#Omega + #pi^{-}) (GeV/#it{c}^{2});Entries", HistType::kTH2F, {momAxis, massOmegaAxis});
164+
histos.add<TH2>("QA/massXi2", ";#it{p}_{T} (GeV/#it{c});#it{M}(#Lambda + #pi^{-}) (GeV/#it{c}^{2});Entries", HistType::kTH2F, {momAxis, massXiAxis});
165+
histos.add<TH2>("QA/massOmega2", ";#it{p}_{T} (GeV/#it{c});#it{M}(#Omega + #pi^{-}) (GeV/#it{c}^{2});Entries", HistType::kTH2F, {momAxis, massOmegaAxis});
164166
}
165167

166168
template <class C, class T>
@@ -210,7 +212,7 @@ struct doubleCascTreeCreator {
210212
};
211213

212214
template <class T>
213-
bool doubleOmegaMass(T const&, FullCascades::iterator const& casc1, FullCascades::iterator const& casc2)
215+
float doubleOmegaMass(T const&, FullCascades::iterator const& casc1, FullCascades::iterator const& casc2)
214216
{
215217
// the fake omega decay is the one with the smaller radius
216218
auto& fakeOmega = casc1.cascradius() < casc2.cascradius() ? casc1 : casc2;
@@ -237,6 +239,8 @@ struct doubleCascTreeCreator {
237239
if (!isSelectedCasc(collision, tracks, casc1)) {
238240
continue;
239241
}
242+
histos.fill(HIST("QA/massXi"), casc1.pt(), casc1.mXi());
243+
histos.fill(HIST("QA/massOmega"), casc1.pt(), casc1.mOmega());
240244
for (auto& casc2 : cascades) {
241245
if (!isSelectedCasc(collision, tracks, casc2)) {
242246
continue;

0 commit comments

Comments
 (0)