File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff 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 ->());
You can’t perform that action at this time.
0 commit comments