#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 102 of file BaseTreeFiller.h.
tnp::ProbeFlag::~ProbeFlag | ( | ) |
|
inline |
Addess for ROOT Branch.
Definition at line 109 of file BaseTreeFiller.h.
References value_.
void tnp::ProbeFlag::fill | ( | const reco::CandidateBaseRef & | probe | ) | const |
To be called for each item.
Definition at line 28 of file BaseTreeFiller.cc.
References 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 18 of file BaseTreeFiller.cc.
References edm::Event::getByToken(), i, and gen::n.
|
inline |
name
Definition at line 112 of file BaseTreeFiller.h.
References name_.
Referenced by cuy.divideElement::__init__(), cuy.plotElement::__init__(), cuy.additionElement::__init__(), cuy.superimposeElement::__init__(), cuy.graphElement::__init__(), config.CFG::__str__(), and validation.Sample::digest().
|
private |
implementation of the cut using a string selector
Definition at line 130 of file BaseTreeFiller.h.
|
private |
true if it's an external Candidate View, false if it's a StringParser cut
Definition at line 127 of file BaseTreeFiller.h.
|
private |
the name of the variable, which becomes the ROOT branch name
Definition at line 122 of file BaseTreeFiller.h.
Referenced by name().
|
mutableprivate |
the handle to keep the refs to the passing probes
Definition at line 136 of file BaseTreeFiller.h.
|
private |
the external collection
Definition at line 134 of file BaseTreeFiller.h.
|
mutableprivate |
the place where we store the value, and that ROOT uses to fill the tree
Definition at line 124 of file BaseTreeFiller.h.
Referenced by address().