#include <L1TGCTClient.h>
Definition at line 18 of file L1TGCTClient.h.
L1TGCTClient::L1TGCTClient | ( | const edm::ParameterSet & | ps | ) |
Constructor.
Definition at line 24 of file L1TGCTClient.cc.
: monitorDir_(ps.getUntrackedParameter<string>("monitorDir","")), counterLS_(0), counterEvt_(0), prescaleLS_(ps.getUntrackedParameter<int>("prescaleLS", -1)), prescaleEvt_(ps.getUntrackedParameter<int>("prescaleEvt", -1)), m_runInEventLoop(ps.getUntrackedParameter<bool>("runInEventLoop", false)), m_runInEndLumi(ps.getUntrackedParameter<bool>("runInEndLumi", false)), m_runInEndRun(ps.getUntrackedParameter<bool>("runInEndRun", false)), m_runInEndJob(ps.getUntrackedParameter<bool>("runInEndJob", false)) { }
L1TGCTClient::~L1TGCTClient | ( | ) | [virtual] |
void L1TGCTClient::analyze | ( | const edm::Event & | e, |
const edm::EventSetup & | c | ||
) | [protected, virtual] |
Analyze.
Implements edm::EDAnalyzer.
Definition at line 76 of file L1TGCTClient.cc.
References m_runInEventLoop, and processHistograms().
{ // there is no loop on events in the offline harvesting step // code here will not be executed offline if (m_runInEventLoop) { processHistograms(); } }
void L1TGCTClient::beginJob | ( | void | ) | [protected, virtual] |
BeginJob.
Reimplemented from edm::EDAnalyzer.
Definition at line 40 of file L1TGCTClient.cc.
References DQMStore::book1D(), dbe_, ETABINS, ETAMAX, ETAMIN, l1GctAllJetsOccEta_, l1GctAllJetsOccPhi_, l1GctCenJetsOccEta_, l1GctCenJetsOccPhi_, l1GctForJetsOccEta_, l1GctForJetsOccPhi_, l1GctIsoEmOccEta_, l1GctIsoEmOccPhi_, l1GctNonIsoEmOccEta_, l1GctNonIsoEmOccPhi_, l1GctTauJetsOccEta_, l1GctTauJetsOccPhi_, monitorDir_, cppFunctionSkipper::operator, PHIBINS, PHIMAX, PHIMIN, and DQMStore::setCurrentFolder().
{ // Get backendinterface dbe_ = Service<DQMStore>().operator->(); // Set to directory with ME in dbe_->setCurrentFolder(monitorDir_); l1GctIsoEmOccEta_ = dbe_->book1D("IsoEmOccEta","ISO EM #eta OCCUPANCY", ETABINS, ETAMIN, ETAMAX); l1GctIsoEmOccPhi_ = dbe_->book1D("IsoEmOccPhi","ISO EM #phi OCCUPANCY", PHIBINS, PHIMIN, PHIMAX); l1GctNonIsoEmOccEta_ = dbe_->book1D("NonIsoEmOccEta","NON-ISO EM #eta OCCUPANCY", ETABINS, ETAMIN, ETAMAX); l1GctNonIsoEmOccPhi_ = dbe_->book1D("NonIsoEmOccPhi","NON-ISO EM #phi OCCUPANCY", PHIBINS, PHIMIN, PHIMAX); l1GctAllJetsOccEta_ = dbe_->book1D("AllJetsOccEta","CENTRAL AND FORWARD JET #eta OCCUPANCY", ETABINS, ETAMIN, ETAMAX); l1GctAllJetsOccPhi_ = dbe_->book1D("AllJetsOccPhi","CENTRAL AND FORWARD JET #phi OCCUPANCY", PHIBINS, PHIMIN, PHIMAX); l1GctCenJetsOccEta_ = dbe_->book1D("CenJetsOccEta","CENTRAL JET #eta OCCUPANCY", ETABINS, ETAMIN, ETAMAX); l1GctCenJetsOccPhi_ = dbe_->book1D("CenJetsOccPhi","CENTRAL JET #phi OCCUPANCY", PHIBINS, PHIMIN, PHIMAX); l1GctForJetsOccEta_ = dbe_->book1D("ForJetsOccEta","FORWARD JET #eta OCCUPANCY", ETABINS, ETAMIN, ETAMAX); l1GctForJetsOccPhi_ = dbe_->book1D("ForJetsOccPhi","FORWARD JET #phi OCCUPANCY", PHIBINS, PHIMIN, PHIMAX); l1GctTauJetsOccEta_ = dbe_->book1D("TauJetsOccEta","TAU JET #eta OCCUPANCY", ETABINS, ETAMIN, ETAMAX); l1GctTauJetsOccPhi_ = dbe_->book1D("TauJetsOccPhi","TAU JET #phi OCCUPANCY", PHIBINS, PHIMIN, PHIMAX); }
void L1TGCTClient::beginLuminosityBlock | ( | const edm::LuminosityBlock & | lumiSeg, |
const edm::EventSetup & | context | ||
) | [protected, virtual] |
void L1TGCTClient::beginRun | ( | const edm::Run & | r, |
const edm::EventSetup & | c | ||
) | [protected, virtual] |
void L1TGCTClient::endJob | ( | void | ) | [protected, virtual] |
Endjob.
Reimplemented from edm::EDAnalyzer.
Definition at line 97 of file L1TGCTClient.cc.
References m_runInEndJob, and processHistograms().
{ if (m_runInEndJob) { processHistograms(); } }
void L1TGCTClient::endLuminosityBlock | ( | const edm::LuminosityBlock & | lumiSeg, |
const edm::EventSetup & | c | ||
) | [protected, virtual] |
DQM Client Diagnostic.
Reimplemented from edm::EDAnalyzer.
Definition at line 66 of file L1TGCTClient.cc.
References m_runInEndLumi, and processHistograms().
{ if (m_runInEndLumi) { processHistograms(); } }
void L1TGCTClient::endRun | ( | const edm::Run & | r, |
const edm::EventSetup & | c | ||
) | [protected, virtual] |
EndRun.
Reimplemented from edm::EDAnalyzer.
Definition at line 88 of file L1TGCTClient.cc.
References m_runInEndRun, and processHistograms().
{ if (m_runInEndRun) { processHistograms(); } }
void L1TGCTClient::makeXProjection | ( | TH2F * | input, |
MonitorElement * | output | ||
) | [private] |
Definition at line 148 of file L1TGCTClient.cc.
References MonitorElement::getNbinsX(), i, and MonitorElement::setBinContent().
Referenced by processHistograms().
void L1TGCTClient::makeYProjection | ( | TH2F * | input, |
MonitorElement * | output | ||
) | [private] |
Definition at line 162 of file L1TGCTClient.cc.
References MonitorElement::getNbinsX(), i, and MonitorElement::setBinContent().
Referenced by processHistograms().
void L1TGCTClient::processHistograms | ( | ) | [private] |
Definition at line 105 of file L1TGCTClient.cc.
References dbe_, DQMStore::get(), MonitorElement::getTH2F(), Input, l1GctAllJetsOccEta_, l1GctAllJetsOccPhi_, l1GctCenJetsOccEta_, l1GctCenJetsOccPhi_, l1GctForJetsOccEta_, l1GctForJetsOccPhi_, l1GctIsoEmOccEta_, l1GctIsoEmOccPhi_, l1GctNonIsoEmOccEta_, l1GctNonIsoEmOccPhi_, l1GctTauJetsOccEta_, l1GctTauJetsOccPhi_, makeXProjection(), makeYProjection(), and NULL.
Referenced by analyze(), endJob(), endLuminosityBlock(), and endRun().
{ MonitorElement* Input; Input = dbe_->get("L1T/L1TGCT/IsoEmOccEtaPhi"); if (Input!=NULL){ makeXProjection(Input->getTH2F(),l1GctIsoEmOccEta_); makeYProjection(Input->getTH2F(),l1GctIsoEmOccPhi_); } Input = dbe_->get("L1T/L1TGCT/NonIsoEmOccEtaPhi"); if (Input!=NULL){ makeXProjection(Input->getTH2F(),l1GctNonIsoEmOccEta_); makeYProjection(Input->getTH2F(),l1GctNonIsoEmOccPhi_); } Input = dbe_->get("L1T/L1TGCT/AllJetsOccEtaPhi"); if (Input!=NULL){ makeXProjection(Input->getTH2F(),l1GctAllJetsOccEta_); makeYProjection(Input->getTH2F(),l1GctAllJetsOccPhi_); } Input = dbe_->get("L1T/L1TGCT/CenJetsOccEtaPhi"); if (Input!=NULL){ makeXProjection(Input->getTH2F(),l1GctCenJetsOccEta_); makeYProjection(Input->getTH2F(),l1GctCenJetsOccPhi_); } Input = dbe_->get("L1T/L1TGCT/ForJetsOccEtaPhi"); if (Input!=NULL){ makeXProjection(Input->getTH2F(),l1GctForJetsOccEta_); makeYProjection(Input->getTH2F(),l1GctForJetsOccPhi_); } Input = dbe_->get("L1T/L1TGCT/TauJetsOccEtaPhi"); if (Input!=NULL){ makeXProjection(Input->getTH2F(),l1GctTauJetsOccEta_); makeYProjection(Input->getTH2F(),l1GctTauJetsOccPhi_); } }
int L1TGCTClient::counterEvt_ [private] |
counter
Definition at line 62 of file L1TGCTClient.h.
int L1TGCTClient::counterLS_ [private] |
Definition at line 61 of file L1TGCTClient.h.
DQMStore* L1TGCTClient::dbe_ [private] |
Definition at line 59 of file L1TGCTClient.h.
Referenced by beginJob(), and processHistograms().
MonitorElement* L1TGCTClient::l1GctAllJetsOccEta_ [private] |
Definition at line 77 of file L1TGCTClient.h.
Referenced by beginJob(), and processHistograms().
MonitorElement* L1TGCTClient::l1GctAllJetsOccPhi_ [private] |
Definition at line 78 of file L1TGCTClient.h.
Referenced by beginJob(), and processHistograms().
MonitorElement* L1TGCTClient::l1GctCenJetsOccEta_ [private] |
Definition at line 79 of file L1TGCTClient.h.
Referenced by beginJob(), and processHistograms().
MonitorElement* L1TGCTClient::l1GctCenJetsOccPhi_ [private] |
Definition at line 80 of file L1TGCTClient.h.
Referenced by beginJob(), and processHistograms().
MonitorElement* L1TGCTClient::l1GctForJetsOccEta_ [private] |
Definition at line 81 of file L1TGCTClient.h.
Referenced by beginJob(), and processHistograms().
MonitorElement* L1TGCTClient::l1GctForJetsOccPhi_ [private] |
Definition at line 82 of file L1TGCTClient.h.
Referenced by beginJob(), and processHistograms().
MonitorElement* L1TGCTClient::l1GctIsoEmOccEta_ [private] |
Definition at line 73 of file L1TGCTClient.h.
Referenced by beginJob(), and processHistograms().
MonitorElement* L1TGCTClient::l1GctIsoEmOccPhi_ [private] |
Definition at line 74 of file L1TGCTClient.h.
Referenced by beginJob(), and processHistograms().
MonitorElement* L1TGCTClient::l1GctNonIsoEmOccEta_ [private] |
Definition at line 75 of file L1TGCTClient.h.
Referenced by beginJob(), and processHistograms().
MonitorElement* L1TGCTClient::l1GctNonIsoEmOccPhi_ [private] |
Definition at line 76 of file L1TGCTClient.h.
Referenced by beginJob(), and processHistograms().
MonitorElement* L1TGCTClient::l1GctTauJetsOccEta_ [private] |
Definition at line 83 of file L1TGCTClient.h.
Referenced by beginJob(), and processHistograms().
MonitorElement* L1TGCTClient::l1GctTauJetsOccPhi_ [private] |
Definition at line 84 of file L1TGCTClient.h.
Referenced by beginJob(), and processHistograms().
bool L1TGCTClient::m_runInEndJob [private] |
Definition at line 69 of file L1TGCTClient.h.
Referenced by endJob().
bool L1TGCTClient::m_runInEndLumi [private] |
Definition at line 67 of file L1TGCTClient.h.
Referenced by endLuminosityBlock().
bool L1TGCTClient::m_runInEndRun [private] |
Definition at line 68 of file L1TGCTClient.h.
Referenced by endRun().
bool L1TGCTClient::m_runInEventLoop [private] |
std::string L1TGCTClient::monitorDir_ [private] |
Definition at line 60 of file L1TGCTClient.h.
Referenced by beginJob().
int L1TGCTClient::prescaleEvt_ [private] |
units of lumi sections
Definition at line 64 of file L1TGCTClient.h.
int L1TGCTClient::prescaleLS_ [private] |
counter
Definition at line 63 of file L1TGCTClient.h.