CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_6/src/DQM/CastorMonitor/interface/CastorBaseMonitor.h

Go to the documentation of this file.
00001 #ifndef DQM_CASTORMONITOR_CASTORBASEMONITOR_H
00002 #define DQM_CASTORMONITOR_CASTORBASEMONITOR_H
00003 
00004 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00005 #include "FWCore/Utilities/interface/CPUTimer.h"
00006 #include "TH1F.h"
00007 #include "TH2F.h"
00008 #include <map>
00009 #include <iostream>
00010 #include "DQMServices/Core/interface/DQMStore.h"
00011 
00012 #include "DataFormats/HcalDetId/interface/HcalCastorDetId.h" //-- HcalCastorDetId
00013 #include "DataFormats/HcalDigi/interface/HcalDigiCollections.h" //-- CastorDigiCollection
00014 #include "DataFormats/HcalRecHit/interface/HcalRecHitCollections.h" //-- CastorRecHitCollection
00015 
00016 #include "CalibFormats/CastorObjects/interface/CastorCalibrations.h"
00017 #include "CalibFormats/CastorObjects/interface/CastorCalibrationWidths.h"
00018 #include "CalibFormats/CastorObjects/interface/CastorCoder.h"
00019 #include "CalibFormats/CastorObjects/interface/CastorCoderDb.h"
00020 #include "CalibFormats/CastorObjects/interface/CastorDbService.h"
00021 #include "CalibFormats/CastorObjects/interface/CastorDbRecord.h"
00022 
00023 #include "CondFormats/CastorObjects/interface/CastorElectronicsMap.h"
00024 #include "CondFormats/CastorObjects/interface/CastorQIECoder.h"
00025 
00026 #include "EventFilter/HcalRawToDigi/interface/HcalDCCHeader.h"
00027 
00028 
00029 class CastorBaseMonitor {
00030 public:
00031   CastorBaseMonitor(); 
00032   virtual ~CastorBaseMonitor(); 
00033 
00034   virtual void setup(const edm::ParameterSet& ps, DQMStore* dbe);
00035   virtual void done();
00036   virtual void clearME();
00037 
00038   void setVerbosity(int verb) { fVerbosity = verb; }
00039   int getVerbosity() const { return fVerbosity; }
00040   
00041   void setDiagnostics(bool myval) { makeDiagnostics=myval;}
00042   bool getDiagnostics() const { return makeDiagnostics;}
00043 
00044   bool vetoCell(HcalCastorDetId id);
00045 
00046 protected:
00047   
00048   int fVerbosity;
00049   bool showTiming; //-- controls whether to show timing diagnostic info
00050   edm::CPUTimer cpu_timer; 
00051 
00052   bool makeDiagnostics; //-- controls whether to make diagnostic plots
00053 
00054   DQMStore* m_dbe;
00055   //vector<std::string> hotCells_;
00056   std::string rootFolder_;
00057   std::string baseFolder_;
00058 
00059 };
00060 
00061 #endif