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
auto inputDigits = pc.inputs().get<gsl::span<o2::trd::Digit>>("digitinput"); // block of TRD digits
224
-
auto digitMCLabels = pc.inputs().get<o2::dataformats::ConstMCTruthContainer<o2::MCCompLabel>>("labelinput"); // MC labels associated to the input digits
225
226
auto inputTriggerRecords = pc.inputs().get<gsl::span<o2::trd::TriggerRecord>>("triggerrecords"); // time and number of digits for each collision
226
227
if (inputDigits.size() == 0 || inputTriggerRecords.size() == 0) {
227
228
LOG(warn) << "Did not receive any digits, trigger records, or neither one nor the other. Aborting.";
228
229
return;
229
230
}
230
231
LOG(debug) << "Read in " << inputDigits.size() << " digits";
231
-
LOG(debug) << "Labels contain " << digitMCLabels.getNElements() << " elements with and indexed size of " << digitMCLabels.getIndexedSize();
232
-
LOG(debug) << "Trigger records are available for " << inputTriggerRecords.size() << " collisions";
233
-
if (digitMCLabels.getIndexedSize() != inputDigits.size()) {
234
-
LOG(warn) << "Digits and Labels coming into TrapSimulator are of differing sizes, labels will be jibberish. " << digitMCLabels.getIndexedSize() << "!=" << inputDigits.size();
auto lblDigits = pc.inputs().get<o2::dataformats::ConstMCTruthContainer<o2::MCCompLabel>>("labelinput"); // MC labels associated to the input digits
237
+
lblDigitsPtr = &lblDigits;
238
+
LOG(debug) << "Labels contain " << lblDigitsPtr->getNElements() << " elements with and indexed size of " << lblDigitsPtr->getIndexedSize();
239
+
if (lblDigitsPtr->getIndexedSize() != inputDigits.size()) {
240
+
LOG(warn) << "Digits and Labels coming into TrapSimulator are of differing sizes, labels will be jibberish. " << lblDigitsPtr->getIndexedSize() << "!=" << inputDigits.size();
241
+
}
235
242
}
243
+
LOG(debug) << "Trigger records are available for " << inputTriggerRecords.size() << " collisions";
o2::dataformats::MCTruthContainer<o2::MCCompLabel> trackletMCLabels; // MC labels for the tracklets, taken from the digits which make up the tracklet (duplicates are removed)
240
247
// copy from the input to keep the collision times, but the number of objects in here will refer to tracklets instead of digits
241
248
std::vector<o2::trd::TriggerRecord> trackletTriggerRecords(inputTriggerRecords.begin(), inputTriggerRecords.end()); // time and number of tracklets for each collision
o2::dataformats::MCTruthContainer<o2::MCCompLabel> lblTracklets; // MC labels for the tracklets, taken from the digits which make up the tracklet (duplicates are removed)
243
250
244
251
// sort digits by chamber ID for each collision and keep track in index vector
245
252
auto sortStart = std::chrono::high_resolution_clock::now();
{"show-trd-trackletstats", VariantType::Int, 1, {"Display the processing time of the tracklet processing in the TRAPs"}},
337
360
{"trd-trapconfig", VariantType::String, "cf_pg-fpnp32_zs-s16-deh_tb30_trkl-b5n-fs1e24-ht200-qs0e24s24e23-pidlinear-pt100_ptrg.r5549", {"Name of the trap config from the CCDB default:cf_pg-fpnp32_zs-s16-deh_tb30_trkl-b5n-fs1e24-ht200-qs0e24s24e23-pidlinear-pt100_ptrg.r5549"}},
0 commit comments