#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 | |
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 () noexcept |
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... | |
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 : 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 224 of file CosmicRateAnalyzer.cc.
References fs, TFileService::kSharedResource, TFileService::make(), nTotalEvents, nTotalTracks, treeCluster, treeEvent, and treeRun.
|
override |
Definition at line 243 of file CosmicRateAnalyzer.cc.
|
overrideprivatevirtual |
Implements edm::one::EDAnalyzerBase.
Definition at line 274 of file CosmicRateAnalyzer.cc.
References edm::RunBase::beginTime(), charge, chi2, chi2_ndof, ClearInEventLoop(), clustercollectionToken_, gather_cfg::cout, d0, DetectorID, DTtime, dz, edm::RunBase::endTime(), eta, events, edm::Event::getByToken(), edm::EventSetup::getData(), edm::Event::getRun(), hit_BPIX, hit_BPIX_layer1, hit_BPIX_layer2, hit_BPIX_layer3, hit_BPIX_layer4, hit_FPIX, hit_FPIX_disk1, hit_FPIX_disk1_minus, hit_FPIX_disk1_plus, hit_FPIX_disk2, hit_FPIX_disk2_minus, hit_FPIX_disk2_plus, hit_FPIX_disk3, hit_FPIX_disk3_minus, hit_FPIX_disk3_plus, hit_PIX, hit_Total, mps_fire::i, lastrunnum, lastruntime, magField, magFieldToken_, HLT_FULL_cff::magneticField, muonTags_, nh_BPIX, nh_FPIX, nh_PIXEL, nh_TEC, nh_TIB, nh_TID, nh_TOB, nHits_PIXEL, nTotalEvents, nTotalTracks, ntrk, ntrk_runnum, nvh, p, phi, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, pt, edm::RunBase::run(), stampToReal(), DetId::subdetId(), SiStripDetId::TEC, theta, SiStripDetId::TIB, SiStripDetId::TID, 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 515 of file CosmicRateAnalyzer.cc.
References charge, chi2, chi2_ndof, d0, DetectorID, DTtime, dz, eta, magField, nh_BPIX, nh_FPIX, nh_PIXEL, nh_TEC, nh_TIB, nh_TID, nh_TOB, ntrk, number_of_events, number_of_hits_BPIX, number_of_hits_BPIX_layer1, number_of_hits_BPIX_layer2, number_of_hits_BPIX_layer3, number_of_hits_BPIX_layer4, number_of_hits_FPIX, number_of_hits_FPIX_disk1, number_of_hits_FPIX_disk1_minus, number_of_hits_FPIX_disk1_plus, number_of_hits_FPIX_disk2, number_of_hits_FPIX_disk2_minus, number_of_hits_FPIX_disk2_plus, number_of_hits_FPIX_disk3, number_of_hits_FPIX_disk3_minus, number_of_hits_FPIX_disk3_plus, number_of_hits_PIX, number_of_hits_Total, 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 586 of file CosmicRateAnalyzer.cc.
References events, hit_BPIX, hit_BPIX_layer1, hit_BPIX_layer2, hit_BPIX_layer3, hit_BPIX_layer4, hit_FPIX, hit_FPIX_disk1, hit_FPIX_disk1_minus, hit_FPIX_disk1_plus, hit_FPIX_disk2, hit_FPIX_disk2_minus, hit_FPIX_disk2_plus, hit_FPIX_disk3, hit_FPIX_disk3_minus, hit_FPIX_disk3_plus, hit_PIX, hit_Total, 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 580 of file CosmicRateAnalyzer.cc.
References gather_cfg::cout, nTotalEvents, and nTotalTracks.
Referenced by o2olib.O2ORunMgr::executeJob().
|
overrideprivate |
Definition at line 626 of file CosmicRateAnalyzer.cc.
References events, hit_BPIX, hit_BPIX_layer1, hit_BPIX_layer2, hit_BPIX_layer3, hit_BPIX_layer4, hit_FPIX, hit_FPIX_disk1, hit_FPIX_disk1_minus, hit_FPIX_disk1_plus, hit_FPIX_disk2, hit_FPIX_disk2_minus, hit_FPIX_disk2_plus, hit_FPIX_disk3, hit_FPIX_disk3_minus, hit_FPIX_disk3_plus, hit_PIX, hit_Total, lastrunnum, lastruntime, ntrk_runnum, number_of_events, number_of_hits_BPIX, number_of_hits_BPIX_layer1, number_of_hits_BPIX_layer2, number_of_hits_BPIX_layer3, number_of_hits_BPIX_layer4, number_of_hits_FPIX, number_of_hits_FPIX_disk1, number_of_hits_FPIX_disk1_minus, number_of_hits_FPIX_disk1_plus, number_of_hits_FPIX_disk2, number_of_hits_FPIX_disk2_minus, number_of_hits_FPIX_disk2_plus, number_of_hits_FPIX_disk3, number_of_hits_FPIX_disk3_minus, number_of_hits_FPIX_disk3_plus, number_of_hits_PIX, number_of_hits_Total, 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 666 of file CosmicRateAnalyzer.cc.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), submitPVResolutionJobs::desc, HLT_FULL_cff::InputTag, and edm::ParameterSetDescription::setComment().
|
inlinestaticprivate |
Definition at line 90 of file CosmicRateAnalyzer.cc.
References alignCSCRings::e, edm::Timestamp::microsecondOffset(), and edm::Timestamp::unixTime().
Referenced by analyze().
|
private |
Definition at line 186 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginJob(), and ClearInEventLoop().
|
private |
Definition at line 187 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginJob(), and ClearInEventLoop().
|
private |
Definition at line 188 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 193 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 196 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginJob(), and ClearInEventLoop().
|
private |
Definition at line 194 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginJob(), ClearInEventLoop(), Electron.Electron::cutBasedId(), and ntupleDataFormat.Track::dzPull().
|
private |
Definition at line 189 of file CosmicRateAnalyzer.cc.
Referenced by Particle.Particle::__str__(), analyze(), beginJob(), ClearInEventLoop(), Jet.Jet::jetID(), and Jet.Jet::puJetId().
|
private |
Definition at line 111 of file CosmicRateAnalyzer.cc.
Referenced by eventsfwlite.Events::__getattr__(), 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 127 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginRun(), and endRun().
|
private |
Definition at line 128 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginRun(), and endRun().
|
private |
Definition at line 129 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginRun(), and endRun().
|
private |
Definition at line 130 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginRun(), and endRun().
|
private |
Definition at line 131 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginRun(), and endRun().
|
private |
Definition at line 132 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginRun(), and endRun().
|
private |
Definition at line 133 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginRun(), and endRun().
|
private |
Definition at line 139 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginRun(), and endRun().
|
private |
Definition at line 136 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginRun(), and endRun().
|
private |
Definition at line 134 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginRun(), and endRun().
|
private |
Definition at line 140 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginRun(), and endRun().
|
private |
Definition at line 137 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginRun(), and endRun().
|
private |
Definition at line 135 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginRun(), and endRun().
|
private |
Definition at line 141 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginRun(), and endRun().
|
private |
Definition at line 138 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginRun(), and endRun().
|
private |
Definition at line 126 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginRun(), and endRun().
|
private |
Definition at line 125 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginRun(), and endRun().
|
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 198 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginJob(), and ClearInEventLoop().
|
private |
Definition at line 199 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginJob(), and ClearInEventLoop().
|
private |
Definition at line 197 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginJob(), and ClearInEventLoop().
|
private |
Definition at line 203 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginJob(), and ClearInEventLoop().
|
private |
Definition at line 200 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginJob(), and ClearInEventLoop().
|
private |
Definition at line 202 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginJob(), and ClearInEventLoop().
|
private |
Definition at line 201 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginJob(), and ClearInEventLoop().
|
private |
Definition at line 207 of file CosmicRateAnalyzer.cc.
Referenced by analyze().
|
private |
Definition at line 210 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), CosmicRateAnalyzer(), and endJob().
|
private |
Definition at line 210 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), CosmicRateAnalyzer(), and endJob().
|
private |
Definition at line 144 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 145 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginRun(), and endRun().
|
private |
Definition at line 161 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 168 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 169 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 170 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 171 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 172 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 173 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 174 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 180 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 177 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 175 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 181 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 178 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 176 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 182 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 179 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 167 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 166 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 149 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 152 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 151 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 150 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 153 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 155 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 154 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 157 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 158 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 160 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 159 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 156 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 195 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginJob(), and ClearInEventLoop().
|
private |
Definition at line 192 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginJob(), ClearInEventLoop(), and Electron.Electron::ptErr().
|
private |
Definition at line 191 of file CosmicRateAnalyzer.cc.
Referenced by Particle.Particle::__str__(), analyze(), beginJob(), ClearInEventLoop(), and ntupleDataFormat.Track::phiPull().
|
private |
Definition at line 185 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 163 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 162 of file CosmicRateAnalyzer.cc.
Referenced by beginJob(), and endRun().
|
private |
Definition at line 190 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 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 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 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 121 of file CosmicRateAnalyzer.cc.
Referenced by analyze(), beginRun(), and endRun().
|
private |
Definition at line 122 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 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 143 of file CosmicRateAnalyzer.cc.
Referenced by analyze().