Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
e53aa1b
add non Hfe selection and correlation
rashi234 Feb 19, 2025
834bbd1
Add nonHfe withclang
rashi234 Feb 20, 2025
0046cd5
Avoid using hard-coded PDG codes
rashi234 Feb 20, 2025
5317bf7
Renamed constant kETA to kEta for consistent naming convention
rashi234 Feb 21, 2025
5dadad7
Merge branch 'master' into rashi
rashigupt Feb 25, 2025
c5a198b
Update ElectronSelectionTable.h
rashigupt Feb 25, 2025
1b026c4
Update electronSelectionWithTpcEmcal.cxx
rashigupt Feb 25, 2025
2bdcd40
Update CorrelationTables.h
rashigupt Feb 26, 2025
2def3b6
Update correlatorHfeHadrons.cxx
rashigupt Feb 26, 2025
8254eb0
Update taskCorrelationHfeHadrons.cxx
rashigupt Feb 26, 2025
7820621
Add ConfigurableAxis
rashigupt Mar 5, 2025
8e42d2c
Add ConfigurableAxis
rashigupt Mar 5, 2025
1bdaf36
Merge branch 'master' into rashi
rashigupt Mar 5, 2025
dfdc7b5
Update correlatorHfeHadrons.cxx
rashigupt Mar 5, 2025
e19cbdc
Update electronSelectionWithTpcEmcal.cxx
rashigupt Mar 5, 2025
6f622b5
correct O2 intel
rashigupt Mar 5, 2025
9bfa536
Update electronSelectionWithTpcEmcal.cxx
rashigupt Mar 5, 2025
f300a0d
Remove Typo error
rashigupt Mar 5, 2025
ffe5dea
change Axis name
rashigupt Mar 6, 2025
d489760
Add config
rashigupt Apr 20, 2025
050f681
Update ElectronSelectionTable.h
rashigupt Apr 20, 2025
6c4665e
Add electrontable
rashigupt Apr 20, 2025
8a8f43d
Add config and add electron and hadron table
rashigupt Apr 20, 2025
ef4d23f
Add config
rashigupt Apr 20, 2025
ea5f033
Merge branch 'master' into rashi
rashigupt Apr 20, 2025
351c549
correct clang formate
rashigupt Apr 20, 2025
47372f8
Update electronSelectionWithTpcEmcal.cxx
rashigupt Apr 20, 2025
b4b2091
Update correlatorHfeHadrons.cxx
rashigupt Apr 21, 2025
9997e9a
Update taskCorrelationHfeHadrons.cxx
rashigupt Apr 21, 2025
3842776
Replace TH1D to TH1F
rashigupt Apr 30, 2025
f58e811
Replace THnSparseD to kTHnSparseF
rashigupt Apr 30, 2025
00814d0
fix name
rashigupt Apr 30, 2025
7699314
fix naming
rashigupt Apr 30, 2025
85c9800
fix name
rashigupt Apr 30, 2025
354a134
fix name
rashigupt Apr 30, 2025
78da050
Update taskCorrelationHfeHadrons.cxx
rashigupt Apr 30, 2025
74c72e6
fix name
rashigupt May 1, 2025
ddc96e4
fixname
rashigupt May 1, 2025
ff4fbbf
fix name
rashigupt May 1, 2025
53d02ab
fix naem
rashigupt May 1, 2025
995e8cf
fixname
rashigupt May 1, 2025
30735ec
Update CorrelationTables.h
rashigupt May 1, 2025
886131e
Update CorrelationTables.h
rashigupt May 1, 2025
e249aed
Update CorrelationTables.h
rashigupt May 1, 2025
110c5eb
Update CorrelationTables.h
rashigupt May 1, 2025
157d03e
Update CorrelationTables.h
rashigupt May 1, 2025
1a140eb
RemovePRclang
rashigupt May 1, 2025
6432cfa
fix name
rashigupt May 2, 2025
27bb1bd
Update ElectronSelectionTable.h
rashigupt May 2, 2025
992bd33
Update correlatorHfeHadrons.cxx
rashigupt May 2, 2025
772084c
Update CorrelationTables.h
rashigupt May 2, 2025
95e293a
fix nae
rashigupt May 2, 2025
2a4ba59
fix name
rashigupt May 2, 2025
dea1a2f
Remove clang error
rashigupt May 2, 2025
aeb89ac
fix name
rashigupt May 6, 2025
8b8cbe9
Update correlatorHfeHadrons.cxx
rashigupt May 6, 2025
26e3f25
change name
rashigupt May 6, 2025
a08f1fe
fix name
rashigupt May 6, 2025
e9b35e2
changenaem
rashigupt May 7, 2025
fd8db65
change name
rashigupt May 7, 2025
481a80c
fix name
rashigupt May 7, 2025
4edd5bb
use enum
rashigupt May 7, 2025
13f653a
fix name
rashigupt May 7, 2025
e0561e4
Update electronSelectionWithTpcEmcal.cxx
rashigupt May 7, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 27 additions & 4 deletions PWGHF/HFC/DataModel/CorrelationTables.h
Original file line number Diff line number Diff line change
Expand Up @@ -470,24 +470,47 @@ DECLARE_SOA_TABLE(DmesonSelection, "AOD", "DINCOLL", // Selection of D meson in
aod::hf_selection_dmeson_collision::DmesonSel);

// Note: definition of columns and tables for Electron Hadron correlation pairs
namespace hf_electron
{
DECLARE_SOA_COLUMN(PhiElectron, phiElectron, float); //! Phi of electron
DECLARE_SOA_COLUMN(EtaElectron, etaElectron, float); //! Eta of electron
DECLARE_SOA_COLUMN(PtElectron, ptElectron, float); //! Transverse momentum of electron
DECLARE_SOA_COLUMN(NElectronsLS, nElectronsLS, int); //! number of like-sign
DECLARE_SOA_COLUMN(NElectronsUS, nElectronsUS, int); //! number of Unlike-sign
DECLARE_SOA_COLUMN(PoolBin, poolBin, int); //! Pool Bin of event defined using zvtx and multiplicit
DECLARE_SOA_COLUMN(GIndexCol, gIndexCol, int); //! Global index for the collision
DECLARE_SOA_COLUMN(TimeStamp, timeStamp, int64_t); //! Timestamp for the collision

} // namespace hf_electron

DECLARE_SOA_TABLE(HfElectron, "AOD", "HFELECTRON", //! Hf Electron properties
aod::hf_electron::PhiElectron,
aod::hf_electron::EtaElectron,
aod::hf_electron::PtElectron,
aod::hf_electron::NElectronsLS,
aod::hf_electron::NElectronsUS,
aod::hf_electron::PoolBin,
aod::hf_electron::GIndexCol,
aod::hf_electron::TimeStamp);

namespace hf_correlation_electron_hadron
{
DECLARE_SOA_COLUMN(DeltaPhi, deltaPhi, float); //! DeltaPhi between Electron and Hadrons
DECLARE_SOA_COLUMN(DeltaEta, deltaEta, float); //! DeltaEta between Electron and Hadrons
DECLARE_SOA_COLUMN(PtElectron, ptElectron, float); //! Transverse momentum of Electron
DECLARE_SOA_COLUMN(PtHadron, ptHadron, float); //! Transverse momentum of Hadron;
DECLARE_SOA_COLUMN(PoolBin, poolBin, int); //! Pool Bin of event defined using zvtx and multiplicity
DECLARE_SOA_COLUMN(IsLSEHCorr, isLSEHCorr, int); //! like sign Electron hadron coorelation
DECLARE_SOA_COLUMN(IsULSEHCorr, isULSEHCorr, int); //! unLike sign Electron hadron coorelation
DECLARE_SOA_COLUMN(NPairsLS, nPairsLS, int); //! number of like-sign electron-hadron pairs
DECLARE_SOA_COLUMN(NPairsUS, nPairsUS, int); //! number of unlike-sign electron-hadron pairs
} // namespace hf_correlation_electron_hadron
DECLARE_SOA_TABLE(HfEHadronPair, "AOD", "HFEHADRONPAIR", //! Hfe-Hadrons pairs Informations
hf_correlation_electron_hadron::DeltaPhi,
hf_correlation_electron_hadron::DeltaEta,
hf_correlation_electron_hadron::PtElectron,
hf_correlation_electron_hadron::PtHadron,
hf_correlation_electron_hadron::PoolBin,
hf_correlation_electron_hadron::IsLSEHCorr,
hf_correlation_electron_hadron::IsULSEHCorr);
hf_correlation_electron_hadron::NPairsLS,
hf_correlation_electron_hadron::NPairsUS);

// Note: definition of columns and tables for Electron Hadron correlation pairs for MC Gen
namespace hf_correlation_mcgenelectron_hadron
Expand Down
148 changes: 89 additions & 59 deletions PWGHF/HFC/TableProducer/correlatorHfeHadrons.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ struct HfCorrelatorHfeHadrons {

Produces<aod::HfEHadronPair> entryElectronHadronPair;
Produces<aod::HfEHadronMcPair> entryElectronHadronPairmcGen;
Produces<aod::HfElectron> entryElectron;
Produces<aod::Hadron> entryHadron;
// Configurables
// Event Selection
Configurable<float> zPvPosMax{"zPvPosMax", 10., "Maximum z of the primary vertex (cm)"};
Expand Down Expand Up @@ -78,37 +80,36 @@ struct HfCorrelatorHfeHadrons {

ConfigurableAxis binsDeltaEta{"binsDeltaEta", {30, -1.8, 1.8}, "#it{#Delta#eta}"};
ConfigurableAxis binsDeltaPhi{"binsDeltaPhi", {32, -o2::constants::math::PIHalf, 3. * o2::constants::math::PIHalf}, "#it{#Delta#varphi}"};
ConfigurableAxis binsP{"binsP", {50, 0.0, 50}, "#it{p_{T}}(GeV/#it{c})"};

HistogramConfigSpec hCorrelSpec{HistType::kTHnSparseD, {{binsP}, {binsP}, {binsDeltaPhi}, {binsDeltaEta}}};
ConfigurableAxis binsPt{"binsPt", {50, 0.0, 50}, "#it{p_{T}}(GeV/#it{c})"};
ConfigurableAxis binsPoolBin{"binsPoolBin", {9, 0., 9.}, "PoolBin"};

HistogramRegistry registry{
"registry",
{{"hInclusiveEHCorrel", "Sparse for Delta phi and Delta eta Inclusive Electron with Hadron;p_{T}^{e} (GeV#it{/c});p_{T}^{h} (GeV#it{/c});#Delta#varphi;#Delta#eta;", hCorrelSpec},
{"hLSEHCorrel", "Sparse for Delta phi and Delta eta Like sign Electron pair with Hadron;p_{T}^{e} (GeV#it{/c});p_{T}^{h} (GeV#it{/c});#Delta#varphi;#Delta#eta;", hCorrelSpec},
{"hULSEHCorrel", "Sparse for Delta phi and Delta eta UnLike sign Electron pair with Hadron;p_{T}^{e} (GeV#it{/c});p_{T}^{h} (GeV#it{/c});#Delta#varphi;#Delta#eta;", hCorrelSpec},
{"hMCgenNonHfEHCorrel", "Sparse for Delta phi and Delta eta Non Hf for McGen Inclusive Electron with Hadron;p_{T}^{e} (GeV#it{/c});p_{T}^{h} (GeV#it{/c});#Delta#varphi;#Delta#eta;", hCorrelSpec},
{"hMCgenInclusiveEHCorrl", "Sparse for Delta phi and Delta eta for McGen Electron pair with Hadron;p_{T}^{e} (GeV#it{/c});p_{T}^{h} (GeV#it{/c});#Delta#varphi;#Delta#eta;", hCorrelSpec},
{"hptElectron", "hptElectron", {HistType::kTH1F, {{binsP}}}},

{"hMixEventInclusiveEHCorrl", "Sparse for mix event Delta phi and Delta eta Inclusive Electron with Hadron;p_{T}^{e} (GeV#it{/c});p_{T}^{h} (GeV#it{/c});#Delta#varphi;#Delta#eta;", hCorrelSpec},
{"hMixEventLSEHCorrel", "Sparse for mix event Delta phi and Delta eta Like sign Electron pair with Hadron;p_{T}^{e} (GeV#it{/c});p_{T}^{h} (GeV#it{/c});#Delta#varphi;#Delta#eta;", hCorrelSpec},
{"hMixEventULSEHCorrel", "Sparse for mix event Delta phi and Delta eta Unlike sign Electron pair with Hadron;p_{T}^{e} (GeV#it{/c});p_{T}^{h} (GeV#it{/c});#Delta#varphi;#Delta#eta;", hCorrelSpec},
{"hMixEventMcGenInclusiveEHCorrl", "Sparse for mix event Delta phi and Delta eta Mc gen Inclusive Electron with Hadron;p_{T}^{e} (GeV#it{/c});p_{T}^{h} (GeV#it{/c});#Delta#varphi;#Delta#eta;", hCorrelSpec},
{"hMixEventMcGenNonHfEHCorrl", "Sparse for mix event Delta phi and Delta eta Mc gen Inclusive Electron with Hadron;p_{T}^{e} (GeV#it{/c});p_{T}^{h} (GeV#it{/c});#Delta#varphi;#Delta#eta;", hCorrelSpec}}};
{}};

void init(InitContext&)
{
registry.get<THnSparse>(HIST("hInclusiveEHCorrel"))->Sumw2();
registry.get<THnSparse>(HIST("hLSEHCorrel"))->Sumw2();
registry.get<THnSparse>(HIST("hULSEHCorrel"))->Sumw2();
registry.get<THnSparse>(HIST("hMCgenInclusiveEHCorrl"))->Sumw2();
registry.get<THnSparse>(HIST("hMCgenNonHfEHCorrel"))->Sumw2();
registry.get<THnSparse>(HIST("hMixEventInclusiveEHCorrl"))->Sumw2();
registry.get<THnSparse>(HIST("hMixEventLSEHCorrel"))->Sumw2();
registry.get<THnSparse>(HIST("hMixEventULSEHCorrel"))->Sumw2();
registry.get<THnSparse>(HIST("hMixEventMcGenInclusiveEHCorrl"))->Sumw2();
registry.get<THnSparse>(HIST("hMixEventMcGenNonHfEHCorrl"))->Sumw2();
AxisSpec axisDeltaEta = {binsDeltaEta, "#Delta #eta = #eta_{Electron}- #eta_{Hadron}"};
AxisSpec axisDeltaPhi = {binsDeltaPhi, "#Delta #varphi = #varphi_{Electron}- #varphi_{Hadron}"};
AxisSpec axisPt = {binsPt, "#it{p_{T}}(GeV/#it{c})"};
AxisSpec axisPoolBin = {binsPoolBin, "PoolBin"};

registry.add("hInclusiveEHCorrel", "Sparse for Delta phi and Delta eta Inclusive Electron with Hadron;p_{T}^{e} (GeV#it{/c});p_{T}^{h} (GeV#it{/c});#Delta#varphi;#Delta#eta;", {HistType::kTHnSparseF, {{axisPt}, {axisPt}, {axisDeltaPhi}, {axisDeltaEta}}});
registry.add("hLSEHCorrel", "Sparse for Delta phi and Delta eta Like sign Electron pair with Hadron;p_{T}^{e} (GeV#it{/c});p_{T}^{h} (GeV#it{/c});#Delta#varphi;#Delta#eta;", {HistType::kTHnSparseF, {{axisPt}, {axisPt}, {axisDeltaPhi}, {axisDeltaEta}}});
registry.add("hULSEHCorrel", "Sparse for Delta phi and Delta eta UnLike sign Electron pair with Hadron;p_{T}^{e} (GeV#it{/c});p_{T}^{h} (GeV#it{/c});#Delta#varphi;#Delta#eta;", {HistType::kTHnSparseF, {{axisPt}, {axisPt}, {axisDeltaPhi}, {axisDeltaEta}}});
registry.add("hMCgenNonHfEHCorrel", "Sparse for Delta phi and Delta eta for McGen Non Hf Electron with Hadron;p_{T}^{e} (GeV#it{/c});p_{T}^{h} (GeV#it{/c});#Delta#varphi;#Delta#eta;", {HistType::kTHnSparseF, {{axisPt}, {axisPt}, {axisDeltaPhi}, {axisDeltaEta}}});
registry.add("hMCgenInclusiveEHCorrl", "Sparse for Delta phi and Delta eta for McGen Electron pair with Hadron;p_{T}^{e} (GeV#it{/c});p_{T}^{h} (GeV#it{/c});#Delta#varphi;#Delta#eta;", {HistType::kTHnSparseF, {{axisPt}, {axisPt}, {axisDeltaPhi}, {axisDeltaEta}}});
registry.add("hptElectron", "hptElectron", {HistType::kTH1D, {axisPt}});

registry.add("hMixEventInclusiveEHCorrl", "Sparse for mix event Delta phi and Delta eta Inclusive Electron with Hadron;p_{T}^{e} (GeV#it{/c});p_{T}^{h} (GeV#it{/c});#Delta#varphi;#Delta#eta;", {HistType::kTHnSparseF, {{axisPt}, {axisPt}, {axisDeltaPhi}, {axisDeltaEta}}});
registry.add("hMixEventLSEHCorrel", "Sparse for mix event Delta phi and Delta eta Like sign Electron pair with Hadron;p_{T}^{e} (GeV#it{/c});p_{T}^{h} (GeV#it{/c});#Delta#varphi;#Delta#eta;", {HistType::kTHnSparseF, {{axisPt}, {axisPt}, {axisDeltaPhi}, {axisDeltaEta}}});
registry.add("hMixEventULSEHCorrel", "Sparse for mix event Delta phi and Delta eta Unlike sign Electron pair with Hadron;p_{T}^{e} (GeV#it{/c});p_{T}^{h} (GeV#it{/c});#Delta#varphi;#Delta#eta;", {HistType::kTHnSparseF, {{axisPt}, {axisPt}, {axisDeltaPhi}, {axisDeltaEta}}});
registry.add("hMixEventMcGenInclusiveEHCorrl", "Sparse for mix event Delta phi and Delta eta Mc gen Inclusive Electron with Hadron;p_{T}^{e} (GeV#it{/c});p_{T}^{h} (GeV#it{/c});#Delta#varphi;#Delta#eta;", {HistType::kTHnSparseF, {{axisPt}, {axisPt}, {axisDeltaPhi}, {axisDeltaEta}}});
registry.add("hMixEventMcGenNonHfEHCorrl", "Sparse for mix event Delta phi and Delta eta Mc gen Non Hf Inclusive Electron with Hadron;p_{T}^{e} (GeV#it{/c});p_{T}^{h} (GeV#it{/c});#Delta#varphi;#Delta#eta;", {HistType::kTHnSparseF, {{axisPt}, {axisPt}, {axisDeltaPhi}, {axisDeltaEta}}});
registry.add("hElectronBin", "Electron bin", {HistType::kTH1D, {axisPoolBin}});
registry.add("hLSElectronBin", "Electron bin", {HistType::kTH1D, {axisPoolBin}});
registry.add("hULSElectronBin", "Electron bin", {HistType::kTH1D, {axisPoolBin}});
registry.add("hTracksBin", "Particles associated pool bin", {HistType::kTH1D, {axisPoolBin}});
}

// Associated Hadron Selection Cut
Expand All @@ -132,18 +133,22 @@ struct HfCorrelatorHfeHadrons {
}

// Electron-hadron Correlation
template <typename TracksType, typename ElectronType, typename CollisionType>
void fillCorrelation(CollisionType const& collision, ElectronType const& electron, TracksType const& tracks)
template <typename TracksType, typename ElectronType, typename CollisionType, typename BcType>
void fillCorrelation(CollisionType const& collision, ElectronType const& electron, TracksType const& tracks, BcType const&)
{
if (!(isRun3 ? collision.sel8() : (collision.sel7() && collision.alias_bit(kINT7))))
return;
int poolBin = corrBinning.getBin(std::make_tuple(collision.posZ(), collision.multFV0M()));
auto bc = collision.template bc_as<aod::BCsWithTimestamps>();
int gCollisionId = collision.globalIndex();
int64_t timeStamp = bc.timestamp();

// Construct Deta Phi between electrons and hadrons

double ptElectron = -999;
double phiElectron = -999;
double etaElectron = -999;
int nElectron = 0;

for (const auto& eTrack : electron) {
ptElectron = eTrack.ptTrack();
Expand All @@ -155,51 +160,76 @@ struct HfCorrelatorHfeHadrons {
double ptHadron = -999;
double etaHadron = -999;
double phiHadron = -999;

if (!eTrack.isEmcal()) {
continue;
}
registry.fill(HIST("hptElectron"), ptElectron);
int nElectronLS = 0;
int nElectronUS = 0;
if (eTrack.nElPairLS() > 0) {
for (int i = 0; i < eTrack.nElPairLS(); ++i) {

for (const auto& hTrack : tracks) {
if (hTrack.globalIndex() == eTrack.trackId()) {
continue;
++nElectronLS;
registry.fill(HIST("hLSElectronBin"), poolBin);
}
}
if (eTrack.nElPairUS() > 0) {
for (int i = 0; i < eTrack.nElPairUS(); ++i) {

++nElectronUS;
registry.fill(HIST("hULSElectronBin"), poolBin);
}
}

registry.fill(HIST("hElectronBin"), poolBin);
entryElectron(phiElectron, etaElectron, ptElectron, nElectronLS, nElectronUS, poolBin, gCollisionId, timeStamp);

for (const auto& hTrack : tracks) {
// Apply Hadron cut
if (!selAssoHadron(hTrack)) {
continue;
}

ptHadron = hTrack.pt();
phiHadron = hTrack.phi();
etaHadron = hTrack.eta();
if (nElectron == 0) {
registry.fill(HIST("hTracksBin"), poolBin);
entryHadron(phiHadron, etaHadron, ptHadron, poolBin, gCollisionId, timeStamp);
}
if (hTrack.globalIndex() == eTrack.trackId()) {
continue;
}

if (ptCondition && (ptElectron < ptHadron)) {
continue;
}
ptHadron = hTrack.pt();
phiHadron = hTrack.phi();
etaHadron = hTrack.eta();

deltaPhi = RecoDecay::constrainAngle(phiElectron - phiHadron, -o2::constants::math::PIHalf);
deltaEta = etaElectron - etaHadron;
registry.fill(HIST("hInclusiveEHCorrel"), ptElectron, ptHadron, deltaPhi, deltaEta);
int isLSElectroncorr = 0;
int isULSElectroncorr = 0;
if (eTrack.isLSElectron() > 0) {
for (int i = 0; i < eTrack.isLSElectron(); ++i) {

int nElHadLSCorr = 0;
int nElHadUSCorr = 0;
if (eTrack.nElPairLS() > 0) {
for (int i = 0; i < eTrack.nElPairLS(); ++i) {

++nElHadLSCorr;
registry.fill(HIST("hLSEHCorrel"), ptElectron, ptHadron, deltaPhi, deltaEta);
++isLSElectroncorr;
}
}
if (eTrack.isULSElectron() > 0) {
for (int i = 0; i < eTrack.isULSElectron(); ++i) {
if (eTrack.nElPairUS() > 0) {
for (int i = 0; i < eTrack.nElPairUS(); ++i) {

registry.fill(HIST("hULSEHCorrel"), ptElectron, ptHadron, deltaPhi, deltaEta);
++isULSElectroncorr;
++nElHadUSCorr;
}
}
entryElectronHadronPair(deltaPhi, deltaEta, ptElectron, ptHadron, poolBin, isLSElectroncorr, isULSElectroncorr);
}
}
entryElectronHadronPair(deltaPhi, deltaEta, ptElectron, ptHadron, poolBin, nElHadLSCorr, nElHadUSCorr);

} // end Hadron Track loop
nElectron++;
} // end Electron loop
}

// mix event electron-hadron correlation
Expand Down Expand Up @@ -241,44 +271,44 @@ struct HfCorrelatorHfeHadrons {
deltaEtaMix = etaElectronMix - etaHadronMix;

registry.fill(HIST("hMixEventInclusiveEHCorrl"), ptElectronMix, ptHadronMix, deltaPhiMix, deltaEtaMix);
int isLSElectroncorr = 0;
int isULSElectroncorr = 0;
if (t1.isLSElectron() > 0) {
for (int i = 0; i < t1.isLSElectron(); ++i) {
int nElHadLSCorr = 0;
int nElHadUSCorr = 0;
if (t1.nElPairLS() > 0) {
for (int i = 0; i < t1.nElPairLS(); ++i) {

registry.fill(HIST("hMixEventLSEHCorrel"), ptElectronMix, ptHadronMix, deltaPhiMix, deltaEtaMix);
++isLSElectroncorr;
++nElHadLSCorr;
}
}
if (t1.isULSElectron() > 0) {
for (int i = 0; i < t1.isULSElectron(); ++i) {
if (t1.nElPairUS() > 0) {
for (int i = 0; i < t1.nElPairUS(); ++i) {

registry.fill(HIST("hMixEventULSEHCorrel"), ptElectronMix, ptHadronMix, deltaPhiMix, deltaEtaMix);
++isULSElectroncorr;
++nElHadUSCorr;
}
}
entryElectronHadronPair(deltaPhiMix, deltaEtaMix, ptElectronMix, ptHadronMix, poolBin, isLSElectroncorr, isULSElectroncorr);
entryElectronHadronPair(deltaPhiMix, deltaEtaMix, ptElectronMix, ptHadronMix, poolBin, nElHadLSCorr, nElHadUSCorr);
}
}

// ======= Process starts for Data, Same event ============

void processData(TableCollision const& collision,
aod::HfCorrSelEl const& electron,
TableTracks const& tracks)
TableTracks const& tracks, aod::BCsWithTimestamps const& bc)
{
fillCorrelation(collision, electron, tracks);
fillCorrelation(collision, electron, tracks, bc);
}

PROCESS_SWITCH(HfCorrelatorHfeHadrons, processData, "Process for Data", false);
PROCESS_SWITCH(HfCorrelatorHfeHadrons, processData, "Process for Data", true);

// ======= Process starts for McRec, Same event ============

void processMcRec(McTableCollision const& mcCollision,
aod::HfCorrSelEl const& mcElectron,
McTableTracks const& mcTracks)
{
fillCorrelation(mcCollision, mcElectron, mcTracks);
fillCorrelation(mcCollision, mcElectron, mcTracks, 0);
}

PROCESS_SWITCH(HfCorrelatorHfeHadrons, processMcRec, "Process MC Reco mode", false);
Expand Down Expand Up @@ -339,7 +369,7 @@ struct HfCorrelatorHfeHadrons {
}
}
}
PROCESS_SWITCH(HfCorrelatorHfeHadrons, processMcGen, "Process MC Gen mode", true);
PROCESS_SWITCH(HfCorrelatorHfeHadrons, processMcGen, "Process MC Gen mode", false);
// ====================== Implement Event mixing on Data ===============================

// ====================== Implement Event mixing on Data ===================================
Expand Down
Loading
Loading