CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Attributes
CastorBaseMonitor Class Reference

#include <CastorBaseMonitor.h>

Inheritance diagram for CastorBaseMonitor:
CastorChannelQualityMonitor CastorDataIntegrityMonitor CastorDigiMonitor CastorEventDisplay CastorHIMonitor CastorLEDMonitor CastorPSMonitor CastorRecHitMonitor CastorTowerJetMonitor

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
 
DQMStorem_dbe
 
bool makeDiagnostics
 
std::string rootFolder_
 
bool showTiming
 

Detailed Description

Definition at line 29 of file CastorBaseMonitor.h.

Constructor & Destructor Documentation

CastorBaseMonitor::CastorBaseMonitor ( )

Definition at line 14 of file CastorBaseMonitor.cc.

References baseFolder_, fVerbosity, and rootFolder_.

14  {
16  fVerbosity = 0;
17  // hotCells_.clear();
19  rootFolder_ = "Castor";
20  baseFolder_ = "BaseMonitor";
21 }
std::string baseFolder_
std::string rootFolder_
CastorBaseMonitor::~CastorBaseMonitor ( )
virtual

Definition at line 26 of file CastorBaseMonitor.cc.

26 {}

Member Function Documentation

void CastorBaseMonitor::clearME ( )
virtual

Definition at line 59 of file CastorBaseMonitor.cc.

References baseFolder_, m_dbe, DQMStore::removeContents(), and DQMStore::setCurrentFolder().

59  {
60 
61  if(m_dbe){
64  }
65  return;
66 }
void removeContents(void)
erase all monitoring elements in current directory (not including subfolders);
Definition: DQMStore.cc:2569
std::string baseFolder_
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:434
void CastorBaseMonitor::done ( )
virtual

Reimplemented in CastorLEDMonitor, CastorTowerJetMonitor, and CastorDigiMonitor.

Definition at line 53 of file CastorBaseMonitor.cc.

Referenced by CastorMonitorModule::endJob().

53 {}
bool CastorBaseMonitor::getDiagnostics ( ) const
inline

Definition at line 42 of file CastorBaseMonitor.h.

References makeDiagnostics.

42 { return makeDiagnostics;}
int CastorBaseMonitor::getVerbosity ( ) const
inline

Definition at line 39 of file CastorBaseMonitor.h.

References fVerbosity.

39 { return fVerbosity; }
void CastorBaseMonitor::setDiagnostics ( bool  myval)
inline

Definition at line 41 of file CastorBaseMonitor.h.

References makeDiagnostics.

41 { makeDiagnostics=myval;}
void CastorBaseMonitor::setup ( const edm::ParameterSet ps,
DQMStore dbe 
)
virtual

Reimplemented in CastorLEDMonitor, CastorChannelQualityMonitor, CastorEventDisplay, CastorTowerJetMonitor, CastorDigiMonitor, CastorPSMonitor, CastorDataIntegrityMonitor, CastorHIMonitor, and CastorRecHitMonitor.

Definition at line 28 of file CastorBaseMonitor.cc.

References gather_cfg::cout, fVerbosity, edm::ParameterSet::getUntrackedParameter(), m_dbe, makeDiagnostics, NULL, rootFolder_, showTiming, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by CastorHIMonitor::setup(), CastorRecHitMonitor::setup(), CastorDataIntegrityMonitor::setup(), CastorPSMonitor::setup(), CastorDigiMonitor::setup(), CastorTowerJetMonitor::setup(), CastorEventDisplay::setup(), CastorChannelQualityMonitor::setup(), and CastorLEDMonitor::setup().

28  {
29 
30  if(fVerbosity>0) std::cout << "CastorBaseMonitor::setup (start)" << std::endl;
31 
32  m_dbe = NULL;
33  if(dbe != NULL) m_dbe = dbe;
34 
35  //hotCells_ = ps.getUntrackedParameter<std::vector<std::string> >( "HotCells" );
36 
38  std::string subsystemname = ps.getUntrackedParameter<std::string>("subSystemFolder", "Castor") ;
39  rootFolder_ = subsystemname + "/";
40 
41  fVerbosity = ps.getUntrackedParameter<int>("debug",0);
42  makeDiagnostics=ps.getUntrackedParameter<bool>("makeDiagnosticPlots",false);
43  showTiming = ps.getUntrackedParameter<bool>("showTiming",false);
44 
45  if(fVerbosity>0) std::cout << "CastorBaseMonitor::setup (end)" << std::endl;
46 
47  return;
48 }
T getUntrackedParameter(std::string const &, T const &) const
#define NULL
Definition: scimark2.h:8
std::string rootFolder_
tuple cout
Definition: gather_cfg.py:121
void CastorBaseMonitor::setVerbosity ( int  verb)
inline

Definition at line 38 of file CastorBaseMonitor.h.

References fVerbosity.

38 { fVerbosity = verb; }
bool CastorBaseMonitor::vetoCell ( HcalCastorDetId  id)

Definition at line 72 of file CastorBaseMonitor.cc.

72  {
73  /*
74  if(hotCells_.size()==0) return false;
75 
76  for(unsigned int i = 0; i< hotCells_.size(); i++){
77  unsigned int badc = atoi(hotCells_[i].c_str());
78  if(id.rawId() == badc) return true;
79  }
80  */
81  return false;
82 }

Member Data Documentation

std::string CastorBaseMonitor::baseFolder_
protected
edm::CPUTimer CastorBaseMonitor::cpu_timer
protected
int CastorBaseMonitor::fVerbosity
protected
DQMStore* CastorBaseMonitor::m_dbe
protected
bool CastorBaseMonitor::makeDiagnostics
protected

Definition at line 52 of file CastorBaseMonitor.h.

Referenced by getDiagnostics(), setDiagnostics(), and setup().

std::string CastorBaseMonitor::rootFolder_
protected
bool CastorBaseMonitor::showTiming
protected