Skip to content

Commit 0664a58

Browse files
committed
Cleanup of unused code
1 parent 6c5b8e6 commit 0664a58

3 files changed

Lines changed: 0 additions & 366 deletions

File tree

PWGDQ/Core/CutsLibrary.cxx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7351,11 +7351,6 @@ AnalysisCut* o2::aod::dqcuts::GetAnalysisCut(const char* cutName)
73517351
return cut;
73527352
}
73537353

7354-
if (nameStr == "alice3oTOFPIDEl") {
7355-
cut->AddCut(VarManager::kOuterTOFnSigmaEl, -3.0, 3.0);
7356-
return cut;
7357-
}
7358-
73597354
if (nameStr == "alice3oTOFPIDPi") {
73607355
cut->AddCut(VarManager::kOuterTOFnSigmaPi, -3.0, 3.0);
73617356
return cut;

PWGDQ/Core/VarManager.h

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7336,10 +7336,6 @@ void VarManager::FillPairAlice3(T1 const& t1, T2 const& t2, float* values)
73367336
m2 = o2::constants::physics::MassPionCharged;
73377337
}
73387338

7339-
if constexpr (pairType == kElectronMuon) {
7340-
m2 = o2::constants::physics::MassMuon;
7341-
}
7342-
73437339
values[kCharge] = t1.sign() + t2.sign();
73447340
values[kCharge1] = t1.sign();
73457341
values[kCharge2] = t2.sign();
@@ -7349,7 +7345,6 @@ void VarManager::FillPairAlice3(T1 const& t1, T2 const& t2, float* values)
73497345
values[kMass] = v12.M();
73507346
values[kPt] = v12.Pt();
73517347
values[kEta] = v12.Eta();
7352-
// values[kPhi] = v12.Phi();
73537348
values[kPhi] = RecoDecay::constrainAngle(v12.Phi());
73547349
values[kRap] = -v12.Rapidity();
73557350
double Ptot1 = TMath::Sqrt(v1.Px() * v1.Px() + v1.Py() * v1.Py() + v1.Pz() * v1.Pz());
@@ -7523,17 +7518,6 @@ void VarManager::FillPairAlice3(T1 const& t1, T2 const& t2, float* values)
75237518
}
75247519
}
75257520
}
7526-
if constexpr ((pairType == kDecayToMuMu) && ((fillMap & Muon) > 0 || (fillMap & ReducedMuon) > 0)) {
7527-
if (fgUsedVars[kQuadDCAabsXY]) {
7528-
double dca1X = t1.fwdDcaX();
7529-
double dca1Y = t1.fwdDcaY();
7530-
double dca1XY = std::sqrt(dca1X * dca1X + dca1Y * dca1Y);
7531-
double dca2X = t2.fwdDcaX();
7532-
double dca2Y = t2.fwdDcaY();
7533-
double dca2XY = std::sqrt(dca2X * dca2X + dca2Y * dca2Y);
7534-
values[kQuadDCAabsXY] = std::sqrt((dca1XY * dca1XY + dca2XY * dca2XY) / 2.);
7535-
}
7536-
}
75377521
if (fgUsedVars[kPairPhiv]) {
75387522
values[kPairPhiv] = calculatePhiV<pairType>(t1, t2);
75397523
}
@@ -7558,7 +7542,6 @@ void VarManager::FillPairVertexingAlice3(C const& collision, T const& t1, T cons
75587542
// check at compile time that the event and cov matrix have the cov matrix
75597543
constexpr bool eventHasVtxCov = ((collFillMap & Collision) > 0 || (collFillMap & ReducedEventVtxCov) > 0);
75607544
constexpr bool trackHasCov = ((fillMap & TrackCov) > 0 || (fillMap & ReducedTrackBarrelCov) > 0);
7561-
constexpr bool muonHasCov = ((fillMap & MuonCov) > 0 || (fillMap & ReducedMuonCov) > 0);
75627545

75637546
if (!values) {
75647547
values = fgValues;
@@ -7569,10 +7552,6 @@ void VarManager::FillPairVertexingAlice3(C const& collision, T const& t1, T cons
75697552
m1 = o2::constants::physics::MassKaonCharged;
75707553
m2 = o2::constants::physics::MassPionCharged;
75717554
}
7572-
if constexpr (pairType == kDecayToMuMu && muonHasCov) {
7573-
m1 = o2::constants::physics::MassMuon;
7574-
m2 = o2::constants::physics::MassMuon;
7575-
}
75767555
ROOT::Math::PtEtaPhiMVector v1(t1.pt(), t1.eta(), t1.phi(), m1);
75777556
ROOT::Math::PtEtaPhiMVector v2(t2.pt(), t2.eta(), t2.phi(), m2);
75787557
ROOT::Math::PtEtaPhiMVector v12 = v1 + v2;
@@ -7597,11 +7576,6 @@ void VarManager::FillPairVertexingAlice3(C const& collision, T const& t1, T cons
75977576
t2.c1PtY(), t2.c1PtZ(), t2.c1PtSnp(), t2.c1PtTgl(), t2.c1Pt21Pt2()};
75987577
o2::track::TrackParCov pars2{t2.x(), t2.alpha(), t2pars, t2covs};
75997578
procCode = fgFitterTwoProngBarrel.process(pars1, pars2);
7600-
} else if constexpr ((pairType == kDecayToMuMu) && muonHasCov) {
7601-
// Initialize track parameters for forward
7602-
o2::track::TrackParCovFwd pars1 = FwdToTrackPar(t1, t1);
7603-
o2::track::TrackParCovFwd pars2 = FwdToTrackPar(t2, t2);
7604-
procCode = fgFitterTwoProngFwd.process(pars1, pars2);
76057579
} else {
76067580
return;
76077581
}

0 commit comments

Comments
 (0)