Skip to content

Commit

Permalink
[Common] Change track propagator to use timestamp from data (AliceO2G…
Browse files Browse the repository at this point in the history
…roup#9166)

Co-authored-by: ALICE Builder <[email protected]>
  • Loading branch information
ddobrigk and alibuild authored Dec 31, 2024
1 parent deed3c8 commit 5fe3c09
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Common/LegacyDataQA/tpcpidqa.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ struct TpcPidQa {
mEnabledTables.resize(9, 0);

for (int i = 0; i < nTables; i++) {
int f = enabledTables->get(tableNames[i].c_str(), "Enable");
int f = enabledTables->get(tableNames[i].c_str(), "enable");
if (f == 1) {
mEnabledTables[i] = 1;
histos.add(fmt::format("hNSigmaVsPTot{}", tableNames[i]).c_str(), "", kTH2F, {axisMomentum, axisNSigma});
Expand Down
3 changes: 2 additions & 1 deletion Common/TableProducer/Converters/run2TinyToFullPID.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ struct Run2TinyToFullPID {
void init(InitContext& context)
{
for (int i = 0; i < nTables; i++) {
int f = enabledTables->get(tableNames[i].c_str(), "Enable");
LOGF(info, "test %i", i);
int f = enabledTables->get(tableNames[i].c_str(), "enable");
enableFlagIfTableRequired(context, tableNames[i], f);
if (f == 1) {
mEnabledTables.push_back(i);
Expand Down
6 changes: 5 additions & 1 deletion Common/TableProducer/trackPropagation.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ struct TrackPropagation {
ccdb->setCaching(true);
ccdb->setLocalObjectValidityChecking();

lut = o2::base::MatLayerCylSet::rectifyPtrFromFile(ccdb->get<o2::base::MatLayerCylSet>(lutPath));
// Histograms for track tuner
AxisSpec axisBinsDCA = {600, -0.15f, 0.15f, "#it{dca}_{xy} (cm)"};
registry.add("hDCAxyVsPtRec", "hDCAxyVsPtRec", kTH2F, {axisBinsDCA, axisPtQA});
Expand Down Expand Up @@ -145,6 +144,11 @@ struct TrackPropagation {
if (runNumber == bc.runNumber()) {
return;
}

// load matLUT for this timestamp
LOG(info) << "Loading material look-up table for timestamp: " << bc.timestamp();
lut = o2::base::MatLayerCylSet::rectifyPtrFromFile(ccdb->getForTimeStamp<o2::base::MatLayerCylSet>(lutPath, bc.timestamp()));

grpmag = ccdb->getForTimeStamp<o2::parameters::GRPMagField>(grpmagPath, bc.timestamp());
LOG(info) << "Setting magnetic field to current " << grpmag->getL3Current() << " A for run " << bc.runNumber() << " from its GRPMagField CCDB object";
o2::base::Propagator::initFieldFromGRP(grpmag);
Expand Down

0 comments on commit 5fe3c09

Please sign in to comment.