#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 std::string &cut) | |
Create a ProbeFlag to be evaluated on the fly from a string cut. 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 () | |
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 95 of file BaseTreeFiller.h.
|
inline |
Create a ProbeFlag to be evaluated on the fly from a string cut.
Definition at line 98 of file BaseTreeFiller.h.
|
inline |
Create a ProbeFlag to be read from a ValueMap.
Definition at line 101 of file BaseTreeFiller.h.
tnp::ProbeFlag::~ProbeFlag | ( | ) |
|
inline |
Addess for ROOT Branch.
Definition at line 108 of file BaseTreeFiller.h.
References value_.
void tnp::ProbeFlag::fill | ( | const reco::CandidateBaseRef & | probe | ) | const |
To be called for each item.
Definition at line 25 of file BaseTreeFiller.cc.
References nano_mu_local_reco_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 15 of file BaseTreeFiller.cc.
References mps_fire::i, iEvent, and dqmiodumpmetadata::n.
|
inline |
name
Definition at line 111 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 129 of file BaseTreeFiller.h.
|
private |
true if it's an external Candidate View, false if it's a StringParser cut
Definition at line 126 of file BaseTreeFiller.h.
|
private |
the name of the variable, which becomes the ROOT branch name
Definition at line 121 of file BaseTreeFiller.h.
Referenced by name().
|
mutableprivate |
the handle to keep the refs to the passing probes
Definition at line 135 of file BaseTreeFiller.h.
|
private |
the external collection
Definition at line 133 of file BaseTreeFiller.h.
|
mutableprivate |
the place where we store the value, and that ROOT uses to fill the tree
Definition at line 123 of file BaseTreeFiller.h.
Referenced by address().