#include <BaseTreeFiller.h>
Public Member Functions | |
BaseTreeFiller (const char *name, const edm::ParameterSet config) | |
specify the name of the TTree, and the configuration for it More... | |
BaseTreeFiller (BaseTreeFiller &main, const edm::ParameterSet &iConfig, const std::string &branchNamePrefix) | |
Add branches to an existing TTree managed by another BaseTreeFiller. More... | |
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... | |
void | writeProvenance (const edm::ParameterSet &pset) const |
~BaseTreeFiller () | |
Destructor, does nothing but it's out-of-line as we have complex data members. More... | |
Protected Types | |
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 | |
void | addBranches_ (TTree *tree, const edm::ParameterSet &iConfig, const std::string &branchNamePrefix="") |
Protected Attributes | |
bool | addEventVariablesInfo_ |
Add branches with event variables: met, sum ET, .. etc. More... | |
bool | addRunLumiInfo_ |
Add branches with run and lumisection number. More... | |
uint32_t | event_ |
std::vector< ProbeFlag > | flags_ |
bool | ignoreExceptions_ |
Ignore exceptions when evaluating variables. More... | |
uint32_t | lumi_ |
float | mBSx_ |
float | mBSy_ |
float | mBSz_ |
float | mMET_ |
float | mMETSign_ |
uint32_t | mNPV_ |
float | mpfMET_ |
float | mpfMETSign_ |
float | mpfSumET_ |
float | mPVx_ |
float | mPVy_ |
float | mPVz_ |
float | mSumET_ |
float | mtcMET_ |
float | mtcMETSign_ |
float | mtcSumET_ |
uint32_t | run_ |
TTree * | tree_ |
std::vector< ProbeVariable > | vars_ |
float | weight_ |
WeightMode | weightMode_ |
edm::InputTag | weightSrc_ |
Definition at line 127 of file BaseTreeFiller.h.
|
protected |
How event weights are defined: 'None' = no weights, 'Fixed' = one value specified in cfg file, 'External' = read weight from the event (as double)
Enumerator | |
---|---|
None | |
Fixed | |
External |
Definition at line 156 of file BaseTreeFiller.h.
tnp::BaseTreeFiller::BaseTreeFiller | ( | const char * | name, |
const edm::ParameterSet | config | ||
) |
specify the name of the TTree, and the configuration for it
Definition at line 41 of file BaseTreeFiller.cc.
References event_(), edm::ParameterSet::existsAs(), edm::ParameterSet::getParameter(), TFileDirectory::make(), and mergeVDriftHistosByStation::name.
tnp::BaseTreeFiller::BaseTreeFiller | ( | BaseTreeFiller & | main, |
const edm::ParameterSet & | iConfig, | ||
const std::string & | branchNamePrefix | ||
) |
Add branches to an existing TTree managed by another BaseTreeFiller.
Definition at line 92 of file BaseTreeFiller.cc.
References addBranches_(), and tree_.
tnp::BaseTreeFiller::~BaseTreeFiller | ( | ) |
Destructor, does nothing but it's out-of-line as we have complex data members.
Definition at line 137 of file BaseTreeFiller.cc.
|
protected |
Definition at line 100 of file BaseTreeFiller.cc.
References flags, edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterNamesForType(), and makeLayoutFileForGui::variables.
Referenced by BaseTreeFiller().
void tnp::BaseTreeFiller::fill | ( | const reco::CandidateBaseRef & | probe | ) | const |
To be called once per probe, to fill the values for this probe.
Definition at line 233 of file BaseTreeFiller.cc.
Referenced by tnp::TPTreeFiller::fill().
void tnp::BaseTreeFiller::init | ( | const edm::Event & | iEvent | ) | const |
To be called once per event, to load possible external variables.
*********** store some event variables: MET, SumET ******
///////// Primary vertex //////////////
Definition at line 139 of file BaseTreeFiller.cc.
References SiPixelRawToDigiRegional_cfi::beamSpot, edm::EventID::event(), event_(), edm::Event::getByLabel(), edm::EventBase::id(), edm::EventID::luminosityBlock(), CaloMET_cfi::met, edm::EventID::run(), CommonMethods::weight(), and detailsBasic3DVector::z.
Referenced by tnp::TPTreeFiller::init().
void tnp::BaseTreeFiller::writeProvenance | ( | const edm::ParameterSet & | pset | ) | const |
Write a string dump of this PSet into the TTree header. see macro in test directory for how to retrieve it from the output root file
Definition at line 251 of file BaseTreeFiller.cc.
References edm::ParameterSet::dump(), and list().
|
protected |
Add branches with event variables: met, sum ET, .. etc.
Definition at line 167 of file BaseTreeFiller.h.
|
protected |
Add branches with run and lumisection number.
Definition at line 164 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 174 of file BaseTreeFiller.h.
|
protected |
Definition at line 153 of file BaseTreeFiller.h.
|
protected |
Ignore exceptions when evaluating variables.
Definition at line 161 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 174 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 176 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 176 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 176 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 178 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 178 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 174 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 178 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 178 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 178 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 176 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 176 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 176 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 178 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 178 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 178 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 178 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 174 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 172 of file BaseTreeFiller.h.
Referenced by BaseTreeFiller(), and tnp::TPTreeFiller::TPTreeFiller().
|
protected |
Definition at line 152 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 173 of file BaseTreeFiller.h.
|
protected |
Definition at line 157 of file BaseTreeFiller.h.
|
protected |
Definition at line 158 of file BaseTreeFiller.h.