Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
arttest::ToyProductAnalyzer Class Reference
Inheritance diagram for arttest::ToyProductAnalyzer:
art::EDAnalyzer art::detail::Analyzer art::detail::LegacyModule art::Observer art::ModuleBase

Classes

struct  Config
 

Public Types

using Parameters = art::EDAnalyzer::Table< Config >
 
- Public Types inherited from art::EDAnalyzer
using WorkerType = WorkerT< EDAnalyzer >
 
using ModuleType = EDAnalyzer
 

Public Member Functions

 ToyProductAnalyzer (Parameters const &pset)
 
- Public Member Functions inherited from art::EDAnalyzer
 EDAnalyzer (fhicl::ParameterSet const &pset)
 
template<typename Config >
 EDAnalyzer (Table< Config > const &config)
 
std::string workerType () const
 
- Public Member Functions inherited from art::detail::Analyzer
virtual ~Analyzer () noexcept
 
 Analyzer (fhicl::ParameterSet const &pset)
 
template<typename Config >
 Analyzer (Table< Config > const &config)
 
void doBeginJob ()
 
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)
 
- Public Member Functions inherited from art::Observer
 ~Observer () noexcept
 
 Observer (Observer const &)=delete
 
 Observer (Observer &&)=delete
 
Observeroperator= (Observer const &)=delete
 
Observeroperator= (Observer &&)=delete
 
void registerProducts (ProductDescriptions &, ModuleDescription const &)
 
void fillDescriptions (ModuleDescription const &)
 
std::string const & processName () const
 
bool wantAllEvents () const
 
bool wantEvent (Event const &e)
 
fhicl::ParameterSetID selectorConfig () const
 
Handle< TriggerResultsgetTriggerResults (Event const &e) const
 
- Public Member Functions inherited from art::ModuleBase
virtual ~ModuleBase () noexcept
 
 ModuleBase ()
 
ModuleDescription const & moduleDescription () const
 
void setModuleDescription (ModuleDescription const &)
 
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 ()
 
std::array< std::vector< ProductInfo >, NumBranchTypes > const & getConsumables () const
 
void sortConsumables (std::string const &current_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

void beginRun (art::Run const &r) override
 
void endRun (art::Run const &r) override
 
void beginSubRun (art::SubRun const &sr) override
 
void endSubRun (art::SubRun const &sr) override
 
void analyze (art::Event const &e) override
 

Private Attributes

std::string const inputLabel_
 
art::ProductToken< StringProducteToken_
 
art::ProductToken< StringProductsrToken_
 
art::ProductToken< StringProductbsrToken_
 
art::ProductToken< StringProductesrToken_
 
art::ProductToken< StringProductrToken_
 
art::ProductToken< StringProductbrToken_
 
art::ProductToken< StringProducterToken_
 

Additional Inherited Members

- Protected Member Functions inherited from art::Observer
 Observer (fhicl::ParameterSet const &config)
 
 Observer (std::vector< std::string > const &paths, fhicl::ParameterSet const &config)
 
detail::ProcessAndEventSelectorsprocessAndEventSelectors ()
 

Detailed Description

Definition at line 19 of file ToyProductAnalyzer_module.cc.

Member Typedef Documentation

Definition at line 25 of file ToyProductAnalyzer_module.cc.

Constructor & Destructor Documentation

arttest::ToyProductAnalyzer::ToyProductAnalyzer ( Parameters const &  pset)
explicit

Definition at line 49 of file ToyProductAnalyzer_module.cc.

50  : art::EDAnalyzer{pset}
51  , inputLabel_{pset().inputLabel()}
52  , eToken_{consumes<StringProduct>(inputLabel_)}
53  , srToken_{consumes<StringProduct, art::InSubRun>(inputLabel_)}
54  , bsrToken_{consumes<StringProduct, art::InSubRun>(
55  {inputLabel_, "bgnSubRun"})}
56  , esrToken_{consumes<StringProduct, art::InSubRun>(
57  {inputLabel_, "endSubRun"})}
58  , rToken_{consumes<StringProduct, art::InRun>(inputLabel_)}
59  , brToken_{consumes<StringProduct, art::InRun>({inputLabel_, "bgnRun"})}
60  , erToken_{consumes<StringProduct, art::InRun>({inputLabel_, "endRun"})}
61 {}
art::ProductToken< StringProduct > brToken_
art::ProductToken< StringProduct > srToken_
art::ProductToken< StringProduct > eToken_
art::ProductToken< StringProduct > esrToken_
art::ProductToken< StringProduct > erToken_
art::ProductToken< StringProduct > rToken_
art::ProductToken< StringProduct > bsrToken_

Member Function Documentation

void arttest::ToyProductAnalyzer::analyze ( art::Event const &  e)
overrideprivatevirtual

Implements art::EDAnalyzer.

Definition at line 78 of file ToyProductAnalyzer_module.cc.

79 {
80  e.getValidHandle(eToken_);
81 }
art::ProductToken< StringProduct > eToken_
const double e
void arttest::ToyProductAnalyzer::beginRun ( art::Run const &  r)
overrideprivatevirtual

Reimplemented from art::EDAnalyzer.

Definition at line 64 of file ToyProductAnalyzer_module.cc.

65 {
66  r.getValidHandle(brToken_);
67  r.getValidHandle(rToken_);
68 }
art::ProductToken< StringProduct > brToken_
art::ProductToken< StringProduct > rToken_
void arttest::ToyProductAnalyzer::beginSubRun ( art::SubRun const &  sr)
overrideprivatevirtual

Reimplemented from art::EDAnalyzer.

Definition at line 71 of file ToyProductAnalyzer_module.cc.

72 {
73  sr.getValidHandle(bsrToken_);
74  sr.getValidHandle(srToken_);
75 }
art::ProductToken< StringProduct > srToken_
art::ProductToken< StringProduct > bsrToken_
static const double sr
Definition: Units.h:167
void arttest::ToyProductAnalyzer::endRun ( art::Run const &  r)
overrideprivatevirtual

Reimplemented from art::EDAnalyzer.

Definition at line 90 of file ToyProductAnalyzer_module.cc.

91 {
92  r.getValidHandle(erToken_);
93 }
art::ProductToken< StringProduct > erToken_
void arttest::ToyProductAnalyzer::endSubRun ( art::SubRun const &  sr)
overrideprivatevirtual

Reimplemented from art::EDAnalyzer.

Definition at line 84 of file ToyProductAnalyzer_module.cc.

85 {
86  sr.getValidHandle(esrToken_);
87 }
art::ProductToken< StringProduct > esrToken_
static const double sr
Definition: Units.h:167

Member Data Documentation

art::ProductToken<StringProduct> arttest::ToyProductAnalyzer::brToken_
private

Definition at line 44 of file ToyProductAnalyzer_module.cc.

art::ProductToken<StringProduct> arttest::ToyProductAnalyzer::bsrToken_
private

Definition at line 40 of file ToyProductAnalyzer_module.cc.

art::ProductToken<StringProduct> arttest::ToyProductAnalyzer::erToken_
private

Definition at line 45 of file ToyProductAnalyzer_module.cc.

art::ProductToken<StringProduct> arttest::ToyProductAnalyzer::esrToken_
private

Definition at line 41 of file ToyProductAnalyzer_module.cc.

art::ProductToken<StringProduct> arttest::ToyProductAnalyzer::eToken_
private

Definition at line 37 of file ToyProductAnalyzer_module.cc.

std::string const arttest::ToyProductAnalyzer::inputLabel_
private

Definition at line 35 of file ToyProductAnalyzer_module.cc.

art::ProductToken<StringProduct> arttest::ToyProductAnalyzer::rToken_
private

Definition at line 43 of file ToyProductAnalyzer_module.cc.

art::ProductToken<StringProduct> arttest::ToyProductAnalyzer::srToken_
private

Definition at line 39 of file ToyProductAnalyzer_module.cc.


The documentation for this class was generated from the following file: