#include <DQM/L1TMonitorClient/interface/L1TRPCTFClient.h>
Definition at line 23 of file L1TRPCTFClient.h.
L1TRPCTFClient::L1TRPCTFClient | ( | const edm::ParameterSet & | ps | ) |
Constructor.
Definition at line 23 of file L1TRPCTFClient.cc.
References initialize(), and parameters_.
00024 { 00025 parameters_=ps; 00026 initialize(); 00027 }
L1TRPCTFClient::~L1TRPCTFClient | ( | ) | [virtual] |
Destructor.
Definition at line 29 of file L1TRPCTFClient.cc.
00029 { 00030 LogInfo("TriggerDQM")<<"[TriggerDQM]: ending... "; 00031 }
void L1TRPCTFClient::analyze | ( | const edm::Event & | e, | |
const edm::EventSetup & | c | |||
) | [protected, virtual] |
Fake Analyze.
Implements edm::EDAnalyzer.
Definition at line 220 of file L1TRPCTFClient.cc.
References counterEvt_, and prescaleEvt_.
00220 { 00221 // cout << "L1TRPCTFClient::analyze" << endl; 00222 counterEvt_++; 00223 if (prescaleEvt_<1) return; 00224 if (prescaleEvt_>0 && counterEvt_%prescaleEvt_ != 0) return; 00225 00226 00227 00228 00229 }
void L1TRPCTFClient::beginJob | ( | const edm::EventSetup & | c | ) | [protected, virtual] |
BeginJob.
Reimplemented from edm::EDAnalyzer.
Definition at line 62 of file L1TRPCTFClient.cc.
References DQMStore::book1D(), DQMStore::book2D(), dbe_, m_deadChannels, m_noisyChannels, m_phipackedbad, m_phipackeddead, output_dir_, and DQMStore::setCurrentFolder().
00062 { 00063 00064 LogInfo("TriggerDQM")<<"[TriggerDQM]: Begin Job"; 00065 00066 // get backendinterface 00067 dbe_ = Service<DQMStore>().operator->(); 00068 00069 dbe_->setCurrentFolder(output_dir_); 00070 00071 m_phipackedbad = dbe_->book1D("RPCTF_phi_valuepacked_bad", 00072 "RPCTF bad channels in phipacked", 144, -0.5, 143.5 ) ; 00073 m_phipackeddead = dbe_->book1D("RPCTF_phi_valuepacked_dead", 00074 "RPCTF dead channels in phipacked", 144, -0.5, 143.5 ) ; 00075 00076 00077 m_deadChannels = dbe_->book2D("RPCTF_deadchannels", 00078 "RPCTF deadchannels", 00079 // 100, -2.5, 2.5, 00080 33, -16.5, 16.5, 00081 144, -0.5, 143.5); 00082 m_noisyChannels = dbe_->book2D("RPCTF_noisychannels", 00083 "RPCTF noisy channels", 00084 // 100, -2.5, 2.5, 00085 33, -16.5, 16.5, 00086 144, -0.5, 143.5); 00087 }
void L1TRPCTFClient::beginLuminosityBlock | ( | const edm::LuminosityBlock & | lumiSeg, | |
const edm::EventSetup & | context | |||
) | [protected, virtual] |
void L1TRPCTFClient::beginRun | ( | const edm::Run & | r, | |
const edm::EventSetup & | c | |||
) | [protected, virtual] |
void L1TRPCTFClient::endLuminosityBlock | ( | const edm::LuminosityBlock & | lumiSeg, | |
const edm::EventSetup & | c | |||
) | [protected, virtual] |
DQM Client Diagnostic.
Reimplemented from edm::EDAnalyzer.
Definition at line 99 of file L1TRPCTFClient.cc.
References GenMuonPlsPt100GeV_cfg::cout, dbe_, lat::endl(), DQMStore::get(), QReport::getBadChannels(), DQMStore::getMEs(), MonitorElement::getQReport(), MonitorElement::getQReports(), input_dir_, it, m_deadChannels, m_noisyChannels, m_phipackedbad, m_phipackeddead, me, MonitorElement::setBinContent(), DQMStore::setCurrentFolder(), and verbose_.
00101 { 00102 if (verbose_) std::cout << "L1TRPCTFClient::endLuminosityBlock" << std::endl; 00103 00104 // dbe_->setCurrentFolder(output_dir_); 00105 dbe_->setCurrentFolder(input_dir_); 00106 std::vector<string> meVec = dbe_->getMEs(); 00107 00108 //std::string urrDir = dbe_->pwd(); 00109 00110 /*dbe_->setCurrentFolder(output_dir_); 00111 std::vector<string> addVec = dbe_->getMEs(); 00112 meVec.insert(meVec.end(), addVec.begin(), addVec.end()); 00113 */ 00114 00115 { 00116 00117 MonitorElement *me = dbe_->get("L1T/L1TRPCTF/RPCTF_phi_valuepacked_norm"); 00118 if (me){ 00119 const QReport *qreport = me->getQReport("rpcPhiOcc"); 00120 if (qreport) { 00121 vector<dqm::me_util::Channel> badChannels = qreport->getBadChannels(); 00122 for (vector<dqm::me_util::Channel>::iterator channel = badChannels.begin(); 00123 channel != badChannels.end(); ++channel) { 00124 m_phipackedbad->setBinContent( (*channel).getBinX(),1); 00125 } // for(badchannels) 00126 } //if (qreport) 00127 } // if (me) 00128 00129 } 00130 00131 { 00132 00133 MonitorElement *me = dbe_->get("L1T/L1TRPCTF/RPCTF_phi_valuepacked_norm"); 00134 if (me){ 00135 const QReport *qreport = me->getQReport("DeadChannels"); 00136 if (qreport) { 00137 vector<dqm::me_util::Channel> badChannels = qreport->getBadChannels(); 00138 for (vector<dqm::me_util::Channel>::iterator channel = badChannels.begin(); 00139 channel != badChannels.end(); ++channel) { 00140 m_phipackeddead->setBinContent( (*channel).getBinX(),1); 00141 } // for(badchannels) 00142 } //if (qreport) 00143 } // if (me) 00144 00145 } 00146 00147 00148 // L1T/L1TRPCTF/RPCTF_muons_tower_phipacked_norm 00149 { 00150 00151 MonitorElement *me = dbe_->get("L1T/L1TRPCTF/RPCTF_muons_tower_phipacked"); 00152 if (me){ 00153 const QReport *qreport = me->getQReport("DeadChannels"); 00154 if (qreport) { 00155 vector<dqm::me_util::Channel> badChannels = qreport->getBadChannels(); 00156 for (vector<dqm::me_util::Channel>::iterator channel = badChannels.begin(); 00157 channel != badChannels.end(); ++channel) { 00158 m_deadChannels->setBinContent( (*channel).getBinX(), (*channel).getBinY(), 1); 00159 } // for(badchannels) 00160 } //if (qreport) 00161 } // if (me) 00162 00163 } 00164 00165 { 00166 00167 MonitorElement *me = dbe_->get("L1T/L1TRPCTF/RPCTF_muons_tower_phipacked"); 00168 if (me){ 00169 const QReport *qreport = me->getQReport("HotChannels"); 00170 if (qreport) { 00171 vector<dqm::me_util::Channel> badChannels = qreport->getBadChannels(); 00172 for (vector<dqm::me_util::Channel>::iterator channel = badChannels.begin(); 00173 channel != badChannels.end(); ++channel) { 00174 m_noisyChannels->setBinContent( (*channel).getBinX(), (*channel).getBinY(), 1); 00175 } // for(badchannels) 00176 } //if (qreport) 00177 } // if (me) 00178 00179 } 00180 00181 00182 if (verbose_) 00183 for (vector<string>::const_iterator it = meVec.begin(); it != meVec.end(); it++) { 00184 00185 00186 std::string full_path = input_dir_ + "/" + (*it); 00187 MonitorElement * me =dbe_->get(full_path); 00188 00189 // for this MEs, get list of associated QTs 00190 std::vector<QReport *> Qtest_map = me->getQReports(); 00191 00192 if (Qtest_map.size() > 0) { 00193 if (verbose_) std::cout << "Test: " << full_path << std::endl; 00194 for (std::vector<QReport *>::const_iterator it = Qtest_map.begin(); 00195 it != Qtest_map.end(); 00196 ++it) 00197 { 00198 if (verbose_) std::cout 00199 << " "<< (*it)->getQRName() 00200 << " " << (*it)->getStatus() 00201 <<std::endl; 00202 00203 std::vector<dqm::me_util::Channel> badChannels=(*it)->getBadChannels(); 00204 00205 vector<dqm::me_util::Channel>::iterator badchsit = badChannels.begin(); 00206 while(badchsit != badChannels.end()) 00207 { 00208 int ix = (*badchsit).getBinX(); 00209 if (verbose_) std::cout << " " << ix; 00210 ++badchsit; 00211 } 00212 if (verbose_) std::cout << std::endl; 00213 00214 } 00215 } 00216 00217 } // 00218 }
void L1TRPCTFClient::endRun | ( | const edm::Run & | r, | |
const edm::EventSetup & | c | |||
) | [protected, virtual] |
void L1TRPCTFClient::initialize | ( | ) | [private] |
Definition at line 34 of file L1TRPCTFClient.cc.
References counterEvt_, counterLS_, dbe_, edm::ParameterSet::getUntrackedParameter(), input_dir_, monitorName_, output_dir_, parameters_, prescaleEvt_, prescaleLS_, and verbose_.
Referenced by L1TRPCTFClient().
00034 { 00035 00036 counterLS_=0; 00037 counterEvt_=0; 00038 00039 // get back-end interface 00040 dbe_ = Service<DQMStore>().operator->(); 00041 00042 // base folder for the contents of this job 00043 monitorName_ = parameters_.getUntrackedParameter<string>("monitorName",""); 00044 // cout << "Monitor name = " << monitorName_ << endl; 00045 prescaleLS_ = parameters_.getUntrackedParameter<int>("prescaleLS", -1); 00046 // cout << "DQM lumi section prescale = " << prescaleLS_ << " lumi section(s)"<< endl; 00047 prescaleEvt_ = parameters_.getUntrackedParameter<int>("prescaleEvt", -1); 00048 // cout << "DQM event prescale = " << prescaleEvt_ << " events(s)"<< endl; 00049 output_dir_ = parameters_.getUntrackedParameter<string>("output_dir",""); 00050 // cout << "DQM output dir = " << output_dir_ << endl; 00051 input_dir_ = parameters_.getUntrackedParameter<string>("input_dir",""); 00052 // cout << "DQM input dir = " << input_dir_ << endl; 00053 00054 verbose_ = parameters_.getUntrackedParameter<bool>("verbose", false); 00055 00056 LogInfo( "TriggerDQM"); 00057 00058 00059 }
int L1TRPCTFClient::counterEvt_ [private] |
int L1TRPCTFClient::counterLS_ [private] |
DQMStore* L1TRPCTFClient::dbe_ [private] |
Definition at line 67 of file L1TRPCTFClient.h.
Referenced by beginJob(), endLuminosityBlock(), and initialize().
std::string L1TRPCTFClient::input_dir_ [private] |
Definition at line 69 of file L1TRPCTFClient.h.
Referenced by endLuminosityBlock(), and initialize().
MonitorElement* L1TRPCTFClient::m_deadChannels [private] |
MonitorElement* L1TRPCTFClient::m_noisyChannels [private] |
MonitorElement* L1TRPCTFClient::m_phipackedbad [private] |
MonitorElement* L1TRPCTFClient::m_phipackeddead [private] |
std::string L1TRPCTFClient::monitorName_ [private] |
std::string L1TRPCTFClient::output_dir_ [private] |
edm::ParameterSet L1TRPCTFClient::parameters_ [private] |
int L1TRPCTFClient::prescaleEvt_ [private] |
units of lumi sections
Definition at line 74 of file L1TRPCTFClient.h.
Referenced by analyze(), and initialize().
int L1TRPCTFClient::prescaleLS_ [private] |
bool L1TRPCTFClient::verbose_ [private] |
prescale on number of events
Definition at line 76 of file L1TRPCTFClient.h.
Referenced by endLuminosityBlock(), and initialize().