A variable for the probe: can be a string expression or an external ValueMap<float> More...
#include <BaseTreeFiller.h>
Public Member Functions | |
float * | address () const |
Addess for ROOT Branch. More... | |
void | fill (const reco::CandidateBaseRef &probe) const |
To be called for each item. More... | |
void | init (const edm::Event &iEvent) const |
To be called at the beginning of the event (will fetch ValueMap if needed) More... | |
const std::string & | name () const |
name More... | |
ProbeVariable (const std::string &name, const edm::EDGetTokenT< edm::ValueMap< float > > &srcToken) | |
Create a ProbeVariable to be read from a ValueMap. More... | |
ProbeVariable (const std::string &name, const std::string &expression) | |
Create a ProbeVariable to be evaluated on the fly from a string expression. More... | |
~ProbeVariable () | |
Destructor (does nothing) More... | |
Private Attributes | |
bool | external_ |
true if it's an external ValueMap, false if it's a StringParser function More... | |
StringObjectFunction< reco::Candidate, true > | function_ |
a lazy-parsed StringObjectFunction<reco::Candidate> that gets all the methods of daughter classes too More... | |
edm::Handle< edm::ValueMap< float > > | handle_ |
the handle to keep the ValueMap More... | |
std::string | name_ |
the name of the variable, which becomes the ROOT branch name More... | |
edm::EDGetTokenT< edm::ValueMap< float > > | srcToken_ |
the external valuemap More... | |
float | value_ |
the place where we store the value, and that ROOT uses to fill the tree More... | |
A variable for the probe: can be a string expression or an external ValueMap<float>
Definition at line 46 of file BaseTreeFiller.h.
|
inline |
Create a ProbeVariable to be evaluated on the fly from a string expression.
Definition at line 49 of file BaseTreeFiller.h.
|
inline |
Create a ProbeVariable to be read from a ValueMap.
Definition at line 53 of file BaseTreeFiller.h.
tnp::ProbeVariable::~ProbeVariable | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
name
Definition at line 63 of file BaseTreeFiller.h.
References name_.
Referenced by config.CFG::__str__(), and validation.Sample::digest().
|
private |
true if it's an external ValueMap, false if it's a StringParser function
Definition at line 81 of file BaseTreeFiller.h.
|
private |
a lazy-parsed StringObjectFunction<reco::Candidate> that gets all the methods of daughter classes too
Definition at line 84 of file BaseTreeFiller.h.
Referenced by fill().
|
mutableprivate |
the handle to keep the ValueMap
Definition at line 92 of file BaseTreeFiller.h.
Referenced by init().
|
private |
the name of the variable, which becomes the ROOT branch name
Definition at line 76 of file BaseTreeFiller.h.
Referenced by name().
|
private |
|
mutableprivate |
the place where we store the value, and that ROOT uses to fill the tree
Definition at line 78 of file BaseTreeFiller.h.