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 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 64 of file CastorBaseMonitor.cc.

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

64  {
65 
66  if(m_dbe){
69  }
70  return;
71 }
void removeContents(void)
erase all monitoring elements in current directory (not including subfolders);
Definition: DQMStore.cc:3135
std::string baseFolder_
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:667
void CastorBaseMonitor::done ( )
virtual

Reimplemented in CastorLEDMonitor, CastorTowerJetMonitor, and CastorDigiMonitor.

Definition at line 58 of file CastorBaseMonitor.cc.

Referenced by CastorMonitorModule::endJob().

58 {}
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, CastorTowerJetMonitor, CastorDigiMonitor, CastorPSMonitor, CastorDataIntegrityMonitor, CastorHIMonitor, and CastorRecHitMonitor.

Definition at line 32 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(), CastorChannelQualityMonitor::setup(), and CastorLEDMonitor::setup().

33  {
34  //get configuration parameters
35  fVerbosity = ps.getUntrackedParameter<int>("debug",0);
36  makeDiagnostics=ps.getUntrackedParameter<bool>("makeDiagnosticPlots",false);
37  showTiming = ps.getUntrackedParameter<bool>("showTiming",false);
38 
39  if(fVerbosity>0) std::cout << "CastorBaseMonitor::setup (start)" << std::endl;
40 
41  //hotCells_ = ps.getUntrackedParameter<std::vector<std::string> >( "HotCells" );
42 
43  m_dbe = NULL;
44  if(dbe != NULL) m_dbe = dbe;
45 
47  std::string subsystemname = ps.getUntrackedParameter<std::string>("subSystemFolder", "Castor") ;
48  rootFolder_ = subsystemname + "/";
49 
50  if(fVerbosity>0) std::cout << "CastorBaseMonitor::setup (end)" << std::endl;
51 
52  return;
53 }
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 77 of file CastorBaseMonitor.cc.

77  {
78  /*
79  if(hotCells_.size()==0) return false;
80 
81  for(unsigned int i = 0; i< hotCells_.size(); i++){
82  unsigned int badc = atoi(hotCells_[i].c_str());
83  if(id.rawId() == badc) return true;
84  }
85  */
86  return false;
87 }

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