Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
VLN::DefaultInputVarExtractor Class Reference

#include <DefaultInputVarExtractor.h>

Inheritance diagram for VLN::DefaultInputVarExtractor:
VLN::VarExtractorBase

Public Member Functions

 DefaultInputVarExtractor (const std::string &prefix, const fhicl::ParameterSet &pset, unsigned int plane=2)
 
 ~DefaultInputVarExtractor ()=default
 
- Public Member Functions inherited from VLN::VarExtractorBase
 VarExtractorBase (const std::string &prefix, const std::vector< std::string > &scalarVars, const std::vector< std::string > &vectorVars)
 
virtual ~VarExtractorBase ()=default
 
virtual void extract (const art::Event &evt, VarDict &vars)
 

Protected Member Functions

void extractVars (const art::Event &evt, VarDict &vars) override
 
- Protected Member Functions inherited from VLN::VarExtractorBase
void setScalarVar (VarDict &vars, const std::string &name, double value) const
 
void appendToVectorVar (VarDict &vars, const std::string &name, double value) const
 
void initScalarVars (VarDict &vars, const std::vector< std::string > &names) const
 
void initVectorVars (VarDict &vars, const std::vector< std::string > &names) const
 

Protected Attributes

calo::CalorimetryAlg algCalorimetry
 
EventAddrVarExtractor addrVarExtractor
 
EventRecoVarExtractor recoVarExtractor
 
PFParticleVarExtractor particleVarExtractor
 
- Protected Attributes inherited from VLN::VarExtractorBase
std::string prefix
 
std::vector< std::stringscalarVars
 
std::vector< std::stringvectorVars
 

Detailed Description

Definition at line 13 of file DefaultInputVarExtractor.h.

Constructor & Destructor Documentation

VLN::DefaultInputVarExtractor::DefaultInputVarExtractor ( const std::string prefix,
const fhicl::ParameterSet pset,
unsigned int  plane = 2 
)

Definition at line 5 of file DefaultInputVarExtractor.cxx.

9  : VarExtractorBase(prefix, {}, {}),
10  algCalorimetry(pset.get<fhicl::ParameterSet>("AlgCalorimetry")),
11  addrVarExtractor(prefix + "addr."),
13  prefix + "event.",
15  pset.get<std::string>("LabelHit"),
16  plane
17  ),
19  prefix + "particle.",
21  pset.get<std::string>("LabelPFPModule"),
22  pset.get<std::string>("LabelPFPTrack"),
23  pset.get<std::string>("LabelPFPShower"),
24  plane
25  )
26 { }
PFParticleVarExtractor particleVarExtractor
std::string string
Definition: nybbler.cc:12
T get(std::string const &key) const
Definition: ParameterSet.h:271
VarExtractorBase(const std::string &prefix, const std::vector< std::string > &scalarVars, const std::vector< std::string > &vectorVars)
VLN::DefaultInputVarExtractor::~DefaultInputVarExtractor ( )
default

Member Function Documentation

void VLN::DefaultInputVarExtractor::extractVars ( const art::Event evt,
VarDict vars 
)
overrideprotectedvirtual

Implements VLN::VarExtractorBase.

Definition at line 28 of file DefaultInputVarExtractor.cxx.

31 {
32  addrVarExtractor .extract(evt, vars);
33  recoVarExtractor .extract(evt, vars);
34  particleVarExtractor.extract(evt, vars);
35 }
PFParticleVarExtractor particleVarExtractor
virtual void extract(const art::Event &evt, VarDict &vars)

Member Data Documentation

EventAddrVarExtractor VLN::DefaultInputVarExtractor::addrVarExtractor
protected

Definition at line 29 of file DefaultInputVarExtractor.h.

calo::CalorimetryAlg VLN::DefaultInputVarExtractor::algCalorimetry
protected

Definition at line 27 of file DefaultInputVarExtractor.h.

PFParticleVarExtractor VLN::DefaultInputVarExtractor::particleVarExtractor
protected

Definition at line 31 of file DefaultInputVarExtractor.h.

EventRecoVarExtractor VLN::DefaultInputVarExtractor::recoVarExtractor
protected

Definition at line 30 of file DefaultInputVarExtractor.h.


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