#include <BaseTreeFiller.h>
Public Member Functions | |
int32_t * | 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 Candidate View if needed) More... | |
const std::string & | name () const |
name More... | |
ProbeFlag (const std::string &name, const edm::EDGetTokenT< edm::View< reco::Candidate > > &srcToken) | |
Create a ProbeFlag to be read from a ValueMap. More... | |
ProbeFlag (const std::string &name, const std::string &cut) | |
Create a ProbeFlag to be evaluated on the fly from a string cut. More... | |
~ProbeFlag () | |
Destructor (does nothing) More... | |
Private Attributes | |
StringCutObjectSelector< reco::Candidate, true > | cut_ |
implementation of the cut using a string selector More... | |
bool | external_ |
true if it's an external Candidate View, false if it's a StringParser cut More... | |
std::string | name_ |
the name of the variable, which becomes the ROOT branch name More... | |
std::vector< reco::CandidateBaseRef > | passingProbes_ |
the handle to keep the refs to the passing probes More... | |
edm::EDGetTokenT< edm::View< reco::Candidate > > | srcToken_ |
the external collection More... | |
int32_t | value_ |
the place where we store the value, and that ROOT uses to fill the tree More... | |
Definition at line 93 of file BaseTreeFiller.h.
|
inline |
|
inline |
tnp::ProbeFlag::~ProbeFlag | ( | ) |
|
inline |
void tnp::ProbeFlag::fill | ( | const reco::CandidateBaseRef & | probe | ) | const |
To be called for each item.
Definition at line 27 of file BaseTreeFiller.cc.
References electrons_cff::bool, and spr::find().
void tnp::ProbeFlag::init | ( | const edm::Event & | iEvent | ) | const |
To be called at the beginning of the event (will fetch Candidate View if needed)
Definition at line 17 of file BaseTreeFiller.cc.
References mps_fire::i, iEvent, and dqmiodumpmetadata::n.
|
inline |
name
Definition at line 109 of file BaseTreeFiller.h.
References name_.
Referenced by config.CFG::__str__(), and validation.Sample::digest().
|
private |
implementation of the cut using a string selector
Definition at line 127 of file BaseTreeFiller.h.
|
private |
true if it's an external Candidate View, false if it's a StringParser cut
Definition at line 124 of file BaseTreeFiller.h.
|
private |
the name of the variable, which becomes the ROOT branch name
Definition at line 119 of file BaseTreeFiller.h.
Referenced by name().
|
mutableprivate |
the handle to keep the refs to the passing probes
Definition at line 133 of file BaseTreeFiller.h.
|
private |
the external collection
Definition at line 131 of file BaseTreeFiller.h.
|
mutableprivate |
the place where we store the value, and that ROOT uses to fill the tree
Definition at line 121 of file BaseTreeFiller.h.
Referenced by address().