EventAddrVarExtractor.cxx
Go to the documentation of this file.
2 
3 namespace VLN {
4 
5 static const std::vector<std::string> SCALAR_VARS({
6  "run", "subRun", "event"
7 });
8 
9 static const std::vector<std::string> VECTOR_VARS({});
10 
13 { }
14 
16 {
17  setScalarVar(vars, "run", evt.id().run());
18  setScalarVar(vars, "subRun", evt.id().subRun());
19  setScalarVar(vars, "event", evt.id().event());
20 }
21 
22 }
23 
static const std::vector< std::string > VECTOR_VARS({})
EventAddrVarExtractor(const std::string &prefix)
std::string string
Definition: nybbler.cc:12
RunNumber_t run() const
Definition: EventID.h:98
Definition: VarDict.h:8
static const std::vector< std::string > SCALAR_VARS({"run","subRun","event"})
Definition: utils.cxx:6
void setScalarVar(VarDict &vars, const std::string &name, double value) const
EventNumber_t event() const
Definition: EventID.h:116
TCEvent evt
Definition: DataStructs.cxx:7
void extractVars(const art::Event &evt, VarDict &vars) override
SubRunNumber_t subRun() const
Definition: EventID.h:110
EventID id() const
Definition: Event.cc:34