Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
dunereco
dunereco
VLNets
art
var_extractors
EventAddrVarExtractor.cxx
Go to the documentation of this file.
1
#include "
EventAddrVarExtractor.h
"
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
11
EventAddrVarExtractor::EventAddrVarExtractor
(
const
std::string
&
prefix
)
12
:
VarExtractorBase
(prefix,
SCALAR_VARS
,
VECTOR_VARS
)
13
{ }
14
15
void
EventAddrVarExtractor::extractVars
(
const
art::Event
&
evt
,
VarDict
&vars)
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
VLN::VarExtractorBase
Definition:
VarExtractorBase.h:11
VLN::VECTOR_VARS
static const std::vector< std::string > VECTOR_VARS({})
VLN::EventAddrVarExtractor::EventAddrVarExtractor
EventAddrVarExtractor(const std::string &prefix)
Definition:
EventAddrVarExtractor.cxx:11
submit_ppfxjobs.prefix
string prefix
Definition:
submit_ppfxjobs.py:128
string
std::string string
Definition:
nybbler.cc:12
art::EventID::run
RunNumber_t run() const
Definition:
EventID.h:98
VarDict
Definition:
VarDict.h:8
VLN::SCALAR_VARS
static const std::vector< std::string > SCALAR_VARS({"run","subRun","event"})
VLN
Definition:
utils.cxx:6
VLN::VarExtractorBase::setScalarVar
void setScalarVar(VarDict &vars, const std::string &name, double value) const
Definition:
VarExtractorBase.cxx:13
art::Event
Definition:
Event.h:22
art::EventID::event
EventNumber_t event() const
Definition:
EventID.h:116
tca::evt
TCEvent evt
Definition:
DataStructs.cxx:7
VLN::EventAddrVarExtractor::extractVars
void extractVars(const art::Event &evt, VarDict &vars) override
Definition:
EventAddrVarExtractor.cxx:15
art::EventID::subRun
SubRunNumber_t subRun() const
Definition:
EventID.h:110
art::Event::id
EventID id() const
Definition:
Event.cc:34
EventAddrVarExtractor.h
Generated by
1.8.11