Skip to content

Commit 5f88348

Browse files
author
Lucia Anna Tarasovicova
committed
different source of number of geometries for primary and secondary smearing
1 parent 30da79c commit 5f88348

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

ALICE3/TableProducer/OTF/onTheFlyTracker.cxx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,16 @@ struct OnTheFlyTracker {
328328

329329
return foundNewCfg;
330330
};
331+
int nGeometries = static_cast<int>(fastTrackerSettings.alice3geo->size());
332+
if (enablePrimarySmearing)
333+
nGeometries = static_cast<int>(lookUpTables.lutPi->size());
334+
if (enablePrimarySmearing && enableSecondarySmearing) {
335+
if (static_cast<int>(lookUpTables.lutPi->size()) != static_cast<int>(fastTrackerSettings.alice3geo->size())) {
336+
LOG(fatal) << "When enabling both primary and secondary smearing, the number of LUTs provided must match the number of geometries provided!";
337+
}
338+
}
331339

332-
for (int icfg = 0; icfg < static_cast<int>(fastTrackerSettings.alice3geo->size()); ++icfg) {
340+
for (int icfg = 0; icfg < nGeometries; ++icfg) {
333341
std::string histPath = "Configuration_" + std::to_string(icfg) + "/";
334342
mSmearer.emplace_back(std::make_unique<o2::delphes::DelphesO2TrackSmearer>());
335343
mSmearer[icfg]->setCcdbManager(ccdb.operator->());

0 commit comments

Comments
 (0)