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

#include <EventAddrVarExtractor.h>

Inheritance diagram for VLN::EventAddrVarExtractor:
VLN::VarExtractorBase

Public Member Functions

 EventAddrVarExtractor (const std::string &prefix)
 
 ~EventAddrVarExtractor ()=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
 

Additional Inherited Members

- Protected Attributes inherited from VLN::VarExtractorBase
std::string prefix
 
std::vector< std::stringscalarVars
 
std::vector< std::stringvectorVars
 

Detailed Description

Definition at line 7 of file EventAddrVarExtractor.h.

Constructor & Destructor Documentation

VLN::EventAddrVarExtractor::EventAddrVarExtractor ( const std::string prefix)
explicit

Definition at line 11 of file EventAddrVarExtractor.cxx.

13 { }
static const std::vector< std::string > VECTOR_VARS({})
static const std::vector< std::string > SCALAR_VARS({"run","subRun","event"})
VarExtractorBase(const std::string &prefix, const std::vector< std::string > &scalarVars, const std::vector< std::string > &vectorVars)
VLN::EventAddrVarExtractor::~EventAddrVarExtractor ( )
default

Member Function Documentation

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

Implements VLN::VarExtractorBase.

Definition at line 15 of file EventAddrVarExtractor.cxx.

16 {
17  setScalarVar(vars, "run", evt.id().run());
18  setScalarVar(vars, "subRun", evt.id().subRun());
19  setScalarVar(vars, "event", evt.id().event());
20 }
RunNumber_t run() const
Definition: EventID.h:98
void setScalarVar(VarDict &vars, const std::string &name, double value) const
EventNumber_t event() const
Definition: EventID.h:116
SubRunNumber_t subRun() const
Definition: EventID.h:110
EventID id() const
Definition: Event.cc:34

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