You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// When we use pregenerated collision contexts, some options
329
339
// need to be auto-adjusted. Do so and inform about this in the logs.
330
-
if (mConfigData.mFromCollisionContext == "") {
340
+
if (collcontextfile == "") {
331
341
return;
332
342
}
333
343
334
-
auto context = o2::steer::DigitizationContext::loadFromFile(mConfigData.mFromCollisionContext);
344
+
auto context = o2::steer::DigitizationContext::loadFromFile(collcontextfile);
335
345
if (context) {
336
346
// find the events belonging to a source that corresponds to a sim prefix
337
-
LOG(info) << "Looking up simprefixes " << mConfigData.mOutputPrefix;
338
-
int sourceid = context->findSimPrefix(mConfigData.mOutputPrefix);
347
+
LOG(info) << "Looking up simprefixes " << prefix;
348
+
int sourceid = context->findSimPrefix(prefix);
339
349
if (sourceid == -1) {
340
-
LOG(error) << "Could not find collisions with sim prefix " << mConfigData.mOutputPrefix << " in the collision context. The collision contet specifies the following prefixes:";
341
-
for (auto& prefix : context->getSimPrefixes()) {
342
-
LOG(info) << prefix;
350
+
LOG(error) << "Could not find collisions with sim prefix " << prefix << " in the collision context. The collision context specifies the following prefixes:";
351
+
for (auto& sp : context->getSimPrefixes()) {
352
+
LOG(info) << sp;
343
353
}
344
354
LOG(fatal) << "Aborting due to prefix error";
345
355
} else {
346
356
auto collisionmap = context->getCollisionIndicesForSource(sourceid);
347
-
LOG(info) << "Found " << collisionmap.size() << " events in the collisioncontext for prefix " << mConfigData.mOutputPrefix;
357
+
LOG(info) << "Found " << collisionmap.size() << " events in the collisioncontext for prefix " << prefix;
348
358
349
359
// check if collisionmap is dense (otherwise it will get screwed up with order/indexing in ROOT output)
0 commit comments