#include <CastorBaseMonitor.h>
Public Member Functions | |
CastorBaseMonitor () | |
virtual void | clearME () |
virtual void | done () |
bool | getDiagnostics () const |
int | getVerbosity () const |
void | setDiagnostics (bool myval) |
virtual void | setup (const edm::ParameterSet &ps, DQMStore *dbe) |
void | setVerbosity (int verb) |
bool | vetoCell (HcalCastorDetId id) |
virtual | ~CastorBaseMonitor () |
Protected Attributes | |
std::string | baseFolder_ |
edm::CPUTimer | cpu_timer |
int | fVerbosity |
DQMStore * | m_dbe |
bool | makeDiagnostics |
std::string | rootFolder_ |
bool | showTiming |
Definition at line 29 of file CastorBaseMonitor.h.
CastorBaseMonitor::CastorBaseMonitor | ( | ) |
Definition at line 14 of file CastorBaseMonitor.cc.
References baseFolder_, fVerbosity, and rootFolder_.
{ fVerbosity = 0; // hotCells_.clear(); rootFolder_ = "Castor"; baseFolder_ = "BaseMonitor"; }
CastorBaseMonitor::~CastorBaseMonitor | ( | ) | [virtual] |
Definition at line 26 of file CastorBaseMonitor.cc.
{}
void CastorBaseMonitor::clearME | ( | ) | [virtual] |
Definition at line 59 of file CastorBaseMonitor.cc.
References baseFolder_, m_dbe, DQMStore::removeContents(), and DQMStore::setCurrentFolder().
{ if(m_dbe){ m_dbe->setCurrentFolder(baseFolder_); m_dbe->removeContents(); } return; }
void CastorBaseMonitor::done | ( | ) | [virtual] |
Reimplemented in CastorDigiMonitor, CastorLEDMonitor, and CastorTowerJetMonitor.
Definition at line 53 of file CastorBaseMonitor.cc.
Referenced by CastorMonitorModule::endJob().
{}
bool CastorBaseMonitor::getDiagnostics | ( | ) | const [inline] |
Definition at line 42 of file CastorBaseMonitor.h.
References makeDiagnostics.
{ return makeDiagnostics;}
int CastorBaseMonitor::getVerbosity | ( | ) | const [inline] |
void CastorBaseMonitor::setDiagnostics | ( | bool | myval | ) | [inline] |
Definition at line 41 of file CastorBaseMonitor.h.
References makeDiagnostics.
{ makeDiagnostics=myval;}
void CastorBaseMonitor::setup | ( | const edm::ParameterSet & | ps, |
DQMStore * | dbe | ||
) | [virtual] |
Reimplemented in CastorChannelQualityMonitor, CastorDataIntegrityMonitor, CastorDigiMonitor, CastorEventDisplay, CastorHIMonitor, CastorLEDMonitor, CastorPSMonitor, CastorRecHitMonitor, and CastorTowerJetMonitor.
Definition at line 28 of file CastorBaseMonitor.cc.
References gather_cfg::cout, fVerbosity, edm::ParameterSet::getUntrackedParameter(), m_dbe, makeDiagnostics, NULL, rootFolder_, and showTiming.
{ if(fVerbosity>0) std::cout << "CastorBaseMonitor::setup (start)" << std::endl; m_dbe = NULL; if(dbe != NULL) m_dbe = dbe; //hotCells_ = ps.getUntrackedParameter<std::vector<std::string> >( "HotCells" ); std::string subsystemname = ps.getUntrackedParameter<std::string>("subSystemFolder", "Castor") ; rootFolder_ = subsystemname + "/"; fVerbosity = ps.getUntrackedParameter<int>("debug",0); makeDiagnostics=ps.getUntrackedParameter<bool>("makeDiagnosticPlots",false); showTiming = ps.getUntrackedParameter<bool>("showTiming",false); if(fVerbosity>0) std::cout << "CastorBaseMonitor::setup (end)" << std::endl; return; }
void CastorBaseMonitor::setVerbosity | ( | int | verb | ) | [inline] |
bool CastorBaseMonitor::vetoCell | ( | HcalCastorDetId | id | ) |
Definition at line 72 of file CastorBaseMonitor.cc.
{ /* if(hotCells_.size()==0) return false; for(unsigned int i = 0; i< hotCells_.size(); i++){ unsigned int badc = atoi(hotCells_[i].c_str()); if(id.rawId() == badc) return true; } */ return false; }
std::string CastorBaseMonitor::baseFolder_ [protected] |
Definition at line 57 of file CastorBaseMonitor.h.
Referenced by CastorBaseMonitor(), clearME(), CastorLEDMonitor::createFEDmap(), CastorRecHitMonitor::processEvent(), CastorDigiMonitor::processEvent(), CastorLEDMonitor::processEvent(), CastorLEDMonitor::setup(), CastorDataIntegrityMonitor::setup(), CastorEventDisplay::setup(), CastorHIMonitor::setup(), CastorRecHitMonitor::setup(), CastorDigiMonitor::setup(), CastorTowerJetMonitor::setup(), and CastorPSMonitor::setup().
edm::CPUTimer CastorBaseMonitor::cpu_timer [protected] |
Definition at line 50 of file CastorBaseMonitor.h.
Referenced by CastorPSMonitor::processEvent(), CastorRecHitMonitor::processEvent(), CastorHIMonitor::processEvent(), CastorDigiMonitor::processEvent(), and CastorEventDisplay::processEvent().
int CastorBaseMonitor::fVerbosity [protected] |
Definition at line 48 of file CastorBaseMonitor.h.
Referenced by CastorBaseMonitor(), getVerbosity(), CastorDigiMonitor::perChanHists(), CastorLEDMonitor::perChanHists(), CastorDataIntegrityMonitor::processEvent(), CastorPSMonitor::processEvent(), CastorHIMonitor::processEvent(), CastorRecHitMonitor::processEvent(), CastorDigiMonitor::processEvent(), CastorLEDMonitor::processEvent(), CastorEventDisplay::processEvent(), CastorChannelQualityMonitor::processEvent(), CastorTowerJetMonitor::processEventJetIDs(), CastorTowerJetMonitor::processEventJets(), CastorTowerJetMonitor::processEventTowers(), CastorDataIntegrityMonitor::setup(), CastorChannelQualityMonitor::setup(), CastorEventDisplay::setup(), CastorHIMonitor::setup(), CastorRecHitMonitor::setup(), CastorDigiMonitor::setup(), setup(), CastorTowerJetMonitor::setup(), CastorPSMonitor::setup(), setVerbosity(), and CastorDataIntegrityMonitor::unpack().
DQMStore* CastorBaseMonitor::m_dbe [protected] |
Definition at line 54 of file CastorBaseMonitor.h.
Referenced by clearME(), CastorLEDMonitor::createFEDmap(), CastorDigiMonitor::perChanHists(), CastorLEDMonitor::perChanHists(), CastorPSMonitor::processEvent(), CastorHIMonitor::processEvent(), CastorRecHitMonitor::processEvent(), CastorDigiMonitor::processEvent(), CastorLEDMonitor::processEvent(), CastorEventDisplay::processEvent(), CastorChannelQualityMonitor::processEvent(), CastorTowerJetMonitor::processEventJetIDs(), CastorTowerJetMonitor::processEventJets(), CastorTowerJetMonitor::processEventTowers(), CastorLEDMonitor::reset(), CastorLEDMonitor::setup(), CastorDataIntegrityMonitor::setup(), CastorChannelQualityMonitor::setup(), CastorEventDisplay::setup(), CastorHIMonitor::setup(), CastorRecHitMonitor::setup(), CastorDigiMonitor::setup(), setup(), CastorTowerJetMonitor::setup(), and CastorPSMonitor::setup().
bool CastorBaseMonitor::makeDiagnostics [protected] |
Definition at line 52 of file CastorBaseMonitor.h.
Referenced by getDiagnostics(), setDiagnostics(), and setup().
std::string CastorBaseMonitor::rootFolder_ [protected] |
Definition at line 56 of file CastorBaseMonitor.h.
Referenced by CastorBaseMonitor(), CastorLEDMonitor::setup(), CastorDataIntegrityMonitor::setup(), CastorChannelQualityMonitor::setup(), CastorEventDisplay::setup(), CastorHIMonitor::setup(), CastorRecHitMonitor::setup(), CastorDigiMonitor::setup(), setup(), CastorTowerJetMonitor::setup(), and CastorPSMonitor::setup().
bool CastorBaseMonitor::showTiming [protected] |
Definition at line 49 of file CastorBaseMonitor.h.
Referenced by CastorPSMonitor::processEvent(), CastorHIMonitor::processEvent(), CastorRecHitMonitor::processEvent(), CastorDigiMonitor::processEvent(), CastorEventDisplay::processEvent(), and setup().