Skip to content

Commit 5fe3c09

Browse files
ddobrigkalibuild
andauthored
[Common] Change track propagator to use timestamp from data (#9166)
Co-authored-by: ALICE Builder <alibuild@users.noreply.github.com>
1 parent deed3c8 commit 5fe3c09

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

Common/LegacyDataQA/tpcpidqa.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ struct TpcPidQa {
7070
mEnabledTables.resize(9, 0);
7171

7272
for (int i = 0; i < nTables; i++) {
73-
int f = enabledTables->get(tableNames[i].c_str(), "Enable");
73+
int f = enabledTables->get(tableNames[i].c_str(), "enable");
7474
if (f == 1) {
7575
mEnabledTables[i] = 1;
7676
histos.add(fmt::format("hNSigmaVsPTot{}", tableNames[i]).c_str(), "", kTH2F, {axisMomentum, axisNSigma});

Common/TableProducer/Converters/run2TinyToFullPID.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ struct Run2TinyToFullPID {
7373
void init(InitContext& context)
7474
{
7575
for (int i = 0; i < nTables; i++) {
76-
int f = enabledTables->get(tableNames[i].c_str(), "Enable");
76+
LOGF(info, "test %i", i);
77+
int f = enabledTables->get(tableNames[i].c_str(), "enable");
7778
enableFlagIfTableRequired(context, tableNames[i], f);
7879
if (f == 1) {
7980
mEnabledTables.push_back(i);

Common/TableProducer/trackPropagation.cxx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ struct TrackPropagation {
110110
ccdb->setCaching(true);
111111
ccdb->setLocalObjectValidityChecking();
112112

113-
lut = o2::base::MatLayerCylSet::rectifyPtrFromFile(ccdb->get<o2::base::MatLayerCylSet>(lutPath));
114113
// Histograms for track tuner
115114
AxisSpec axisBinsDCA = {600, -0.15f, 0.15f, "#it{dca}_{xy} (cm)"};
116115
registry.add("hDCAxyVsPtRec", "hDCAxyVsPtRec", kTH2F, {axisBinsDCA, axisPtQA});
@@ -145,6 +144,11 @@ struct TrackPropagation {
145144
if (runNumber == bc.runNumber()) {
146145
return;
147146
}
147+
148+
// load matLUT for this timestamp
149+
LOG(info) << "Loading material look-up table for timestamp: " << bc.timestamp();
150+
lut = o2::base::MatLayerCylSet::rectifyPtrFromFile(ccdb->getForTimeStamp<o2::base::MatLayerCylSet>(lutPath, bc.timestamp()));
151+
148152
grpmag = ccdb->getForTimeStamp<o2::parameters::GRPMagField>(grpmagPath, bc.timestamp());
149153
LOG(info) << "Setting magnetic field to current " << grpmag->getL3Current() << " A for run " << bc.runNumber() << " from its GRPMagField CCDB object";
150154
o2::base::Propagator::initFieldFromGRP(grpmag);

0 commit comments

Comments
 (0)