#include <DPGAnalysis/MuonTools/src/MuBaseFlatTableProducer.cc>
Public Member Functions | |
void | beginRun (const edm::Run &run, const edm::EventSetup &config) final |
Configure event setup for each run. More... | |
void | endRun (const edm::Run &, const edm::EventSetup &) final |
Empty, needed by interface. More... | |
MuBaseFlatTableProducer (const edm::ParameterSet &) | |
Constructor. More... | |
void | produce (edm::Event &, const edm::EventSetup &) final |
Fill ntuples event by event. More... | |
Public Member Functions inherited from edm::stream::EDProducer<> | |
EDProducer ()=default | |
EDProducer (const EDProducer &)=delete | |
bool | hasAbilityToProduceInBeginLumis () const final |
bool | hasAbilityToProduceInBeginProcessBlocks () const final |
bool | hasAbilityToProduceInBeginRuns () const final |
bool | hasAbilityToProduceInEndLumis () const final |
bool | hasAbilityToProduceInEndProcessBlocks () const final |
bool | hasAbilityToProduceInEndRuns () const final |
const EDProducer & | operator= (const EDProducer &)=delete |
Protected Member Functions | |
template<typename T > | |
void | addColumn (std::unique_ptr< nanoaod::FlatTable > &table, const std::string name, const std::vector< T > &vec, const std::string descr) |
virtual void | fillTable (edm::Event &ev)=0 |
Fill ntuple. More... | |
virtual void | getFromES (const edm::Run &run, const edm::EventSetup &environment) |
Get info from the ES by run. More... | |
virtual void | getFromES (const edm::EventSetup &environment) |
Get info from the ES for a given event. More... | |
Protected Attributes | |
std::string | m_name |
The label name of the FlatTableProducer. More... | |
Static Protected Attributes | |
static constexpr double | DEFAULT_DOUBLE_VAL {-999.0} |
Definition of default values for float variables. More... | |
static constexpr double | DEFAULT_DOUBLE_VAL_POS {-1.0} |
Definition of default values for positive float variables. More... | |
static constexpr int8_t | DEFAULT_INT8_VAL {-99} |
Definition of default values for int8 variables. More... | |
static constexpr int | DEFAULT_INT_VAL {-999} |
Definition of default values for int variables. More... | |
static constexpr int | DEFAULT_INT_VAL_POS {-1} |
Definition of default values for positive int variables. More... | |
Additional Inherited Members | |
Public Types inherited from edm::stream::EDProducer<> | |
using | CacheTypes = CacheContexts< T... > |
using | GlobalCache = typename CacheTypes::GlobalCache |
using | HasAbility = AbilityChecker< T... > |
using | InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache |
using | LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache |
using | LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache > |
using | LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache |
using | RunCache = typename CacheTypes::RunCache |
using | RunContext = RunContextT< RunCache, GlobalCache > |
using | RunSummaryCache = typename CacheTypes::RunSummaryCache |
Helper class defining the generic interface of a FlatTableProducer
Definition at line 22 of file MuBaseFlatTableProducer.h.
|
explicit |
Constructor.
Definition at line 12 of file MuBaseFlatTableProducer.cc.
References AlCaHLTBitMon_QueryRunRegistry::string.
|
inlineprotected |
Definition at line 65 of file MuBaseFlatTableProducer.h.
References Skims_PA_cff::name, and TableParser::table.
Referenced by MuDTTPGThetaFlatTableProducer::fillTable(), MuDTTPGPhiFlatTableProducer::fillTable(), MuGEMMuonExtTableProducer::fillTable(), MuDTSegmentExtTableProducer::fillTable(), MuDTMuonExtTableProducer::fillTable(), and MuCSCTnPFlatTableProducer::fillTable().
|
final |
Configure event setup for each run.
Definition at line 15 of file MuBaseFlatTableProducer.cc.
References reco_calib_source_client_cfg::environment, getFromES(), and writedatasetfile::run.
|
inlinefinal |
|
protectedpure virtual |
Fill ntuple.
Implemented in MuCSCTnPFlatTableProducer, MuDTMuonExtTableProducer, MuDTSegmentExtTableProducer, MuGEMMuonExtTableProducer, MuDTTPGPhiFlatTableProducer, and MuDTTPGThetaFlatTableProducer.
Referenced by produce().
|
inlineprotectedvirtual |
Get info from the ES by run.
Reimplemented in MuCSCTnPFlatTableProducer, MuDTMuonExtTableProducer, MuDTSegmentExtTableProducer, MuGEMMuonExtTableProducer, and MuDTTPGPhiFlatTableProducer.
Definition at line 41 of file MuBaseFlatTableProducer.h.
Referenced by beginRun(), and produce().
|
inlineprotectedvirtual |
Get info from the ES for a given event.
Reimplemented in MuCSCTnPFlatTableProducer, MuDTSegmentExtTableProducer, and MuGEMMuonExtTableProducer.
Definition at line 44 of file MuBaseFlatTableProducer.h.
|
final |
Fill ntuples event by event.
Definition at line 19 of file MuBaseFlatTableProducer.cc.
References reco_calib_source_client_cfg::environment, makeMEIFBenchmarkPlots::ev, fillTable(), and getFromES().
|
staticprotected |
Definition of default values for float variables.
Definition at line 59 of file MuBaseFlatTableProducer.h.
Referenced by MuGEMMuonExtTableProducer::fillTable(), and MuDTSegmentExtTableProducer::fillTable().
|
staticprotected |
Definition of default values for positive float variables.
Definition at line 62 of file MuBaseFlatTableProducer.h.
|
staticprotected |
Definition of default values for int8 variables.
Definition at line 53 of file MuBaseFlatTableProducer.h.
|
staticprotected |
Definition of default values for int variables.
Definition at line 50 of file MuBaseFlatTableProducer.h.
|
staticprotected |
Definition of default values for positive int variables.
Definition at line 56 of file MuBaseFlatTableProducer.h.
Referenced by MuDTSegmentExtTableProducer::fillTable().
|
protected |
The label name of the FlatTableProducer.
Definition at line 38 of file MuBaseFlatTableProducer.h.
Referenced by MuDTTPGThetaFlatTableProducer::fillTable(), MuDTTPGPhiFlatTableProducer::fillTable(), MuGEMMuonExtTableProducer::fillTable(), MuDTSegmentExtTableProducer::fillTable(), MuDTMuonExtTableProducer::fillTable(), and MuCSCTnPFlatTableProducer::fillTable().