#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::InputTag &src) | |
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::InputTag | src_ |
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 81 of file BaseTreeFiller.h.
|
inline |
Create a ProbeFlag to be evaluated on the fly from a string cut.
Definition at line 84 of file BaseTreeFiller.h.
|
inline |
Create a ProbeFlag to be read from a ValueMap.
Definition at line 88 of file BaseTreeFiller.h.
tnp::ProbeFlag::~ProbeFlag | ( | ) |
|
inline |
Addess for ROOT Branch.
Definition at line 95 of file BaseTreeFiller.h.
References value_.
void tnp::ProbeFlag::fill | ( | const reco::CandidateBaseRef & | probe | ) | const |
To be called for each item.
Definition at line 33 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 23 of file BaseTreeFiller.cc.
References edm::Event::getByLabel(), i, and n.
|
inline |
name
Definition at line 98 of file BaseTreeFiller.h.
References name_.
Referenced by cuy.divideElement::__init__(), cuy.plotElement::__init__(), cuy.additionElement::__init__(), cuy.superimposeElement::__init__(), cuy.graphElement::__init__(), and BeautifulSoup.Tag::_invert().
|
private |
implementation of the cut using a string selector
Definition at line 116 of file BaseTreeFiller.h.
|
private |
true if it's an external Candidate View, false if it's a StringParser cut
Definition at line 113 of file BaseTreeFiller.h.
|
private |
the name of the variable, which becomes the ROOT branch name
Definition at line 108 of file BaseTreeFiller.h.
Referenced by name().
|
mutableprivate |
the handle to keep the refs to the passing probes
Definition at line 122 of file BaseTreeFiller.h.
|
private |
the external collection
Definition at line 120 of file BaseTreeFiller.h.
|
mutableprivate |
the place where we store the value, and that ROOT uses to fill the tree
Definition at line 110 of file BaseTreeFiller.h.
Referenced by address().