Skip to content

Commit facb270

Browse files
authored
[PWGDQ] Cleanup of unused code (#17262)
1 parent e6e9882 commit facb270

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
@@ -7351,10 +7351,6 @@ void VarManager::FillPairAlice3(T1 const& t1, T2 const& t2, float* values)
73517351
m2 = o2::constants::physics::MassPionCharged;
73527352
}
73537353

7354-
if constexpr (pairType == kElectronMuon) {
7355-
m2 = o2::constants::physics::MassMuon;
7356-
}
7357-
73587354
values[kCharge] = t1.sign() + t2.sign();
73597355
values[kCharge1] = t1.sign();
73607356
values[kCharge2] = t2.sign();
@@ -7364,7 +7360,6 @@ void VarManager::FillPairAlice3(T1 const& t1, T2 const& t2, float* values)
73647360
values[kMass] = v12.M();
73657361
values[kPt] = v12.Pt();
73667362
values[kEta] = v12.Eta();
7367-
// values[kPhi] = v12.Phi();
73687363
values[kPhi] = RecoDecay::constrainAngle(v12.Phi());
73697364
values[kRap] = -v12.Rapidity();
73707365
double Ptot1 = TMath::Sqrt(v1.Px() * v1.Px() + v1.Py() * v1.Py() + v1.Pz() * v1.Pz());
@@ -7538,17 +7533,6 @@ void VarManager::FillPairAlice3(T1 const& t1, T2 const& t2, float* values)
75387533
}
75397534
}
75407535
}
7541-
if constexpr ((pairType == kDecayToMuMu) && ((fillMap & Muon) > 0 || (fillMap & ReducedMuon) > 0)) {
7542-
if (fgUsedVars[kQuadDCAabsXY]) {
7543-
double dca1X = t1.fwdDcaX();
7544-
double dca1Y = t1.fwdDcaY();
7545-
double dca1XY = std::sqrt(dca1X * dca1X + dca1Y * dca1Y);
7546-
double dca2X = t2.fwdDcaX();
7547-
double dca2Y = t2.fwdDcaY();
7548-
double dca2XY = std::sqrt(dca2X * dca2X + dca2Y * dca2Y);
7549-
values[kQuadDCAabsXY] = std::sqrt((dca1XY * dca1XY + dca2XY * dca2XY) / 2.);
7550-
}
7551-
}
75527536
if (fgUsedVars[kPairPhiv]) {
75537537
values[kPairPhiv] = calculatePhiV<pairType>(t1, t2);
75547538
}
@@ -7573,7 +7557,6 @@ void VarManager::FillPairVertexingAlice3(C const& collision, T const& t1, T cons
75737557
// check at compile time that the event and cov matrix have the cov matrix
75747558
constexpr bool eventHasVtxCov = ((collFillMap & Collision) > 0 || (collFillMap & ReducedEventVtxCov) > 0);
75757559
constexpr bool trackHasCov = ((fillMap & TrackCov) > 0 || (fillMap & ReducedTrackBarrelCov) > 0);
7576-
constexpr bool muonHasCov = ((fillMap & MuonCov) > 0 || (fillMap & ReducedMuonCov) > 0);
75777560

75787561
if (!values) {
75797562
values = fgValues;
@@ -7584,10 +7567,6 @@ void VarManager::FillPairVertexingAlice3(C const& collision, T const& t1, T cons
75847567
m1 = o2::constants::physics::MassKaonCharged;
75857568
m2 = o2::constants::physics::MassPionCharged;
75867569
}
7587-
if constexpr (pairType == kDecayToMuMu && muonHasCov) {
7588-
m1 = o2::constants::physics::MassMuon;
7589-
m2 = o2::constants::physics::MassMuon;
7590-
}
75917570
ROOT::Math::PtEtaPhiMVector v1(t1.pt(), t1.eta(), t1.phi(), m1);
75927571
ROOT::Math::PtEtaPhiMVector v2(t2.pt(), t2.eta(), t2.phi(), m2);
75937572
ROOT::Math::PtEtaPhiMVector v12 = v1 + v2;
@@ -7612,11 +7591,6 @@ void VarManager::FillPairVertexingAlice3(C const& collision, T const& t1, T cons
76127591
t2.c1PtY(), t2.c1PtZ(), t2.c1PtSnp(), t2.c1PtTgl(), t2.c1Pt21Pt2()};
76137592
o2::track::TrackParCov pars2{t2.x(), t2.alpha(), t2pars, t2covs};
76147593
procCode = fgFitterTwoProngBarrel.process(pars1, pars2);
7615-
} else if constexpr ((pairType == kDecayToMuMu) && muonHasCov) {
7616-
// Initialize track parameters for forward
7617-
o2::track::TrackParCovFwd pars1 = FwdToTrackPar(t1, t1);
7618-
o2::track::TrackParCovFwd pars2 = FwdToTrackPar(t2, t2);
7619-
procCode = fgFitterTwoProngFwd.process(pars1, pars2);
76207594
} else {
76217595
return;
76227596
}

0 commit comments

Comments
 (0)