Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
dunereco
dunereco
VLNets
art
var_extractors
VarExtractorBase.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <string>
4
#include <vector>
5
6
#include "
art/Framework/Principal/Event.h
"
7
#include "
dunereco/VLNets/data/structs/VarDict.h
"
8
9
namespace
VLN
{
10
11
class
VarExtractorBase
12
{
13
public
:
14
VarExtractorBase
(
15
const
std::string
&
prefix
,
16
const
std::vector<std::string> &
scalarVars
,
17
const
std::vector<std::string> &
vectorVars
18
);
19
virtual
~VarExtractorBase
() =
default
;
20
virtual
void
extract
(
const
art::Event
&
evt
,
VarDict
&vars);
21
22
protected
:
23
virtual
void
extractVars
(
const
art::Event
&evt,
VarDict
&vars) = 0;
24
25
void
setScalarVar
(
26
VarDict
&vars,
const
std::string
&
name
,
double
value
27
)
const
;
28
29
void
appendToVectorVar
(
30
VarDict
&vars,
const
std::string
&name,
double
value
31
)
const
;
32
33
void
initScalarVars
(
34
VarDict
&vars,
const
std::vector<std::string> &
names
35
)
const
;
36
37
void
initVectorVars
(
38
VarDict
&vars,
const
std::vector<std::string> &names
39
)
const
;
40
41
protected
:
42
std::string
prefix
;
43
44
std::vector<std::string>
scalarVars
;
45
std::vector<std::string>
vectorVars
;
46
};
47
48
}
49
name
static QCString name
Definition:
declinfo.cpp:673
VLN::VarExtractorBase::~VarExtractorBase
virtual ~VarExtractorBase()=default
VLN::VarExtractorBase
Definition:
VarExtractorBase.h:11
string
std::string string
Definition:
nybbler.cc:12
VLN::VarExtractorBase::extractVars
virtual void extractVars(const art::Event &evt, VarDict &vars)=0
VarDict
Definition:
VarDict.h:8
VLN::VarExtractorBase::extract
virtual void extract(const art::Event &evt, VarDict &vars)
Definition:
VarExtractorBase.cxx:54
VLN::VarExtractorBase::vectorVars
std::vector< std::string > vectorVars
Definition:
VarExtractorBase.h:45
VarDict.h
VLN::VarExtractorBase::appendToVectorVar
void appendToVectorVar(VarDict &vars, const std::string &name, double value) const
Definition:
VarExtractorBase.cxx:20
VLN
Definition:
utils.cxx:6
VLN::VarExtractorBase::scalarVars
std::vector< std::string > scalarVars
Definition:
VarExtractorBase.h:44
VLN::VarExtractorBase::setScalarVar
void setScalarVar(VarDict &vars, const std::string &name, double value) const
Definition:
VarExtractorBase.cxx:13
VLN::VarExtractorBase::initScalarVars
void initScalarVars(VarDict &vars, const std::vector< std::string > &names) const
Definition:
VarExtractorBase.cxx:27
art::Event
Definition:
Event.h:22
VLN::VarExtractorBase::prefix
std::string prefix
Definition:
VarExtractorBase.h:42
VLN::VarExtractorBase::initVectorVars
void initVectorVars(VarDict &vars, const std::vector< std::string > &names) const
Definition:
VarExtractorBase.cxx:36
VLN::VarExtractorBase::VarExtractorBase
VarExtractorBase(const std::string &prefix, const std::vector< std::string > &scalarVars, const std::vector< std::string > &vectorVars)
Definition:
VarExtractorBase.cxx:6
tca::evt
TCEvent evt
Definition:
DataStructs.cxx:7
Event.h
dune::names
static std::vector< std::string > const names
Definition:
FragmentType.hh:8
submit_mcc.value
value
Definition:
submit_mcc.py:159
Generated by
1.8.11