#include <DPGAnalysis/MuonTools/plugins/MuDTMuonExtTableProducer.cc>
Public Member Functions | |
MuDTMuonExtTableProducer (const edm::ParameterSet &) | |
Constructor. More... | |
Public Member Functions inherited from MuBaseFlatTableProducer | |
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 |
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &) |
Fill descriptors. More... | |
Protected Member Functions | |
void | fillTable (edm::Event &) final |
Fill tree branches for a given events. More... | |
void | getFromES (const edm::Run &, const edm::EventSetup &) final |
Get info from the ES by run. More... | |
Protected Member Functions inherited from MuBaseFlatTableProducer | |
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 | getFromES (const edm::EventSetup &environment) |
Get info from the ES for a given event. More... | |
Private Member Functions | |
bool | hasTrigger (std::vector< int > &, const trigger::TriggerObjectCollection &, edm::Handle< trigger::TriggerEvent > &, const reco::Muon &) |
Private Attributes | |
nano_mu::ESTokenHandle< DTGeometry, MuonGeometryRecord, edm::Transition::BeginRun > | m_dtGeometry |
DT Geometry. More... | |
nano_mu::EDTokenHandle< DTRecSegment4DCollection > | m_dtSegmentToken |
bool | m_fillMatches |
Fill matches table. More... | |
HLTConfigProvider | m_hltConfig |
HLT config provider. More... | |
std::vector< int > | m_isoTrigIndices |
std::string | m_isoTrigName |
nano_mu::EDTokenHandle< edm::View< reco::Muon > > | m_muToken |
Tokens. More... | |
nano_mu::EDTokenHandle< trigger::TriggerEvent > | m_trigEventToken |
std::vector< int > | m_trigIndices |
Indices of the triggers used by muon filler for trigger matching. More... | |
std::string | m_trigName |
Name of the triggers used by muon filler for trigger matching. More... | |
nano_mu::EDTokenHandle< edm::TriggerResults > | m_trigResultsToken |
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 |
Protected Attributes inherited from MuBaseFlatTableProducer | |
std::string | m_name |
The label name of the FlatTableProducer. More... | |
Static Protected Attributes inherited from MuBaseFlatTableProducer | |
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... | |
Helper class : the muon filler
Definition at line 47 of file MuDTMuonExtTableProducer.cc.
MuDTMuonExtTableProducer::MuDTMuonExtTableProducer | ( | const edm::ParameterSet & | config | ) |
Constructor.
Definition at line 93 of file MuDTMuonExtTableProducer.cc.
References DiMuonV_cfg::config.
|
static |
Fill descriptors.
Definition at line 110 of file MuDTMuonExtTableProducer.cc.
References edm::ConfigurationDescriptions::addWithDefaultLabel(), submitPVResolutionJobs::desc, and AlCaHLTBitMon_QueryRunRegistry::string.
|
finalprotectedvirtual |
Fill tree branches for a given events.
Implements MuBaseFlatTableProducer.
Definition at line 154 of file MuDTMuonExtTableProducer.cc.
References funct::abs(), MuBaseFlatTableProducer::addColumn(), DTGeometry::chamber(), nano_mu::EDTokenHandle< T >::conditionalGet(), hcalRecHitTable_cff::detId, MuonSubdetId::DT, makeMEIFBenchmarkPlots::ev, hasTrigger(), m_dtGeometry, m_dtSegmentToken, m_fillMatches, m_isoTrigIndices, m_muToken, MuBaseFlatTableProducer::m_name, m_trigEventToken, m_trigIndices, m_trigResultsToken, match(), eostools::move(), DetId::Muon, DiMuonV_cfg::muons, custom_jme_cff::nMuons, TableParser::table, PDWG_DiPhoton_SD_cff::triggerEvent, triggerMatchMonitor_cfi::triggerObjects, triggerResults, and findQualityFiles::v.
|
finalprotectedvirtual |
Get info from the ES by run.
Reimplemented from MuBaseFlatTableProducer.
Definition at line 127 of file MuDTMuonExtTableProducer.cc.
References reco_calib_source_client_cfg::environment, nano_mu::ESTokenHandle< T, R, TR >::getFromES(), HLTConfigProvider::init(), m_dtGeometry, m_hltConfig, m_isoTrigIndices, m_isoTrigName, m_trigIndices, m_trigName, hltMonBTagIPClient_cfi::pathName, writedatasetfile::run, HLTConfigProvider::size(), simpleEdmComparison::tName, and HLTConfigProvider::triggerName().
|
private |
Definition at line 374 of file MuDTMuonExtTableProducer.cc.
References eleIsoSequence_cff::deltaR, HGC3DClusterGenMatchSelector_cfi::dR, METSignificanceParams_cfi::dRMatch, spr::find(), relativeConstraints::keys, m_hltConfig, HLTConfigProvider::moduleLabels(), B2GTnPMonitor_cfi::trigEvent, and TriggerAnalyzer::trigObjs.
Referenced by fillTable().
|
private |
DT Geometry.
Definition at line 78 of file MuDTMuonExtTableProducer.cc.
Referenced by fillTable(), and getFromES().
|
private |
Definition at line 65 of file MuDTMuonExtTableProducer.cc.
Referenced by fillTable().
|
private |
Fill matches table.
Definition at line 71 of file MuDTMuonExtTableProducer.cc.
Referenced by fillTable().
|
private |
HLT config provider.
Definition at line 81 of file MuDTMuonExtTableProducer.cc.
Referenced by getFromES(), and hasTrigger().
|
private |
Definition at line 85 of file MuDTMuonExtTableProducer.cc.
Referenced by fillTable(), and getFromES().
|
private |
Definition at line 75 of file MuDTMuonExtTableProducer.cc.
Referenced by getFromES().
|
private |
|
private |
Definition at line 68 of file MuDTMuonExtTableProducer.cc.
Referenced by fillTable().
|
private |
Indices of the triggers used by muon filler for trigger matching.
Definition at line 84 of file MuDTMuonExtTableProducer.cc.
Referenced by fillTable(), and getFromES().
|
private |
Name of the triggers used by muon filler for trigger matching.
Definition at line 74 of file MuDTMuonExtTableProducer.cc.
Referenced by getFromES().
|
private |
Definition at line 67 of file MuDTMuonExtTableProducer.cc.
Referenced by fillTable().