#include <L1Trigger/L1TNtuples/src/L1JetRecoTreeProducer.cc>
Public Attributes | |
L1Analysis::L1AnalysisRecoJetDataFormat * | jet_data |
L1Analysis::L1AnalysisRecoMetDataFormat * | met_data |
Private Member Functions | |
void | analyze (const edm::Event &, const edm::EventSetup &) override |
void | beginJob (void) override |
bool | caloJetID (const reco::CaloJet &jet) |
void | doCaloJetCorr (edm::Handle< reco::CaloJetCollection > caloJets, edm::Handle< reco::JetCorrector > caloJetCorr) |
void | doCaloJets (edm::Handle< reco::CaloJetCollection > caloJets) |
void | doCaloMet (edm::Handle< reco::CaloMETCollection > caloMet) |
void | doCaloMetBE (edm::Handle< reco::CaloMETCollection > caloMetBE) |
void | doPFJetCorr (edm::Handle< reco::PFJetCollection > pfJets, edm::Handle< reco::JetCorrector > pfJetCorr) |
void | doPFJets (edm::Handle< reco::PFJetCollection > pfJets) |
void | doPFMet (edm::Handle< reco::PFMETCollection > pfMet) |
void | doPFMetNoMu (edm::Handle< reco::PFMETCollection > pfMet, edm::Handle< reco::MuonCollection >) |
void | endJob () override |
bool | pfJetID (const reco::PFJet &jet) |
Private Attributes | |
edm::EDGetTokenT< reco::JetCorrector > | caloJECToken_ |
bool | caloJetCorrMissing_ |
bool | caloJetIDMissing_ |
edm::EDGetTokenT< edm::ValueMap< reco::JetID > > | caloJetIDToken_ |
bool | caloJetsMissing_ |
edm::EDGetTokenT< reco::CaloJetCollection > | caloJetToken_ |
bool | caloMetBEMissing_ |
edm::EDGetTokenT< reco::CaloMETCollection > | caloMetBEToken_ |
bool | caloMetMissing_ |
edm::EDGetTokenT< reco::CaloMETCollection > | caloMetToken_ |
double | jetetaMax_ |
double | jetptThreshold_ |
unsigned int | maxCl_ |
unsigned int | maxJet_ |
unsigned int | maxTrk_ |
unsigned int | maxVtx_ |
bool | muonsMissing_ |
edm::EDGetTokenT< reco::MuonCollection > | muonToken_ |
edm::EDGetTokenT< reco::JetCorrector > | pfJECToken_ |
bool | pfJetCorrMissing_ |
bool | pfJetsMissing_ |
edm::EDGetTokenT< reco::PFJetCollection > | pfJetToken_ |
bool | pfMetMissing_ |
edm::EDGetTokenT< reco::PFMETCollection > | pfMetToken_ |
TTree * | tree_ |
Additional Inherited Members | |
Public Types inherited from edm::one::EDAnalyzerBase | |
typedef EDAnalyzerBase | ModuleType |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions inherited from edm::one::EDAnalyzerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
template<BranchType B = InEvent> | |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
template<Transition Tr = Transition::Event> | |
constexpr auto | esConsumes () |
template<Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag tag) |
template<Transition Tr = Transition::Event> | |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
Used with EventSetupRecord::doGet. More... | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
void | resetItemsToGetFrom (BranchType iType) |
Description: Produces tree containing reco quantities
Definition at line 58 of file L1JetRecoTreeProducer.cc.
|
explicit |
Definition at line 122 of file L1JetRecoTreeProducer.cc.
References caloJECToken_, caloJetIDToken_, caloJetToken_, caloMetBEToken_, caloMetToken_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), HLT_2022v12_cff::InputTag, jet_data, jetetaMax_, jetptThreshold_, TFileService::kSharedResource, TFileService::make(), maxJet_, met_data, muonToken_, pfJECToken_, pfJetToken_, pfMetToken_, and tree_.
|
override |
Definition at line 167 of file L1JetRecoTreeProducer.cc.
|
overrideprivatevirtual |
Implements edm::one::EDAnalyzerBase.
Definition at line 177 of file L1JetRecoTreeProducer.cc.
References caloJECToken_, caloJetCorrMissing_, caloJetIDMissing_, caloJetIDToken_, isolatedTracks_cfi::caloJets, caloJetsMissing_, caloJetToken_, heavyionUCCDQM_cfi::caloMet, CaloMET_cfi::caloMetBE, caloMetBEMissing_, caloMetBEToken_, caloMetMissing_, caloMetToken_, doCaloJetCorr(), doCaloJets(), doCaloMet(), doCaloMetBE(), doPFJetCorr(), doPFJets(), doPFMet(), doPFMetNoMu(), iEvent, edm::HandleBase::isValid(), jet_data, met_data, PDWG_BPHSkim_cff::muons, muonsMissing_, muonToken_, L1Analysis::L1AnalysisRecoJetDataFormat::nCaloJets, L1Analysis::L1AnalysisRecoJetDataFormat::nJets, pfJECToken_, pfJetCorrMissing_, pfJetBenchmark_cfi::pfJets, pfJetsMissing_, pfJetToken_, RecoPFMET_cff::pfMet, pfMetMissing_, pfMetToken_, L1Analysis::L1AnalysisRecoMetDataFormat::Reset(), L1Analysis::L1AnalysisRecoJetDataFormat::Reset(), and tree_.
|
overrideprivatevirtual |
Reimplemented from edm::one::EDAnalyzerBase.
Definition at line 524 of file L1JetRecoTreeProducer.cc.
|
private |
Definition at line 517 of file L1JetRecoTreeProducer.cc.
References createJobs::tmp.
Referenced by doCaloJetCorr(), and doCaloJets().
|
private |
Definition at line 404 of file L1JetRecoTreeProducer.cc.
References funct::abs(), L1Analysis::L1AnalysisRecoJetDataFormat::caloCorrFactor, L1Analysis::L1AnalysisRecoJetDataFormat::caloEtCorr, L1Analysis::L1AnalysisRecoMetDataFormat::caloHt, caloJetID(), caloJetIDMissing_, isolatedTracks_cfi::caloJets, reco::JetCorrector::correction(), jet_data, jetetaMax_, jetptThreshold_, maxJet_, met_data, and edm::Handle< T >::product().
Referenced by analyze().
|
private |
Definition at line 306 of file L1JetRecoTreeProducer.cc.
References L1Analysis::L1AnalysisRecoJetDataFormat::caloE, L1Analysis::L1AnalysisRecoJetDataFormat::caloEt, L1Analysis::L1AnalysisRecoJetDataFormat::caloEta, caloJetID(), caloJetIDMissing_, isolatedTracks_cfi::caloJets, L1Analysis::L1AnalysisRecoJetDataFormat::caloPhi, L1Analysis::L1AnalysisRecoJetDataFormat::eEmEB, L1Analysis::L1AnalysisRecoJetDataFormat::eEmEE, L1Analysis::L1AnalysisRecoJetDataFormat::eEMF, L1Analysis::L1AnalysisRecoJetDataFormat::eEmHF, L1Analysis::L1AnalysisRecoJetDataFormat::eHadHB, L1Analysis::L1AnalysisRecoJetDataFormat::eHadHE, L1Analysis::L1AnalysisRecoJetDataFormat::eHadHF, L1Analysis::L1AnalysisRecoJetDataFormat::eHadHO, L1Analysis::L1AnalysisRecoJetDataFormat::eMaxEcalTow, L1Analysis::L1AnalysisRecoJetDataFormat::eMaxHcalTow, jet_data, maxJet_, L1Analysis::L1AnalysisRecoJetDataFormat::n60, L1Analysis::L1AnalysisRecoJetDataFormat::nCaloJets, and L1Analysis::L1AnalysisRecoJetDataFormat::towerArea.
Referenced by analyze().
|
private |
Definition at line 471 of file L1JetRecoTreeProducer.cc.
References heavyionUCCDQM_cfi::caloMet, L1Analysis::L1AnalysisRecoMetDataFormat::caloMet, L1Analysis::L1AnalysisRecoMetDataFormat::caloMetPhi, L1Analysis::L1AnalysisRecoMetDataFormat::caloSumEt, reco::LeafCandidate::et(), met_data, reco::LeafCandidate::phi(), and reco::MET::sumEt().
Referenced by analyze().
|
private |
Definition at line 480 of file L1JetRecoTreeProducer.cc.
References CaloMET_cfi::caloMetBE, L1Analysis::L1AnalysisRecoMetDataFormat::caloMetBE, L1Analysis::L1AnalysisRecoMetDataFormat::caloMetPhiBE, L1Analysis::L1AnalysisRecoMetDataFormat::caloSumEtBE, reco::LeafCandidate::et(), met_data, reco::LeafCandidate::phi(), and reco::MET::sumEt().
Referenced by analyze().
|
private |
Definition at line 369 of file L1JetRecoTreeProducer.cc.
References funct::abs(), reco::JetCorrector::correction(), L1Analysis::L1AnalysisRecoJetDataFormat::corrFactor, L1Analysis::L1AnalysisRecoJetDataFormat::etCorr, L1Analysis::L1AnalysisRecoMetDataFormat::Ht, jet_data, jetetaMax_, jetptThreshold_, maxJet_, met_data, L1Analysis::L1AnalysisRecoMetDataFormat::mHt, L1Analysis::L1AnalysisRecoMetDataFormat::mHtPhi, pfJetID(), pfJetBenchmark_cfi::pfJets, and edm::Handle< T >::product().
Referenced by analyze().
|
private |
Definition at line 334 of file L1JetRecoTreeProducer.cc.
References L1Analysis::L1AnalysisRecoJetDataFormat::cemef, L1Analysis::L1AnalysisRecoJetDataFormat::chef, L1Analysis::L1AnalysisRecoJetDataFormat::chMult, L1Analysis::L1AnalysisRecoJetDataFormat::cmef, L1Analysis::L1AnalysisRecoJetDataFormat::cMult, L1Analysis::L1AnalysisRecoJetDataFormat::e, L1Analysis::L1AnalysisRecoJetDataFormat::eef, L1Analysis::L1AnalysisRecoJetDataFormat::elMult, L1Analysis::L1AnalysisRecoJetDataFormat::et, L1Analysis::L1AnalysisRecoJetDataFormat::eta, L1Analysis::L1AnalysisRecoJetDataFormat::hfemef, L1Analysis::L1AnalysisRecoJetDataFormat::hfemMult, L1Analysis::L1AnalysisRecoJetDataFormat::hfhef, L1Analysis::L1AnalysisRecoJetDataFormat::hfhMult, jet_data, maxJet_, L1Analysis::L1AnalysisRecoJetDataFormat::mef, L1Analysis::L1AnalysisRecoJetDataFormat::muMult, L1Analysis::L1AnalysisRecoJetDataFormat::nemef, L1Analysis::L1AnalysisRecoJetDataFormat::nhef, L1Analysis::L1AnalysisRecoJetDataFormat::nhMult, L1Analysis::L1AnalysisRecoJetDataFormat::nJets, L1Analysis::L1AnalysisRecoJetDataFormat::nMult, L1Analysis::L1AnalysisRecoJetDataFormat::pef, pfJetID(), pfJetBenchmark_cfi::pfJets, L1Analysis::L1AnalysisRecoJetDataFormat::phi, and L1Analysis::L1AnalysisRecoJetDataFormat::phMult.
Referenced by analyze().
|
private |
Definition at line 429 of file L1JetRecoTreeProducer.cc.
References reco::LeafCandidate::et(), L1Analysis::L1AnalysisRecoMetDataFormat::met, met_data, L1Analysis::L1AnalysisRecoMetDataFormat::metPhi, L1Analysis::L1AnalysisRecoMetDataFormat::metPx, L1Analysis::L1AnalysisRecoMetDataFormat::metPy, RecoPFMET_cff::pfMet, reco::LeafCandidate::phi(), reco::LeafCandidate::px(), reco::LeafCandidate::py(), reco::MET::sumEt(), and L1Analysis::L1AnalysisRecoMetDataFormat::sumEt.
Referenced by analyze().
|
private |
Definition at line 440 of file L1JetRecoTreeProducer.cc.
References reco::LeafCandidate::et(), met_data, PDWG_BPHSkim_cff::muons, RecoPFMET_cff::pfMet, L1Analysis::L1AnalysisRecoMetDataFormat::pfMetNoMu, L1Analysis::L1AnalysisRecoMetDataFormat::pfMetNoMuPhi, L1Analysis::L1AnalysisRecoMetDataFormat::pfMetNoMuPx, L1Analysis::L1AnalysisRecoMetDataFormat::pfMetNoMuPy, reco::LeafCandidate::phi(), reco::LeafCandidate::px(), reco::LeafCandidate::py(), and reco::LeafCandidate::setP4().
Referenced by analyze().
|
overrideprivatevirtual |
Reimplemented from edm::one::EDAnalyzerBase.
Definition at line 527 of file L1JetRecoTreeProducer.cc.
|
private |
Definition at line 489 of file L1JetRecoTreeProducer.cc.
References funct::abs(), metsig::jet, and createJobs::tmp.
Referenced by doPFJetCorr(), and doPFJets().
|
private |
Definition at line 94 of file L1JetRecoTreeProducer.cc.
Referenced by analyze(), and L1JetRecoTreeProducer().
|
private |
Definition at line 112 of file L1JetRecoTreeProducer.cc.
Referenced by analyze().
|
private |
Definition at line 114 of file L1JetRecoTreeProducer.cc.
Referenced by analyze(), doCaloJetCorr(), and doCaloJets().
|
private |
Definition at line 92 of file L1JetRecoTreeProducer.cc.
Referenced by analyze(), and L1JetRecoTreeProducer().
|
private |
Definition at line 113 of file L1JetRecoTreeProducer.cc.
Referenced by analyze().
|
private |
Definition at line 91 of file L1JetRecoTreeProducer.cc.
Referenced by analyze(), and L1JetRecoTreeProducer().
|
private |
Definition at line 117 of file L1JetRecoTreeProducer.cc.
Referenced by analyze().
|
private |
Definition at line 98 of file L1JetRecoTreeProducer.cc.
Referenced by analyze(), and L1JetRecoTreeProducer().
|
private |
Definition at line 116 of file L1JetRecoTreeProducer.cc.
Referenced by analyze().
|
private |
Definition at line 97 of file L1JetRecoTreeProducer.cc.
Referenced by analyze(), and L1JetRecoTreeProducer().
L1Analysis::L1AnalysisRecoJetDataFormat* L1JetRecoTreeProducer::jet_data |
Definition at line 82 of file L1JetRecoTreeProducer.cc.
Referenced by analyze(), doCaloJetCorr(), doCaloJets(), doPFJetCorr(), doPFJets(), and L1JetRecoTreeProducer().
|
private |
Definition at line 105 of file L1JetRecoTreeProducer.cc.
Referenced by doCaloJetCorr(), doPFJetCorr(), and L1JetRecoTreeProducer().
|
private |
Definition at line 104 of file L1JetRecoTreeProducer.cc.
Referenced by doCaloJetCorr(), doPFJetCorr(), and L1JetRecoTreeProducer().
|
private |
Definition at line 106 of file L1JetRecoTreeProducer.cc.
|
private |
Definition at line 107 of file L1JetRecoTreeProducer.cc.
Referenced by doCaloJetCorr(), doCaloJets(), doPFJetCorr(), doPFJets(), and L1JetRecoTreeProducer().
|
private |
Definition at line 109 of file L1JetRecoTreeProducer.cc.
|
private |
Definition at line 108 of file L1JetRecoTreeProducer.cc.
L1Analysis::L1AnalysisRecoMetDataFormat* L1JetRecoTreeProducer::met_data |
Definition at line 83 of file L1JetRecoTreeProducer.cc.
Referenced by analyze(), doCaloJetCorr(), doCaloMet(), doCaloMetBE(), doPFJetCorr(), doPFMet(), doPFMetNoMu(), and L1JetRecoTreeProducer().
|
private |
Definition at line 119 of file L1JetRecoTreeProducer.cc.
Referenced by analyze().
|
private |
Definition at line 100 of file L1JetRecoTreeProducer.cc.
Referenced by analyze(), and L1JetRecoTreeProducer().
|
private |
Definition at line 93 of file L1JetRecoTreeProducer.cc.
Referenced by analyze(), and L1JetRecoTreeProducer().
|
private |
Definition at line 111 of file L1JetRecoTreeProducer.cc.
Referenced by analyze().
|
private |
Definition at line 103 of file L1JetRecoTreeProducer.cc.
Referenced by analyze().
|
private |
Definition at line 90 of file L1JetRecoTreeProducer.cc.
Referenced by analyze(), and L1JetRecoTreeProducer().
|
private |
Definition at line 115 of file L1JetRecoTreeProducer.cc.
Referenced by analyze().
|
private |
Definition at line 96 of file L1JetRecoTreeProducer.cc.
Referenced by analyze(), and L1JetRecoTreeProducer().
|
private |
Definition at line 87 of file L1JetRecoTreeProducer.cc.
Referenced by analyze(), and L1JetRecoTreeProducer().