#include <CosmicTrackTool/CosmicRateAnalyzer/plugins/CosmicRateAnalyzer.cc>
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Static Public Member Functions inherited from edm::one::EDAnalyzerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Private Member Functions | |
void | analyze (const edm::Event &, const edm::EventSetup &) override |
void | beginJob () override |
void | beginRun (edm::Run const &, edm::EventSetup const &) override |
void | ClearInEndRun () |
void | ClearInEventLoop () |
void | endJob () override |
void | endRun (edm::Run const &, edm::EventSetup const &) override |
Static Private Member Functions | |
static double | stampToReal (edm::Timestamp time) |
Additional Inherited Members | |
Public Types inherited from edm::one::EDAnalyzerBase | |
typedef EDAnalyzerBase | ModuleType |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Protected Member Functions inherited from edm::EDConsumerBase | |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
template<BranchType B = InEvent> | |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
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<Transition Tr = Transition::Event> | |
constexpr auto | esConsumes () noexcept |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
template<Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag tag) noexcept |
template<Transition Tr = Transition::Event> | |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
Used with EventSetupRecord::doGet. More... | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
Description : This Analyzer creates tuple, having necessary infromation for cosmic track and event rate calculations. Tuple created by this analyzer also have some kinematical information. This tuple is input of some offline macros that make rate plots and kinematical plots.
Implementation : Documentation for running this tool is described in twiki : https://twiki.cern.ch/twiki/bin/view/CMS/TkAlCosmicsRateMonitoring
Definition at line 76 of file CosmicRateAnalyzer.cc.
|
explicit |
Definition at line 164 of file CosmicRateAnalyzer.cc.
References fs, TFileService::kSharedResource, TFileService::make(), treeCluster, treeEvent, and treeRun.
|
override |
Definition at line 177 of file CosmicRateAnalyzer.cc.
|
overrideprivatevirtual |
Implements edm::one::EDAnalyzerBase.
Definition at line 201 of file CosmicRateAnalyzer.cc.
References charge, chi2, chi2_ndof, ClearInEventLoop(), clustercollectionToken_, d0, DetectorID, DTtime, dz, eta, events, edm::EventSetup::get(), get, mps_fire::i, iEvent, lastrunnum, lastruntime, volumeBasedMagneticField_160812_cfi::magfield, muonTags_, ntrk, ntrk_runnum, nvh, p, phi, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, edm::Handle< T >::product(), pt, stampToReal(), DetId::subdetId(), SiStripDetId::TEC, TrackerTopology::tecIsZMinusSide(), theta, SiStripDetId::TIB, SiStripDetId::TID, TrackerTopology::tidIsZMinusSide(), ntuplemaker::time, reco::MuonTime::timeAtIpInOut, SiStripDetId::TOB, track_BPIX, track_FPIX, track_PIXEL, track_TEC, track_TECM, track_TECP, track_TIB, track_TID, track_TIDM, track_TIDP, track_TOB, PDWG_EXOHSCP_cff::tracks, trackTags_, treeCluster, treeEvent, and v_ntrk.
|
overrideprivatevirtual |
Reimplemented from edm::one::EDAnalyzerBase.
Definition at line 379 of file CosmicRateAnalyzer.cc.
References charge, chi2, chi2_ndof, d0, DetectorID, DTtime, dz, eta, ntrk, number_of_events, number_of_tracks, number_of_tracks_BPIX, number_of_tracks_FPIX, number_of_tracks_PIX, number_of_tracks_TEC, number_of_tracks_TECM, number_of_tracks_TECP, number_of_tracks_TIB, number_of_tracks_TID, number_of_tracks_TIDM, number_of_tracks_TIDP, number_of_tracks_TOB, nvh, p, phi, pt, run_time, runnum, theta, treeCluster, treeEvent, and treeRun.
|
overrideprivate |
Definition at line 415 of file CosmicRateAnalyzer.cc.
References events, lastrunnum, lastruntime, ntrk_runnum, track_BPIX, track_FPIX, track_PIXEL, track_TEC, track_TECM, track_TECP, track_TIB, track_TID, track_TIDM, track_TIDP, and track_TOB.
|
private |
|
private |
|
overrideprivatevirtual |
Reimplemented from edm::one::EDAnalyzerBase.
Definition at line 412 of file CosmicRateAnalyzer.cc.
Referenced by o2olib.O2ORunMgr::executeJob().
|
overrideprivate |
Definition at line 435 of file CosmicRateAnalyzer.cc.
References events, lastrunnum, lastruntime, ntrk_runnum, number_of_events, number_of_tracks, number_of_tracks_BPIX, number_of_tracks_FPIX, number_of_tracks_PIX, number_of_tracks_TEC, number_of_tracks_TECM, number_of_tracks_TECP, number_of_tracks_TIB, number_of_tracks_TID, number_of_tracks_TIDM, number_of_tracks_TIDP, number_of_tracks_TOB, run_time, runnum, track_BPIX, track_FPIX, track_PIXEL, track_TEC, track_TECM, track_TECP, track_TIB, track_TID, track_TIDM, track_TIDP, track_TOB, and treeRun.
|
static |
Definition at line 455 of file CosmicRateAnalyzer.cc.
References edm::ConfigurationDescriptions::add(), submitPVResolutionJobs::desc, and HLT_FULL_cff::InputTag.
|
inlinestaticprivate |
Definition at line 91 of file CosmicRateAnalyzer.cc.
References MillePedeFileConverter_cfg::e, and ntuplemaker::time.
Referenced by analyze().
|
private |
Definition at line 140 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginJob(), and ClearInEventLoop().
|
private |
Definition at line 141 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginJob(), and ClearInEventLoop().
|
private |
Definition at line 142 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginJob(), and ClearInEventLoop().
|
private |
Definition at line 96 of file CosmicRateAnalyzer.cc.
Referenced by analyze().
|
private |
Definition at line 147 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginJob(), and ClearInEventLoop().
|
private |
Definition at line 102 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 150 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginJob(), and ClearInEventLoop().
|
private |
Definition at line 148 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginJob(), ClearInEventLoop(), Electron.Electron::cutBasedId(), and ntupleDataFormat.Track::dzPull().
|
private |
Definition at line 143 of file CosmicRateAnalyzer.cc.
Referenced by Particle.Particle::__str__(), analyze(), beginJob(), ClearInEventLoop(), Jet.Jet::jetID(), and Jet.Jet::puJetId().
|
private |
Definition at line 107 of file CosmicRateAnalyzer.cc.
Referenced by eventsfwlite.Events::__getattr__(), eventsfwlite.Events::__getitem__(), eventsfwlite.Events::__len__(), analyze(), beginRun(), endRun(), looper.Looper::loop(), and looper.Looper::process().
|
private |
Definition at line 100 of file CosmicRateAnalyzer.cc.
Referenced by CosmicRateAnalyzer().
|
private |
Definition at line 98 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginRun(), and endRun().
|
private |
Definition at line 99 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginRun(), and endRun().
|
private |
Definition at line 97 of file CosmicRateAnalyzer.cc.
Referenced by analyze().
|
private |
Definition at line 121 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 122 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginRun(), and endRun().
|
private |
Definition at line 136 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 124 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 127 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 126 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 125 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 128 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 130 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 129 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 132 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 133 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 135 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 134 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 131 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 149 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginJob(), and ClearInEventLoop().
|
private |
Definition at line 146 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginJob(), ClearInEventLoop(), and Electron.Electron::ptErr().
|
private |
Definition at line 145 of file CosmicRateAnalyzer.cc.
Referenced by Particle.Particle::__str__(), analyze(), beginJob(), ClearInEventLoop(), and ntupleDataFormat.Track::phiPull().
|
private |
Definition at line 139 of file CosmicRateAnalyzer.cc.
Referenced by Particle.Particle::__str__(), ZMuMuRochCorAnalyzer.DiMuon::__str__(), DiObject.DiMuon::__str__(), analyze(), beginJob(), Photon.Photon::calScaledIsoValueExp(), Photon.Photon::calScaledIsoValueLin(), Photon.Photon::calScaledIsoValueQuadr(), ClearInEventLoop(), Electron.Electron::mvaIDLoose(), Electron.Electron::mvaIDRun2(), Electron.Electron::mvaIDTight(), Electron.Electron::ptErr(), ntupleDataFormat.Track::ptPull(), Lepton.Lepton::relIso(), Lepton.Lepton::relIsoFromEA(), Lepton.Lepton::relIsoR(), and Jet.Jet::setCorrP4().
|
private |
Definition at line 138 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 137 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 144 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginJob(), ClearInEventLoop(), and Tau.Tau::zImpact().
|
private |
Definition at line 108 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginRun(), and endRun().
|
private |
Definition at line 109 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginRun(), and endRun().
|
private |
Definition at line 110 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginRun(), and endRun().
|
private |
Definition at line 111 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginRun(), and endRun().
|
private |
Definition at line 112 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginRun(), and endRun().
|
private |
Definition at line 113 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginRun(), and endRun().
|
private |
Definition at line 115 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginRun(), and endRun().
|
private |
Definition at line 116 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginRun(), and endRun().
|
private |
Definition at line 117 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginRun(), and endRun().
|
private |
Definition at line 118 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginRun(), and endRun().
|
private |
Definition at line 114 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginRun(), and endRun().
|
private |
Definition at line 95 of file CosmicRateAnalyzer.cc.
Referenced by analyze().
|
private |
Definition at line 105 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginJob(), and CosmicRateAnalyzer().
|
private |
Definition at line 103 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginJob(), and CosmicRateAnalyzer().
|
private |
Definition at line 104 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), CosmicRateAnalyzer(), and endRun().
|
private |
Definition at line 120 of file CosmicRateAnalyzer.cc.
Referenced by analyze().