Skip to content

Commit ae47881

Browse files
iarseneIonut Cristian Arsenealibuild
authored
[PWGDQ] Refactor the AnalysisDileptonTrackTrack and add process function for … (#18673)
Co-authored-by: Ionut Cristian Arsene <iarsene@cern.ch> Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
1 parent 4091c09 commit ae47881

2 files changed

Lines changed: 270 additions & 101 deletions

File tree

‎PWGDQ/Core/VarManager.h‎

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,16 +156,19 @@ class VarManager : public TObject
156156

157157
enum PairCandidateType {
158158
// TODO: need to agree on a scheme to incorporate all various hypotheses (e.g. e - mu, jpsi - K+, Jpsi - pipi,...)
159-
kDecayToEE = 0, // e.g. J/psi -> e+ e-
160-
kDecayToMuMu, // e.g. J/psi -> mu+ mu-
161-
kDecayToPiPi,
159+
kDecayToEE = 0, // e.g. J/psi -> e+ e-
160+
kDecayToMuMu, // e.g. J/psi -> mu+ mu-
161+
kDecayToPiPi, // decay channel to pi+ pi-
162+
kDecayToKchKch, // decay channel to K+ K-
163+
kDecayToPrAPr, // decay channel to p+ p-
162164
kElectronMuon, // e.g. Electron - muon correlations
163165
kBcToThreeMuons, // e.g. Bc -> mu+ mu- mu+
164166
kBtoJpsiEEK, // e.g. B+ -> e+ e- K+
165167
kJpsiEEProton, // e.g. Jpsi-proton correlation, Jpsi to e+e-
166168
kXtoJpsiPiPi, // e.g. X(3872) -> J/psi pi+ pi-
167169
kPsi2StoJpsiPiPi, // e.g. Psi(2S) -> J/psi pi+ pi-
168170
kChictoJpsiEE, // e.g. Chi_c1 -> J/psi e+ e-
171+
kNonResonantToKpKmPiPi, // e.g. J/psi -> K+ K- pi+ pi+
169172
kDstarToD0KPiPi, // e.g. D*+ -> D0 pi+ -> K- pi+ pi+
170173
kTripleCandidateToEEPhoton, // e.g. chi_c -> e+ e- photon or pi0 -> e+ e- photon
171174
kDecayToKPi, // e.g. D0 -> K+ pi- or cc.
@@ -3841,6 +3844,16 @@ void VarManager::FillPair(T1 const& t1, T2 const& t2, float* values)
38413844
m2 = o2::constants::physics::MassPionCharged;
38423845
}
38433846

3847+
if constexpr (pairType == kDecayToKchKch) {
3848+
m1 = o2::constants::physics::MassKaonCharged;
3849+
m2 = o2::constants::physics::MassKaonCharged;
3850+
}
3851+
3852+
if constexpr (pairType == kDecayToPrAPr) {
3853+
m1 = o2::constants::physics::MassProton;
3854+
m2 = o2::constants::physics::MassProton;
3855+
}
3856+
38443857
if constexpr (pairType == kDecayToKPi) {
38453858
m1 = o2::constants::physics::MassKaonCharged;
38463859
m2 = o2::constants::physics::MassPionCharged;
@@ -6910,6 +6923,11 @@ void VarManager::FillDileptonTrackTrack(T1 const& dilepton, T2 const& hadron1, T
69106923
hadronMass1 = o2::constants::physics::MassElectron;
69116924
hadronMass2 = o2::constants::physics::MassElectron;
69126925
}
6926+
if (candidateType == kNonResonantToKpKmPiPi) {
6927+
defaultDileptonMass = dilepton.mass();
6928+
hadronMass1 = o2::constants::physics::MassPionCharged;
6929+
hadronMass2 = o2::constants::physics::MassPionCharged;
6930+
}
69136931

69146932
ROOT::Math::PtEtaPhiMVector v1(dilepton.pt(), dilepton.eta(), dilepton.phi(), dilepton.mass());
69156933
ROOT::Math::PtEtaPhiMVector v2(hadron1.pt(), hadron1.eta(), hadron1.phi(), hadronMass1);

0 commit comments

Comments
 (0)