Module verifying the presence of data products. More...
Classes | |
struct | Config |
struct | TargetInfo_t |
Configuration for a single data product check. More... | |
Public Types | |
using | Parameters = art::EDAnalyzer::Table< Config > |
Public Member Functions | |
HitDataProductChecker (Parameters const &config) | |
virtual void | analyze (const art::Event &event) override |
Private Member Functions | |
template<typename DATA > | |
void | checkDataProducts (art::Event const &event, TargetInfo_t const &targetInfo, std::string desc) |
Checks the specified data product. More... | |
Private Attributes | |
std::vector< TargetInfo_t > | fHitTargets |
Configuration of all checks on hit collections. More... | |
Module verifying the presence of data products.
Throws an exception on failure.
This module requires no service.
std::vector<recob::Hit>
). Each entry is a table containing:true
, the data product is expected to exist, if false it is expected not to existDefinition at line 54 of file HitDataProductChecker_module.cc.
using recob::test::HitDataProductChecker::Parameters = art::EDAnalyzer::Table<Config> |
Definition at line 91 of file HitDataProductChecker_module.cc.
|
explicit |
Definition at line 162 of file HitDataProductChecker_module.cc.
|
overridevirtual |
Definition at line 172 of file HitDataProductChecker_module.cc.
|
private |
Checks the specified data product.
DATA | type of data product to be checked |
event | the event to read the data product from |
targetInfo | details of the data product expected information |
desc | description of the content of the data product |
art::Exception | (art::errors::ProductNotFound ) when unexpected |
The checks include:
Definition at line 183 of file HitDataProductChecker_module.cc.
|
private |
Configuration of all checks on hit collections.
Definition at line 126 of file HitDataProductChecker_module.cc.