CMS 3D CMS Logo

Public Member Functions | Protected Attributes

CastorBaseMonitor Class Reference

#include <CastorBaseMonitor.h>

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

List of all members.

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_.

                                     {
  fVerbosity = 0;
  // hotCells_.clear();
  rootFolder_ = "Castor";
  baseFolder_ = "BaseMonitor";
}
CastorBaseMonitor::~CastorBaseMonitor ( ) [virtual]

Definition at line 26 of file CastorBaseMonitor.cc.

{}

Member Function Documentation

void CastorBaseMonitor::clearME ( ) [virtual]
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]

Definition at line 39 of file CastorBaseMonitor.h.

References fVerbosity.

{ return fVerbosity; }
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]

Definition at line 38 of file CastorBaseMonitor.h.

References fVerbosity.

{ fVerbosity = verb; }
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;
}

Member Data Documentation

std::string CastorBaseMonitor::baseFolder_ [protected]

Definition at line 52 of file CastorBaseMonitor.h.

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

std::string CastorBaseMonitor::rootFolder_ [protected]