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
if (err.categoryCode() != art::errors::ProductNotFound) throw;
}
If I am not mistaken, this generated beam gate data product (std::vector<sim::BeamGateInfo>) is not used in the module, and from the code it's clear that it was considered optional. What is worse, a data product reading is always attempted. This complicates the debugging of detector data jobs, which do not have any generated beam gate by definition, since it throws (and then catches) an exception per event.
Possible solutions:
completely remove that branch of code
also remove the (mandatory) configuration parameter with the input tag (breaking change)
make the parameter optional
ignore it or not read it at all
when specified, emit a warning that it's ignored
leave the branch of code, but execute it only if the configured input tag is not empty()
also make the configuration parameter an empty tag by default
leave the configuration parameter mandatory
I can implement the changes that LArSoft decides are the more appropriate.
The text was updated successfully, but these errors were encountered:
@PetrilloAtWork, thanks for catching this. Please feel free to create a PR that removes that branch of code as well as the configuration parameter (option 1.i).
The
OpHitFinder
module appears to check for generated beam gates:larana/larana/OpticalDetector/OpHitFinder_module.cc
Lines 251 to 257 in 865ed6f
If I am not mistaken, this generated beam gate data product (
std::vector<sim::BeamGateInfo>
) is not used in the module, and from the code it's clear that it was considered optional. What is worse, a data product reading is always attempted. This complicates the debugging of detector data jobs, which do not have any generated beam gate by definition, since it throws (and then catches) an exception per event.Possible solutions:
empty()
I can implement the changes that LArSoft decides are the more appropriate.
The text was updated successfully, but these errors were encountered: