Skip to content

Commit 0ec5d32

Browse files
committed
removing deprecated PV shift options
1 parent 3841990 commit 0ec5d32

2 files changed

Lines changed: 4 additions & 22 deletions

File tree

PWGDQ/TableProducer/tableMakerMC_withAssoc.cxx

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,6 @@ struct TableMakerMC {
234234
Configurable<std::string> fConfigCcdbUrl{"ccdb-url", "http://alice-ccdb.cern.ch", "url of the ccdb repository"};
235235
Configurable<std::string> fGeoPath{"geoPath", "GLO/Config/GeometryAligned", "Path of the geometry file"};
236236
Configurable<std::string> fGrpMagPath{"grpmagPath", "GLO/Config/GRPMagField", "CCDB path of the GRPMagField object"};
237-
Configurable<std::string> fZShiftPath{"zShiftPath", "Users/m/mcoquet/ZShift", "CCDB path for z shift to apply to forward tracks"};
238-
Configurable<bool> fUseRemoteZShift{"cfgUseRemoteZShift", false, "Enable getting Zshift from ccdb"};
239-
Configurable<float> fManualZShift{"cfgManualZShift", 0.f, "Manual value for the Zshift for muons."};
240237
Configurable<std::string> fGrpMagPathRun2{"grpmagPathRun2", "GLO/GRP/GRP", "CCDB path of the GRPObject (Usage for Run 2)"};
241238
Configurable<int64_t> timestampCCDB{"timestampCCDB", -1, "timestamp of the ONNX file for ML model used to query in CCDB"};
242239
} fConfigCCDB;
@@ -1138,7 +1135,7 @@ struct TableMakerMC {
11381135
}
11391136
// recalculate pDca / DCA and global muon kinematics
11401137
// kMuonPDca is always taken from MCH (standalone or the MCH matched to a global)
1141-
if (static_cast<int>(muon.trackType()) < 2) {
1138+
if (static_cast<int>(muon.trackType()) <= 2) {
11421139
auto muontrack = muon.template matchMCHTrack_as<TMuons>();
11431140
VarManager::FillTrackCollision<TMuonFillMap>(muontrack, collision);
11441141
if (fConfigVariousOptions.fRefitGlobalMuon) {
@@ -1275,7 +1272,7 @@ struct TableMakerMC {
12751272
// recalculate pDca / DCA and global muon kinematics
12761273
// kMuonPDca is always taken from MCH (standalone or the MCH matched to a global)
12771274
int globalClusters = muon.nClusters();
1278-
if (static_cast<int>(muon.trackType()) < 2) {
1275+
if (static_cast<int>(muon.trackType()) <= 2) {
12791276
auto muontrack = muon.template matchMCHTrack_as<TMuons>();
12801277
VarManager::FillTrackCollision<TMuonFillMap>(muontrack, collision);
12811278
if (fConfigVariousOptions.fRefitGlobalMuon) {
@@ -1337,16 +1334,6 @@ struct TableMakerMC {
13371334
o2::base::Propagator::initFieldFromGRP(fGrpMag);
13381335
VarManager::SetMagneticField(fGrpMag->getNominalL3Field());
13391336
}
1340-
if (fConfigCCDB.fUseRemoteZShift) {
1341-
auto* fZShift = fCCDB->getForTimeStamp<std::vector<float>>(fConfigCCDB.fZShiftPath, bcs.begin().timestamp());
1342-
if (fZShift != nullptr && !fZShift->empty()) {
1343-
VarManager::SetZShift((*fZShift)[0]);
1344-
} else {
1345-
LOG(fatal) << "Could not retrieve Z-shift value from CCDB";
1346-
}
1347-
} else {
1348-
VarManager::SetZShift(fConfigCCDB.fManualZShift.value);
1349-
}
13501337
if (fConfigVariousOptions.fPropMuon) {
13511338
VarManager::SetupMuonMagField();
13521339
}

PWGDQ/TableProducer/tableMaker_withAssoc.cxx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,6 @@ struct TableMaker {
290290
Configurable<std::string> fConfigGrpMagPath{"grpmagPath", "GLO/Config/GRPMagField", "CCDB path of the GRPMagField object"};
291291
Configurable<std::string> fFwdShiftPath{"fwdShiftPath", "Users/m/mcoquet/ZShift", "CCDB path for the shift to apply to forward tracks: 1 (z), 3 (x,y,z), or 10 (x,y,z,slopeX,slopeY for top then bottom; slopes unused)"};
292292
Configurable<bool> fUseRemoteFwdShift{"cfgUseRemoteFwdShift", false, "Enable getting the forward track shift from ccdb"};
293-
Configurable<float> fManualZShift{"cfgManualZShift", 0.f, "Manual value for the Zshift for muons."};
294293
Configurable<std::string> fConfigGrpMagPathRun2{"grpmagPathRun2", "GLO/GRP/GRP", "CCDB path of the GRPObject (Usage for Run 2)"};
295294
} fConfigCCDB;
296295

@@ -1692,16 +1691,14 @@ struct TableMaker {
16921691
}
16931692
// recalculate pDca / DCA and global muon kinematics
16941693
// kMuonPDca is always taken from MCH (standalone or the MCH matched to a global)
1695-
if (static_cast<int>(muon.trackType()) < 2) {
1694+
if (static_cast<int>(muon.trackType()) <= 2) {
16961695
auto muontrack = muon.template matchMCHTrack_as<TMuons>();
16971696
VarManager::FillTrackCollision<TMuonFillMap>(muontrack, collision);
16981697
if (fConfigVariousOptions.fRefitGlobalMuon) {
16991698
if (muontrack.eta() < fConfigVariousOptions.fMuonMatchEtaMin || muontrack.eta() > fConfigVariousOptions.fMuonMatchEtaMax) {
17001699
continue;
17011700
}
17021701
auto mfttrack = muon.template matchMFTTrack_as<MFTTracks>();
1703-
// NOTE: the MFT track originally associated to the MUON track is currently used in the global muon refit
1704-
// Should MUON - MFT time ambiguities be taken into account ?
17051702
// Helix DCA (kMuonDCAx/y) is filled from the refitted parameters inside FillGlobalMuonRefit(Cov)
17061703
if constexpr (static_cast<bool>(TMFTFillMap & VarManager::ObjTypes::MFTCov)) {
17071704
auto const& mfttrackcov = mfCovs.rawIteratorAt(map_mfttrackcovs[mfttrack.globalIndex()]);
@@ -1795,7 +1792,7 @@ struct TableMaker {
17951792
// recalculate pDca / DCA and global muon kinematics
17961793
// kMuonPDca is always taken from MCH (standalone or the MCH matched to a global)
17971794
int globalClusters = muon.nClusters();
1798-
if (static_cast<int>(muon.trackType()) < 2) {
1795+
if (static_cast<int>(muon.trackType()) <= 2) {
17991796
auto muontrack = muon.template matchMCHTrack_as<TMuons>();
18001797
VarManager::FillTrackCollision<TMuonFillMap>(muontrack, collision);
18011798
if (fConfigVariousOptions.fRefitGlobalMuon) {
@@ -1894,8 +1891,6 @@ struct TableMaker {
18941891
} else {
18951892
LOG(fatal) << "Unexpected number of shift values from CCDB: " << fFwdShift->size() << ", expected 1 (z), 3 (x, y, z) or 10 (top/bottom x,y,z + slopes)";
18961893
}
1897-
} else {
1898-
VarManager::SetZShift(fConfigCCDB.fManualZShift.value);
18991894
}
19001895
if (fConfigHistOutput.fConfigFillBcStat) {
19011896
mLHCIFdata = fCCDB->getSpecific<o2::parameters::GRPLHCIFData>("GLO/Config/GRPLHCIF", bcs.begin().timestamp());

0 commit comments

Comments
 (0)