#include <TPTreeFiller.h>
Public Member Functions | |
void | fill (const reco::CandidateBaseRef &probe, double mass, bool mcTrue=false, float mcMass=0.0) const |
void | init (const edm::Event &iEvent) const |
TPTreeFiller (const edm::ParameterSet &config, edm::ConsumesCollector &&iC) | |
TPTreeFiller (const edm::ParameterSet &config, edm::ConsumesCollector &iC) | |
~TPTreeFiller () | |
Public Member Functions inherited from tnp::BaseTreeFiller | |
BaseTreeFiller (BaseTreeFiller &main, const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iC, const std::string &branchNamePrefix) | |
Add branches to an existing TTree managed by another BaseTreeFiller. More... | |
BaseTreeFiller (const BaseTreeFiller &)=delete | |
BaseTreeFiller (const char *name, const edm::ParameterSet &config, edm::ConsumesCollector &&iC) | |
specify the name of the TTree, and the configuration for it More... | |
BaseTreeFiller (const char *name, const edm::ParameterSet &config, edm::ConsumesCollector &iC) | |
void | fill (const reco::CandidateBaseRef &probe) const |
To be called once per probe, to fill the values for this probe. More... | |
void | init (const edm::Event &iEvent) const |
To be called once per event, to load possible external variables. More... | |
BaseTreeFiller & | operator= (const BaseTreeFiller &)=delete |
bool | storePUweight () const |
void | writeProvenance (const edm::ParameterSet &pset) const |
~BaseTreeFiller () | |
Destructor, does nothing but it's out-of-line as we have complex data members. More... | |
Additional Inherited Members | |
Protected Types inherited from tnp::BaseTreeFiller | |
enum | WeightMode { None, Fixed, External } |
How event weights are defined: 'None' = no weights, 'Fixed' = one value specified in cfg file, 'External' = read weight from the event (as double) More... | |
Protected Member Functions inherited from tnp::BaseTreeFiller | |
void | addBranches_ (TTree *tree, const edm::ParameterSet &iConfig, edm::ConsumesCollector &iC, const std::string &branchNamePrefix="") |
Definition at line 7 of file TPTreeFiller.h.
|
inline |
Definition at line 9 of file TPTreeFiller.h.
tnp::TPTreeFiller::TPTreeFiller | ( | const edm::ParameterSet & | config, |
edm::ConsumesCollector & | iC | ||
) |
Definition at line 3 of file TPTreeFiller.cc.
References mass_, mcMass_, mcTrue_, and tnp::BaseTreeFiller::tree_.
tnp::TPTreeFiller::~TPTreeFiller | ( | ) |
Definition at line 15 of file TPTreeFiller.cc.
void tnp::TPTreeFiller::fill | ( | const reco::CandidateBaseRef & | probe, |
double | mass, | ||
bool | mcTrue = false , |
||
float | mcMass = 0.0 |
||
) | const |
Definition at line 19 of file TPTreeFiller.cc.
References tnp::BaseTreeFiller::fill(), EgHLTOffHistBins_cfi::mass, and TagProbeFitTreeAnalyzer_cfi::mcTrue.
void tnp::TPTreeFiller::init | ( | const edm::Event & | iEvent | ) | const |
|
mutableprotected |
extra branch for the mass
Definition at line 19 of file TPTreeFiller.h.
Referenced by TPTreeFiller().
|
mutableprotected |
extra branch for the mc-truth mass
Definition at line 23 of file TPTreeFiller.h.
Referenced by TPTreeFiller().
|
mutableprotected |
extra branch for the mc truth
Definition at line 21 of file TPTreeFiller.h.
Referenced by TPTreeFiller().