#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 Rate and Event Rate calculations. Tuples created by this analyzer also have some kinematic information. This tuple is input to 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 75 of file CosmicRateAnalyzer.cc.
|
explicit |
Definition at line 172 of file CosmicRateAnalyzer.cc.
References fs, TFileService::kSharedResource, TFileService::make(), treeCluster, treeEvent, and treeRun.
|
override |
Definition at line 188 of file CosmicRateAnalyzer.cc.
|
overrideprivatevirtual |
Implements edm::one::EDAnalyzerBase.
Definition at line 218 of file CosmicRateAnalyzer.cc.
References charge, chi2, chi2_ndof, ClearInEventLoop(), clustercollectionToken_, d0, DetectorID, DTtime, dz, eta, events, edm::EventSetup::getData(), mps_fire::i, iEvent, lastrunnum, lastruntime, magField, magFieldToken_, HLT_FULL_cff::magneticField, muonTags_, nh_BPIX, nh_FPIX, nh_TEC, nh_TIB, nh_TID, nh_TOB, 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(), protons_cff::time, reco::MuonTime::timeAtIpInOut, SiStripDetId::TOB, topoToken_, track_BPIX, track_FPIX, track_PIXEL, track_TEC, track_TECM, track_TECP, track_TIB, track_TID, track_TIDM, track_TIDP, track_TOB, tracks, trackTags_, treeCluster, treeEvent, and v_ntrk.
|
overrideprivatevirtual |
Reimplemented from edm::one::EDAnalyzerBase.
Definition at line 397 of file CosmicRateAnalyzer.cc.
References charge, chi2, chi2_ndof, d0, DetectorID, DTtime, dz, eta, magField, nh_BPIX, nh_FPIX, nh_TEC, nh_TIB, nh_TID, nh_TOB, 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 440 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 437 of file CosmicRateAnalyzer.cc.
Referenced by o2olib.O2ORunMgr::executeJob().
|
overrideprivate |
Definition at line 460 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 480 of file CosmicRateAnalyzer.cc.
References edm::ConfigurationDescriptions::add(), submitPVResolutionJobs::desc, and HLT_FULL_cff::InputTag.
|
inlinestaticprivate |
Definition at line 90 of file CosmicRateAnalyzer.cc.
References MillePedeFileConverter_cfg::e, and protons_cff::time.
Referenced by analyze().
|
private |
Definition at line 142 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginJob(), and ClearInEventLoop().
|
private |
Definition at line 143 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginJob(), and ClearInEventLoop().
|
private |
Definition at line 144 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginJob(), and ClearInEventLoop().
|
private |
Definition at line 98 of file CosmicRateAnalyzer.cc.
Referenced by analyze().
|
private |
Definition at line 149 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginJob(), and ClearInEventLoop().
|
private |
Definition at line 104 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 152 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginJob(), and ClearInEventLoop().
|
private |
Definition at line 150 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginJob(), ClearInEventLoop(), Electron.Electron::cutBasedId(), and ntupleDataFormat.Track::dzPull().
|
private |
Definition at line 145 of file CosmicRateAnalyzer.cc.
Referenced by Particle.Particle::__str__(), analyze(), beginJob(), ClearInEventLoop(), Jet.Jet::jetID(), and Jet.Jet::puJetId().
|
private |
Definition at line 109 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 102 of file CosmicRateAnalyzer.cc.
Referenced by CosmicRateAnalyzer().
|
private |
Definition at line 100 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginRun(), and endRun().
|
private |
Definition at line 101 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginRun(), and endRun().
|
private |
Definition at line 96 of file CosmicRateAnalyzer.cc.
|
private |
Definition at line 101 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 94 of file CosmicRateAnalyzer.cc.
Referenced by analyze().
|
private |
Definition at line 99 of file CosmicRateAnalyzer.cc.
Referenced by analyze().
|
private |
Definition at line 153 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginJob(), and ClearInEventLoop().
|
private |
Definition at line 154 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginJob(), and ClearInEventLoop().
|
private |
Definition at line 158 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginJob(), and ClearInEventLoop().
|
private |
Definition at line 155 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginJob(), and ClearInEventLoop().
|
private |
Definition at line 157 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginJob(), and ClearInEventLoop().
|
private |
Definition at line 156 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginJob(), and ClearInEventLoop().
|
private |
Definition at line 123 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 124 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginRun(), and endRun().
|
private |
Definition at line 138 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 129 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 127 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 132 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 134 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 137 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 136 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 151 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginJob(), and ClearInEventLoop().
|
private |
Definition at line 148 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginJob(), ClearInEventLoop(), and Electron.Electron::ptErr().
|
private |
Definition at line 147 of file CosmicRateAnalyzer.cc.
Referenced by Particle.Particle::__str__(), analyze(), beginJob(), ClearInEventLoop(), and ntupleDataFormat.Track::phiPull().
|
private |
Definition at line 141 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 140 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 139 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 146 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginJob(), ClearInEventLoop(), and Tau.Tau::zImpact().
|
private |
Definition at line 95 of file CosmicRateAnalyzer.cc.
Referenced by analyze().
|
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 114 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 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 119 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginRun(), and endRun().
|
private |
Definition at line 120 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 97 of file CosmicRateAnalyzer.cc.
Referenced by analyze().
|
private |
Definition at line 107 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginJob(), and CosmicRateAnalyzer().
|
private |
Definition at line 105 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginJob(), and CosmicRateAnalyzer().
|
private |
Definition at line 106 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), CosmicRateAnalyzer(), and endRun().
|
private |
Definition at line 122 of file CosmicRateAnalyzer.cc.
Referenced by analyze().