Skip to content

Commit 52b4f40

Browse files
authored
PWGHF: Ds-h correlations secondary particles (#5457)
* Added secondary particles histograms and multiplicity MC in eff * clang-format * Post processing macros minor error adjustment
1 parent 4af0469 commit 52b4f40

4 files changed

Lines changed: 167 additions & 115 deletions

File tree

PWGHF/HFC/DataModel/CorrelationTables.h

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,15 @@ DECLARE_SOA_TABLE(LcHadronRecoInfo, "AOD", "LCHRECOINFO", //! Lc-Hadrons pairs R
118118
// definition of columns and tables for Ds-Hadron correlation pairs
119119
namespace hf_correlation_ds_hadron
120120
{
121-
DECLARE_SOA_COLUMN(DeltaPhi, deltaPhi, float); //! DeltaPhi between Ds and Hadrons
122-
DECLARE_SOA_COLUMN(DeltaEta, deltaEta, float); //! DeltaEta between Ds and Hadrons
123-
DECLARE_SOA_COLUMN(PtD, ptD, float); //! Transverse momentum of Ds
124-
DECLARE_SOA_COLUMN(PtHadron, ptHadron, float); //! Transverse momentum of Hadron
125-
DECLARE_SOA_COLUMN(MD, mD, float); //! Invariant mass of Ds
126-
DECLARE_SOA_COLUMN(PoolBin, poolBin, int); //! Pool Bin for the MixedEvent
127-
DECLARE_SOA_COLUMN(IsSignal, isSignal, bool); //! Used in MC-Rec, Ds Signal
128-
DECLARE_SOA_COLUMN(IsPrompt, isPrompt, bool); //! Used in MC-Rec, Ds Prompt or Non-Prompt
121+
DECLARE_SOA_COLUMN(DeltaPhi, deltaPhi, float); //! DeltaPhi between Ds and Hadrons
122+
DECLARE_SOA_COLUMN(DeltaEta, deltaEta, float); //! DeltaEta between Ds and Hadrons
123+
DECLARE_SOA_COLUMN(PtD, ptD, float); //! Transverse momentum of Ds
124+
DECLARE_SOA_COLUMN(PtHadron, ptHadron, float); //! Transverse momentum of Hadron
125+
DECLARE_SOA_COLUMN(MD, mD, float); //! Invariant mass of Ds
126+
DECLARE_SOA_COLUMN(PoolBin, poolBin, int); //! Pool Bin for the MixedEvent
127+
DECLARE_SOA_COLUMN(IsSignal, isSignal, bool); //! Used in MC-Rec, Ds Signal
128+
DECLARE_SOA_COLUMN(IsPrompt, isPrompt, bool); //! Used in MC-Rec, Ds Prompt or Non-Prompt
129+
DECLARE_SOA_COLUMN(IsPhysicalPrimary, isPhysicalPrimary, bool); //! Used in MC-Rec, primary associated particles
129130
} // namespace hf_correlation_ds_hadron
130131

131132
DECLARE_SOA_TABLE(DsHadronPair, "AOD", "DSHPAIR", //! Ds-Hadrons pairs Informations
@@ -140,7 +141,8 @@ DECLARE_SOA_TABLE(DsHadronRecoInfo, "AOD", "DSHRECOINFO", //! Ds-Hadrons pairs R
140141
aod::hf_correlation_ds_hadron::IsSignal);
141142

142143
DECLARE_SOA_TABLE(DsHadronGenInfo, "AOD", "DSHGENINFO", //! Ds-Hadrons pairs Generated Informations
143-
aod::hf_correlation_ds_hadron::IsPrompt);
144+
aod::hf_correlation_ds_hadron::IsPrompt,
145+
aod::hf_correlation_ds_hadron::IsPhysicalPrimary);
144146

145147
// definition of columns and tables for Dplus properties
146148
namespace hf_dplus_meson

PWGHF/HFC/Macros/DhCorrelationExtraction.cxx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -485,14 +485,17 @@ void DhCorrelationExtraction::NormalizeMEplot(TH2D*& histoME, TH2D*& histoMEsoft
485485

486486
// evaluate the normalization (from ALL tracks, including possible fake softpions) -> **histoME indeed includes bin1+bin2 of THnSparse, i.e. all the tracks**
487487
Double_t factorNorm = 0;
488-
for (int in = -1; in <= 0; in++)
489-
factorNorm += histoME->GetBinContent(bin0phi + in, bin0eta);
490-
for (int in = -1; in <= 0; in++)
491-
factorNorm += histoME->GetBinContent(bin0phi + in, bin0eta - 1);
488+
for (int in = -1; in <= 0; in++) {
489+
factorNorm += histoME->GetBinContent(bin0eta, bin0phi + in);
490+
}
491+
for (int in = -1; in <= 0; in++) {
492+
factorNorm += histoME->GetBinContent(bin0eta - 1, bin0phi + in);
493+
}
492494
factorNorm /= 4.;
493495

494-
if (fSubtractSoftPiME)
496+
if (fSubtractSoftPiME) {
495497
histoME->Add(histoMEsoftPi, -1); // remove the tracks compatible with soft pion (if requested)
498+
}
496499

497500
// apply the normalization
498501
histoME->Scale(1. / factorNorm);

0 commit comments

Comments
 (0)