Skip to content

Commit

Permalink
OverlayTiming: Skipping merging of collections that have no integrati…
Browse files Browse the repository at this point in the history
…on times configured
  • Loading branch information
Nazar Bartosik committed Mar 5, 2020
1 parent 04ffeb1 commit 94e1e76
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/OverlayTiming.cc
Expand Up @@ -355,7 +355,13 @@ namespace overlay {
currentDest = Collection_name;
if ((Collection_in_Physics_Evt->getTypeName() == LCIO::SIMCALORIMETERHIT) || (Collection_in_Physics_Evt->getTypeName() == LCIO::SIMTRACKERHIT))
{
define_time_windows(Collection_name);
try {
define_time_windows(Collection_name);
}
catch (std::runtime_error& e) {
streamlog_out(DEBUG) << "Skipping collection without integration times: " << Collection_name << std::endl;
continue;
}
streamlog_out(DEBUG) << "Cropping collection: " << Collection_name << std::endl;
crop_collection(Collection_in_Physics_Evt);
}
Expand Down Expand Up @@ -461,7 +467,12 @@ namespace overlay {
continue;
}

define_time_windows(Collection_name);
try {
define_time_windows(Collection_name);
}
catch (std::runtime_error& e) {
continue;
}

//the event can only make contributions to the readout, if the bx does not happen after the integration time stopped.
//and we are only interested in Calorimeter or Trackerhits.
Expand Down

0 comments on commit 94e1e76

Please sign in to comment.