Skip to content

Commit d0f27cd

Browse files
Ankur YadavAnkur Yadav
authored andcommitted
Added a new process in dqFlow to also calculate sum of squared amplituted of FT0C. Edited the VarManager to use this value to calculate M11REF for flow calculation using cumulant method at midrapidity
1 parent 37818d7 commit d0f27cd

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

PWGDQ/Core/VarManager.h

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -486,11 +486,10 @@ class VarManager : public TObject
486486
kV2ME_EP,
487487
kWV2ME_SP,
488488
kWV2ME_EP,
489-
kTwoR2SP1, // Scalar product resolution of event1 for ME technique
490-
kTwoR2SP2, // Scalar product resolution of event2 for ME technique
491-
kTwoR2EP1, // Event plane resolution of event2 for ME technique
492-
kTwoR2EP2, // Event plane resolution of event2 for ME technique
493-
kNPairsPerEvent, // number of pairs per event in same-event or mixed-event pairing
489+
kTwoR2SP1, // Scalar product resolution of event1 for ME technique
490+
kTwoR2SP2, // Scalar product resolution of event2 for ME technique
491+
kTwoR2EP1, // Event plane resolution of event2 for ME technique
492+
kTwoR2EP2, // Event plane resolution of event2 for ME technique
494493

495494
// Variables for event mixing with cumulant
496495
kV22m,
@@ -1373,7 +1372,7 @@ class VarManager : public TObject
13731372
template <typename T1, typename T2, typename T3>
13741373
static void FillEnergyCorrelatorTriple(T1 const& lepton1, T2 const& lepton2, T3 const& hadron, float* values = nullptr, float Translow = 1. / 3, float Transhigh = 2. / 3, bool applyFitMass = false, float sidebandMass = 0.0f);
13751374
template <int pairType, typename T1, typename T2, typename T3, typename T4, typename T5>
1376-
static void FillEnergyCorrelatorsUnfoldingTriple(T1 const& lepton1, T2 const& lepton2, T3 const& hadron, T4 const& track, T5 const& t1, float* values = nullptr, bool applyFitMass = false);
1375+
static void FillEnergyCorrelatorsUnfoldingTriple(T1 const& lepton1, T2 const& lepton2, T3 const& hadron, T4 const& track, T5 const& t1, float* values = nullptr);
13771376
template <typename T1, typename T2>
13781377
static void FillDileptonPhoton(T1 const& dilepton, T2 const& photon, float* values = nullptr);
13791378
template <typename T>
@@ -5901,7 +5900,7 @@ void VarManager::FillEnergyCorrelatorTriple(T1 const& lepton1, T2 const& lepton2
59015900
}
59025901

59035902
template <int pairType, typename T1, typename T2, typename T3, typename T4, typename T5>
5904-
void VarManager::FillEnergyCorrelatorsUnfoldingTriple(T1 const& lepton1, T2 const& lepton2, T3 const& hadron, T4 const& track, T5 const& t1, float* values, bool applyFitMass)
5903+
void VarManager::FillEnergyCorrelatorsUnfoldingTriple(T1 const& lepton1, T2 const& lepton2, T3 const& hadron, T4 const& track, T5 const& t1, float* values)
59055904
{
59065905
if (fgUsedVars[kMCCosChi_gen] || fgUsedVars[kMCWeight_gen] || fgUsedVars[kMCdeltaeta_gen] || fgUsedVars[kMCCosChi_rec] || fgUsedVars[kMCWeight_rec] || fgUsedVars[kMCdeltaeta_rec]) {
59075906
// energy correlators
@@ -5913,11 +5912,6 @@ void VarManager::FillEnergyCorrelatorsUnfoldingTriple(T1 const& lepton1, T2 cons
59135912
ROOT::Math::PtEtaPhiMVector v_lepton2(lepton2.pt(), lepton2.eta(), lepton2.phi(), m2);
59145913
ROOT::Math::PtEtaPhiMVector dilepton = v_lepton1 + v_lepton2;
59155914

5916-
float dileptonmass = o2::constants::physics::MassJPsi;
5917-
if (applyFitMass) {
5918-
dileptonmass = dilepton.mass();
5919-
}
5920-
59215915
float MassHadron;
59225916
if constexpr (pairType == kJpsiHadronMass) {
59235917
MassHadron = TMath::Sqrt(t1.e() * t1.e() - t1.p() * t1.p());
@@ -5933,7 +5927,7 @@ void VarManager::FillEnergyCorrelatorsUnfoldingTriple(T1 const& lepton1, T2 cons
59335927
values[kMCWeight_gen] = E_boost_gen / o2::constants::physics::MassJPsi;
59345928
values[kMCdeltaeta_gen] = track.eta() - t1.eta();
59355929

5936-
ROOT::Math::PtEtaPhiMVector v1_rec(dilepton.pt(), dilepton.eta(), dilepton.phi(), dileptonmass);
5930+
ROOT::Math::PtEtaPhiMVector v1_rec(dilepton.pt(), dilepton.eta(), dilepton.phi(), dilepton.mass());
59375931
ROOT::Math::PtEtaPhiMVector v2_rec(hadron.pt(), hadron.eta(), hadron.phi(), o2::constants::physics::MassPionCharged);
59385932
values[kMCCosChi_rec] = LorentzTransformJpsihadroncosChi("coschi", v1_rec, v2_rec);
59395933
float E_boost_rec = LorentzTransformJpsihadroncosChi("weight_boost", v1_rec, v2_rec);

0 commit comments

Comments
 (0)