All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
simfilter::FilterNoMCParticles Class Reference
Inheritance diagram for simfilter::FilterNoMCParticles:

Public Member Functions

 FilterNoMCParticles (fhicl::ParameterSet const &pset, art::ProcessingFrame const &)
 

Private Member Functions

bool filter (art::Event &, art::ProcessingFrame const &) override
 

Private Attributes

std::string const fLArG4ModuleLabel
 

Detailed Description

Definition at line 23 of file FilterNoMCParticles_module.cc.

Constructor & Destructor Documentation

simfilter::FilterNoMCParticles::FilterNoMCParticles ( fhicl::ParameterSet const &  pset,
art::ProcessingFrame const &   
)
explicit

Definition at line 39 of file FilterNoMCParticles_module.cc.

41  : SharedFilter{pset}
42  , fLArG4ModuleLabel{pset.get<std::string>("LArG4ModuleLabel", "NoLabel")}
43  {
44  async<art::InEvent>();
45  }

Member Function Documentation

bool simfilter::FilterNoMCParticles::filter ( art::Event &  evt,
art::ProcessingFrame const &   
)
overrideprivate

Definition at line 49 of file FilterNoMCParticles_module.cc.

50  {
51  auto const& mcps =
52  *evt.getValidHandle<std::vector<simb::MCParticle>>(fLArG4ModuleLabel);
53  return not mcps.empty();
54  }
TCEvent evt
Definition: DataStructs.cxx:8

Member Data Documentation

std::string const simfilter::FilterNoMCParticles::fLArG4ModuleLabel
private

Definition at line 30 of file FilterNoMCParticles_module.cc.


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