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 > |
![]() | |
using | WorkerType = WorkerT< EDAnalyzer > |
using | ModuleType = EDAnalyzer |
Public Member Functions | |
HitDataProductChecker (Parameters const &config) | |
virtual void | analyze (const art::Event &event) override |
![]() | |
EDAnalyzer (fhicl::ParameterSet const &pset) | |
template<typename Config > | |
EDAnalyzer (Table< Config > const &config) | |
std::string | workerType () const |
![]() | |
virtual | ~Analyzer () noexcept |
Analyzer (fhicl::ParameterSet const &pset) | |
template<typename Config > | |
Analyzer (Table< Config > const &config) | |
void | doBeginJob (SharedResources const &resources) |
void | doEndJob () |
void | doRespondToOpenInputFile (FileBlock const &fb) |
void | doRespondToCloseInputFile (FileBlock const &fb) |
void | doRespondToOpenOutputFiles (FileBlock const &fb) |
void | doRespondToCloseOutputFiles (FileBlock const &fb) |
bool | doBeginRun (RunPrincipal &rp, ModuleContext const &mc) |
bool | doEndRun (RunPrincipal &rp, ModuleContext const &mc) |
bool | doBeginSubRun (SubRunPrincipal &srp, ModuleContext const &mc) |
bool | doEndSubRun (SubRunPrincipal &srp, ModuleContext const &mc) |
bool | doEvent (EventPrincipal &ep, ModuleContext const &mc, std::atomic< std::size_t > &counts_run, std::atomic< std::size_t > &counts_passed, std::atomic< std::size_t > &counts_failed) |
![]() | |
~Observer () noexcept | |
Observer (Observer const &)=delete | |
Observer (Observer &&)=delete | |
Observer & | operator= (Observer const &)=delete |
Observer & | operator= (Observer &&)=delete |
void | registerProducts (ProductDescriptions &, ModuleDescription const &) |
void | fillDescriptions (ModuleDescription const &) |
fhicl::ParameterSetID | selectorConfig () const |
![]() | |
virtual | ~ModuleBase () noexcept |
ModuleBase () | |
ModuleDescription const & | moduleDescription () const |
void | setModuleDescription (ModuleDescription const &) |
std::array< std::vector< ProductInfo >, NumBranchTypes > const & | getConsumables () const |
void | sortConsumables (std::string const ¤t_process_name) |
template<typename T , BranchType BT> | |
ViewToken< T > | consumesView (InputTag const &tag) |
template<typename T , BranchType BT> | |
ViewToken< T > | mayConsumeView (InputTag const &tag) |
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... | |
Additional Inherited Members | |
![]() | |
std::string const & | processName () const |
bool | wantAllEvents () const noexcept |
bool | wantEvent (ScheduleID id, Event const &e) const |
Handle< TriggerResults > | getTriggerResults (Event const &e) const |
Observer (fhicl::ParameterSet const &config) | |
Observer (std::vector< std::string > const &select_paths, std::vector< std::string > const &reject_paths, fhicl::ParameterSet const &config) | |
![]() | |
ConsumesCollector & | consumesCollector () |
template<typename T , BranchType = InEvent> | |
ProductToken< T > | consumes (InputTag const &) |
template<typename Element , BranchType = InEvent> | |
ViewToken< Element > | consumesView (InputTag const &) |
template<typename T , BranchType = InEvent> | |
void | consumesMany () |
template<typename T , BranchType = InEvent> | |
ProductToken< T > | mayConsume (InputTag const &) |
template<typename Element , BranchType = InEvent> | |
ViewToken< Element > | mayConsumeView (InputTag const &) |
template<typename T , BranchType = InEvent> | |
void | mayConsumeMany () |
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.
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.