#include <BaseTreeFiller.h>
Public Member Functions | |
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) | |
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... | |
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... | |
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, edm::ConsumesCollector &iC, const std::string &branchNamePrefix="") |
Definition at line 139 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 178 of file BaseTreeFiller.h.
|
delete |
|
inline |
specify the name of the TTree, and the configuration for it
Definition at line 144 of file BaseTreeFiller.h.
tnp::BaseTreeFiller::BaseTreeFiller | ( | const char * | name, |
const edm::ParameterSet & | config, | ||
edm::ConsumesCollector & | iC | ||
) |
FC (EGM) - add possibility to customize collections (can run other miniAOD)
Definition at line 33 of file BaseTreeFiller.cc.
References edm::ConsumesCollector::consumes(), edm::ParameterSet::existsAs(), compareTotals::fs, edm::ParameterSet::getParameter(), ProducerED_cfi::InputTag, edm::ConsumesCollector::mayConsume(), Skims_PA_cff::name, and None.
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.
Definition at line 133 of file BaseTreeFiller.cc.
References addBranches_(), addRunLumiInfo_, and storePUweight_.
tnp::BaseTreeFiller::~BaseTreeFiller | ( | ) |
Destructor, does nothing but it's out-of-line as we have complex data members.
Definition at line 184 of file BaseTreeFiller.cc.
|
protected |
Definition at line 143 of file BaseTreeFiller.cc.
References edm::ConsumesCollector::consumes(), HLT_2023v12_cff::flags, edm::ParameterSet::getParameter(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, AlCaHLTBitMon_QueryRunRegistry::string, and hcalRecHitTable_cff::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 346 of file BaseTreeFiller.cc.
References RemoveAddSevLevel::flag, and trigObjTnPSource_cfi::var.
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 186 of file BaseTreeFiller.cc.
References funct::abs(), pwdgSkimBPark_cfi::beamSpot, nano_mu_digi_cff::float, LHEEventProduct::hepeup(), mps_fire::i, lhef::HEPEUP::IDUP, iEvent, lhef::HEPEUP::ISTUP, edm::HandleBase::isValid(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, dqmdumpme::k, BTaggingMonitor_cfi::met, lhef::HEPEUP::NUP, LHEEventProduct::originalXWGTUP(), funct::pow(), lhef::HEPEUP::PUP, mathSSE::sqrt(), mps_merge::weight, and LHEEventProduct::weights().
Referenced by tnp::TPTreeFiller::init().
|
delete |
|
inline |
Definition at line 171 of file BaseTreeFiller.h.
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 355 of file BaseTreeFiller.cc.
References muonDTDigis_cfi::pset.
|
protected |
Definition at line 183 of file BaseTreeFiller.h.
|
protected |
Definition at line 182 of file BaseTreeFiller.h.
|
protected |
Definition at line 184 of file BaseTreeFiller.h.
|
protected |
Definition at line 205 of file BaseTreeFiller.h.
|
protected |
Add branches with event variables: met, sum ET, .. etc.
Definition at line 203 of file BaseTreeFiller.h.
|
protected |
Definition at line 204 of file BaseTreeFiller.h.
|
protected |
Add branches with run and lumisection number.
Definition at line 197 of file BaseTreeFiller.h.
Referenced by BaseTreeFiller().
|
protected |
Definition at line 189 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 218 of file BaseTreeFiller.h.
|
protected |
Definition at line 175 of file BaseTreeFiller.h.
|
protected |
Definition at line 185 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 223 of file BaseTreeFiller.h.
|
protected |
Definition at line 180 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 215 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 217 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 221 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 221 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 221 of file BaseTreeFiller.h.
|
protected |
Definition at line 190 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 223 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 223 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 217 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 223 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 223 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 223 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 223 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 221 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 221 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 221 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 223 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 223 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 223 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 223 of file BaseTreeFiller.h.
|
protected |
Definition at line 192 of file BaseTreeFiller.h.
|
protected |
Definition at line 193 of file BaseTreeFiller.h.
|
protected |
Definition at line 194 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 216 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 214 of file BaseTreeFiller.h.
|
protected |
Definition at line 186 of file BaseTreeFiller.h.
|
protected |
Definition at line 188 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 222 of file BaseTreeFiller.h.
|
protected |
Definition at line 187 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 217 of file BaseTreeFiller.h.
|
protected |
Store Pileup weight when running over Monte Carlo.
Definition at line 200 of file BaseTreeFiller.h.
Referenced by BaseTreeFiller().
|
protected |
Definition at line 191 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 214 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 213 of file BaseTreeFiller.h.
Referenced by tnp::TPTreeFiller::TPTreeFiller().
|
mutableprotected |
Definition at line 219 of file BaseTreeFiller.h.
|
protected |
Definition at line 171 of file BaseTreeFiller.h.
|
mutableprotected |
Definition at line 214 of file BaseTreeFiller.h.
|
protected |
Definition at line 179 of file BaseTreeFiller.h.
|
protected |
Definition at line 181 of file BaseTreeFiller.h.