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 Member Functions | Protected Attributes
HcalBaseDQMonitor Class Reference

#include <HcalBaseDQMonitor.h>

Inheritance diagram for HcalBaseDQMonitor:
edm::EDAnalyzer HcalBeamMonitor HcalCoarsePedestalMonitor HcalDataIntegrityTask HcalDeadCellMonitor HcalDetDiagLaserMonitor HcalDetDiagLEDMonitor HcalDetDiagLEDMonitor HcalDetDiagNoiseMonitor HcalDetDiagPedestalMonitor HcalDetDiagTimingMonitor HcalDigiMonitor HcalHotCellMonitor HcalLSbyLSMonitor HcalNoiseMonitor HcalNZSMonitor HcalRawDataMonitor HcalRecHitMonitor HcalTrigPrimMonitor

Public Member Functions

 HcalBaseDQMonitor (const edm::ParameterSet &ps)
 
 HcalBaseDQMonitor ()
 
 ~HcalBaseDQMonitor ()
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 

Protected Member Functions

virtual void analyze (const edm::Event &e, const edm::EventSetup &c)
 
virtual void beginJob ()
 
virtual void beginLuminosityBlock (const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c)
 
virtual void beginRun (const edm::Run &run, const edm::EventSetup &c)
 
virtual void cleanup (void)
 
virtual void endJob (void)
 
virtual void endLuminosityBlock (const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c)
 
virtual void endRun (const edm::Run &run, const edm::EventSetup &c)
 
bool IsAllowedCalibType ()
 
bool LumiInOrder (int lumisec)
 
virtual void reset (void)
 
virtual void setup (void)
 
void SetupEtaPhiHists (EtaPhiHists &hh, std::string Name, std::string Units)
 
- Protected Member Functions inherited from edm::EDAnalyzer
CurrentProcessingContext const * currentContext () const
 

Protected Attributes

std::vector< int > AllowedCalibTypes_
 
int badChannelStatusMask_
 
int currentLS
 
int currenttype_
 
DQMStoredbe_
 
int debug_
 
bool enableCleanup_
 
bool eventAllowed_
 
bool HBpresent_
 
bool HEpresent_
 
bool HFpresent_
 
bool HOpresent_
 
int ievt_
 
std::map< unsigned int, int > KnownBadCells_
 
int levt_
 
bool makeDiagnostics_
 
MonitorElementmeIevt_
 
MonitorElementmeLevt_
 
bool mergeRuns_
 
MonitorElementmeTevt_
 
MonitorElementmeTevtHist_
 
int NLumiBlocks_
 
bool Online_
 
std::string prefixME_
 
MonitorElementProblemsCurrentLB
 
MonitorElementProblemsVsLB
 
MonitorElementProblemsVsLB_HB
 
MonitorElementProblemsVsLB_HBHEHF
 
MonitorElementProblemsVsLB_HE
 
MonitorElementProblemsVsLB_HF
 
MonitorElementProblemsVsLB_HO
 
bool skipOutOfOrderLS_
 
std::string subdir_
 
int tevt_
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
typedef WorkerT< EDAnalyzerWorkerType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 

Detailed Description

Definition at line 22 of file HcalBaseDQMonitor.h.

Constructor & Destructor Documentation

HcalBaseDQMonitor::HcalBaseDQMonitor ( const edm::ParameterSet ps)

Definition at line 21 of file HcalBaseDQMonitor.cc.

References AllowedCalibTypes_, debug_, enableCleanup_, edm::ParameterSet::getUntrackedParameter(), makeDiagnostics_, meIevt_, meLevt_, mergeRuns_, meTevtHist_, NLumiBlocks_, Online_, prefixME_, ProblemsCurrentLB, ProblemsVsLB, ProblemsVsLB_HB, ProblemsVsLB_HBHEHF, ProblemsVsLB_HE, ProblemsVsLB_HF, ProblemsVsLB_HO, skipOutOfOrderLS_, and subdir_.

22 {
23  Online_ = ps.getUntrackedParameter<bool>("online",false);
24  mergeRuns_ = ps.getUntrackedParameter<bool>("mergeRuns",false);
25  enableCleanup_ = ps.getUntrackedParameter<bool>("enableCleanup",false);
26  debug_ = ps.getUntrackedParameter<int>("debug",0);
27  prefixME_ = ps.getUntrackedParameter<std::string>("subSystemFolder","Hcal/");
28  if (prefixME_.substr(prefixME_.size()-1,prefixME_.size())!="/")
29  prefixME_.append("/");
30  subdir_ = ps.getUntrackedParameter<std::string>("TaskFolder","Test/");
31  if (subdir_.size()>0 && subdir_.substr(subdir_.size()-1,subdir_.size())!="/")
32  subdir_.append("/");
33  subdir_=prefixME_+subdir_;
34  AllowedCalibTypes_ = ps.getUntrackedParameter<std::vector<int> > ("AllowedCalibTypes");
35  skipOutOfOrderLS_ = ps.getUntrackedParameter<bool>("skipOutOfOrderLS",false);
36  NLumiBlocks_ = ps.getUntrackedParameter<int>("NLumiBlocks",4000);
37  makeDiagnostics_ = ps.getUntrackedParameter<bool>("makeDiagnostics",false);
38 
39  meIevt_=0;
40  meLevt_=0;
41  meTevtHist_=0;
42  ProblemsVsLB=0;
49 } //HcalBaseDQMonitor::HcalBaseDQMonitor(const ParameterSet& ps)
T getUntrackedParameter(std::string const &, T const &) const
MonitorElement * ProblemsCurrentLB
MonitorElement * ProblemsVsLB_HF
std::vector< int > AllowedCalibTypes_
MonitorElement * meTevtHist_
MonitorElement * ProblemsVsLB_HBHEHF
MonitorElement * ProblemsVsLB_HB
MonitorElement * meIevt_
MonitorElement * ProblemsVsLB_HE
MonitorElement * ProblemsVsLB_HO
MonitorElement * ProblemsVsLB
MonitorElement * meLevt_
HcalBaseDQMonitor::HcalBaseDQMonitor ( )
inline

Definition at line 30 of file HcalBaseDQMonitor.h.

30 {};
HcalBaseDQMonitor::~HcalBaseDQMonitor ( )

Definition at line 54 of file HcalBaseDQMonitor.cc.

55 {
56 
57 }

Member Function Documentation

void HcalBaseDQMonitor::analyze ( const edm::Event e,
const edm::EventSetup c 
)
protectedvirtual

Implements edm::EDAnalyzer.

Reimplemented in HcalDetDiagLaserMonitor, HcalDetDiagPedestalMonitor, HcalDetDiagLEDMonitor, HcalDetDiagTimingMonitor, HcalDigiMonitor, HcalHotCellMonitor, HcalDataIntegrityTask, HcalDeadCellMonitor, HcalRawDataMonitor, HcalDetDiagNoiseMonitor, HcalDetDiagLEDMonitor, HcalRecHitMonitor, HcalBeamMonitor, HcalCoarsePedestalMonitor, HcalNoiseMonitor, HcalTrigPrimMonitor, and HcalNZSMonitor.

Definition at line 206 of file HcalBaseDQMonitor.cc.

References gather_cfg::cout, dbe_, debug_, eventAllowed_, MonitorElement::Fill(), DQMStore::get(), MonitorElement::getIntValue(), HBpresent_, HEpresent_, HFpresent_, HOpresent_, ievt_, IsAllowedCalibType(), levt_, LumiInOrder(), edm::EventBase::luminosityBlock(), meIevt_, meLevt_, meTevt_, meTevtHist_, prefixME_, and tevt_.

Referenced by HcalNZSMonitor::analyze(), HcalTrigPrimMonitor::analyze(), HcalNoiseMonitor::analyze(), HcalCoarsePedestalMonitor::analyze(), HcalBeamMonitor::analyze(), HcalRecHitMonitor::analyze(), HcalDetDiagLEDMonitor::analyze(), HcalDetDiagNoiseMonitor::analyze(), HcalDeadCellMonitor::analyze(), HcalRawDataMonitor::analyze(), HcalDataIntegrityTask::analyze(), HcalHotCellMonitor::analyze(), HcalDigiMonitor::analyze(), HcalDetDiagTimingMonitor::analyze(), HcalDetDiagPedestalMonitor::analyze(), and HcalDetDiagLaserMonitor::analyze().

207 {
208  if (debug_>5) std::cout <<"\t<HcalBaseDQMonitor::analyze> event = "<<ievt_<<std::endl;
209  eventAllowed_=true; // assume event is allowed
210 
211  // fill with total events seen (this differs from ievent, which is total # of good events)
212  ++tevt_;
213  if (meTevt_) meTevt_->Fill(tevt_);
214  if (meTevtHist_) meTevtHist_->Fill(1);
215  // skip out of order lumi events
216  if (this->LumiInOrder(e.luminosityBlock())==false)
217  {
218  eventAllowed_=false;
219  return;
220  }
221  // skip events of wrong calibration type
223  if (!eventAllowed_) return;
224 
225  // Event is good; count it
226  ++ievt_;
227  ++levt_;
228  if (meIevt_) meIevt_->Fill(ievt_);
229  if (meLevt_) meLevt_->Fill(levt_);
230 
231 
232  MonitorElement* me;
233  if (HBpresent_==false)
234  {
235  me = dbe_->get((prefixME_+"HcalInfo/HBpresent"));
236  if (me==0 || me->getIntValue()>0) HBpresent_=true;
237  }
238  if (HEpresent_==false)
239  {
240  me = dbe_->get((prefixME_+"HcalInfo/HEpresent"));
241  if (me==0 || me->getIntValue()>0) HEpresent_=true;
242  }
243  if (HOpresent_==false)
244  {
245  me = dbe_->get((prefixME_+"HcalInfo/HOpresent"));
246  if (me==0 || me->getIntValue()>0) HOpresent_=true;
247  }
248  if (HFpresent_==false)
249  {
250  me = dbe_->get((prefixME_+"HcalInfo/HOpresent"));
251  if (me ==0 || me->getIntValue()>0) HFpresent_=true;
252  }
253 
254 
255 } // void HcalBaseDQMonitor::analyze(const edm::Event& e, const edm::EventSetup& c)
bool LumiInOrder(int lumisec)
edm::LuminosityBlockNumber_t luminosityBlock() const
Definition: EventBase.h:59
MonitorElement * meTevt_
void Fill(long long x)
MonitorElement * meTevtHist_
MonitorElement * meIevt_
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. &quot;my/long/dir/my_histo&quot;)
Definition: DQMStore.cc:1265
int64_t getIntValue(void) const
tuple cout
Definition: gather_cfg.py:41
MonitorElement * meLevt_
void HcalBaseDQMonitor::beginJob ( void  )
protectedvirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 59 of file HcalBaseDQMonitor.cc.

References gather_cfg::cout, currenttype_, dbe_, debug_, HBpresent_, HEpresent_, HFpresent_, HOpresent_, ievt_, levt_, cmsCodeRules.cppFunctionSkipper::operator, subdir_, and tevt_.

60 {
61 
62  if (debug_>0) std::cout <<"HcalBaseDQMonitor::beginJob(): task = '"<<subdir_<<"'"<<std::endl;
64 
65  ievt_=0;
66  levt_=0;
67  tevt_=0;
68  currenttype_=-1;
69  HBpresent_=false;
70  HEpresent_=false;
71  HOpresent_=false;
72  HFpresent_=false;
73 
74 
75 } // beginJob()
tuple cout
Definition: gather_cfg.py:41
void HcalBaseDQMonitor::beginLuminosityBlock ( const edm::LuminosityBlock lumiSeg,
const edm::EventSetup c 
)
protectedvirtual

Reimplemented from edm::EDAnalyzer.

Reimplemented in HcalDetDiagLaserMonitor, HcalDetDiagPedestalMonitor, HcalDigiMonitor, HcalHotCellMonitor, HcalLSbyLSMonitor, HcalRawDataMonitor, HcalCoarsePedestalMonitor, HcalBeamMonitor, and HcalTrigPrimMonitor.

Definition at line 150 of file HcalBaseDQMonitor.cc.

References currentLS, MonitorElement::Fill(), levt_, LumiInOrder(), edm::LuminosityBlockBase::luminosityBlock(), meLevt_, ProblemsCurrentLB, and MonitorElement::Reset().

Referenced by HcalTrigPrimMonitor::beginLuminosityBlock(), HcalBeamMonitor::beginLuminosityBlock(), HcalCoarsePedestalMonitor::beginLuminosityBlock(), HcalRawDataMonitor::beginLuminosityBlock(), HcalLSbyLSMonitor::beginLuminosityBlock(), HcalHotCellMonitor::beginLuminosityBlock(), and HcalDigiMonitor::beginLuminosityBlock().

152 {
153  if (this->LumiInOrder(lumiSeg.luminosityBlock())==false) return;
154  currentLS=lumiSeg.luminosityBlock();
155  levt_=0;
156  if (meLevt_!=0) meLevt_->Fill(-1);
157  if (ProblemsCurrentLB)
159 }
bool LumiInOrder(int lumisec)
MonitorElement * ProblemsCurrentLB
void Fill(long long x)
LuminosityBlockNumber_t luminosityBlock() const
void Reset(void)
reset ME (ie. contents, errors, etc)
MonitorElement * meLevt_
void HcalBaseDQMonitor::beginRun ( const edm::Run run,
const edm::EventSetup c 
)
protectedvirtual

Reimplemented from edm::EDAnalyzer.

Reimplemented in HcalDetDiagLaserMonitor, HcalDetDiagPedestalMonitor, HcalDetDiagLEDMonitor, HcalDetDiagTimingMonitor, HcalDigiMonitor, HcalDataIntegrityTask, HcalDetDiagNoiseMonitor, HcalRawDataMonitor, HcalDeadCellMonitor, HcalHotCellMonitor, HcalDetDiagLEDMonitor, HcalLSbyLSMonitor, HcalBeamMonitor, HcalRecHitMonitor, HcalTrigPrimMonitor, HcalCoarsePedestalMonitor, HcalNoiseMonitor, and HcalNZSMonitor.

Definition at line 83 of file HcalBaseDQMonitor.cc.

References gather_cfg::cout, debug_, mergeRuns_, reset(), setup(), subdir_, and tevt_.

Referenced by HcalNZSMonitor::beginRun(), HcalNoiseMonitor::beginRun(), HcalCoarsePedestalMonitor::beginRun(), HcalTrigPrimMonitor::beginRun(), HcalRecHitMonitor::beginRun(), HcalBeamMonitor::beginRun(), HcalLSbyLSMonitor::beginRun(), HcalDetDiagLEDMonitor::beginRun(), HcalHotCellMonitor::beginRun(), HcalDeadCellMonitor::beginRun(), HcalRawDataMonitor::beginRun(), HcalDetDiagNoiseMonitor::beginRun(), HcalDataIntegrityTask::beginRun(), HcalDigiMonitor::beginRun(), and HcalDetDiagTimingMonitor::beginRun().

84 {
85  if (debug_>0) std::cout <<"HcalBaseDQMonitor::beginRun(): task = '"<<subdir_<<"'"<<std::endl;
86  if (mergeRuns_ && tevt_>0) return;
87  this->setup();
88  this->reset();
89 } // beginRun(const edm::Run& run, const edm::EventSetup& c)
virtual void reset(void)
tuple cout
Definition: gather_cfg.py:41
virtual void setup(void)
void HcalBaseDQMonitor::cleanup ( void  )
protectedvirtual
void HcalBaseDQMonitor::endJob ( void  )
protectedvirtual

Reimplemented from edm::EDAnalyzer.

Reimplemented in HcalDigiMonitor, HcalRawDataMonitor, HcalCoarsePedestalMonitor, HcalDeadCellMonitor, HcalHotCellMonitor, HcalLSbyLSMonitor, HcalRecHitMonitor, and HcalTrigPrimMonitor.

Definition at line 77 of file HcalBaseDQMonitor.cc.

References cleanup(), and enableCleanup_.

78 {
79  if (enableCleanup_)
80  cleanup();
81 } // endJob()
virtual void cleanup(void)
void HcalBaseDQMonitor::endLuminosityBlock ( const edm::LuminosityBlock lumiSeg,
const edm::EventSetup c 
)
protectedvirtual

Reimplemented from edm::EDAnalyzer.

Reimplemented in HcalDetDiagLaserMonitor, HcalDetDiagPedestalMonitor, HcalDigiMonitor, HcalHotCellMonitor, HcalLSbyLSMonitor, HcalRawDataMonitor, HcalDetDiagNoiseMonitor, HcalDeadCellMonitor, HcalBeamMonitor, HcalCoarsePedestalMonitor, HcalRecHitMonitor, and HcalTrigPrimMonitor.

Definition at line 161 of file HcalBaseDQMonitor.cc.

References LumiInOrder(), and edm::LuminosityBlockBase::luminosityBlock().

163 {
164  if (this->LumiInOrder(lumiSeg.luminosityBlock())==false) return;
165  // Inherited classes do end-of-lumi functions here
166 }
bool LumiInOrder(int lumisec)
LuminosityBlockNumber_t luminosityBlock() const
void HcalBaseDQMonitor::endRun ( const edm::Run run,
const edm::EventSetup c 
)
protectedvirtual

Reimplemented from edm::EDAnalyzer.

Reimplemented in HcalDetDiagLaserMonitor, HcalDetDiagPedestalMonitor, HcalDetDiagLEDMonitor, HcalDigiMonitor, HcalRawDataMonitor, HcalCoarsePedestalMonitor, HcalDeadCellMonitor, HcalHotCellMonitor, HcalLSbyLSMonitor, and HcalRecHitMonitor.

Definition at line 91 of file HcalBaseDQMonitor.cc.

References gather_cfg::cout, debug_, and subdir_.

92 {
93  if (debug_>0) std::cout <<"HcalBaseDQMonitor::endRun: task = "<<subdir_<<std::endl;
94 } //endRun(...)
tuple cout
Definition: gather_cfg.py:41
bool HcalBaseDQMonitor::IsAllowedCalibType ( )
protected

Definition at line 178 of file HcalBaseDQMonitor.cc.

References AllowedCalibTypes_, gather_cfg::cout, currenttype_, dbe_, debug_, DQMStore::get(), MonitorElement::getIntValue(), i, and prefixME_.

Referenced by HcalNZSMonitor::analyze(), HcalTrigPrimMonitor::analyze(), HcalCoarsePedestalMonitor::analyze(), HcalBeamMonitor::analyze(), HcalRecHitMonitor::analyze(), analyze(), HcalDeadCellMonitor::analyze(), HcalRawDataMonitor::analyze(), HcalDataIntegrityTask::analyze(), HcalHotCellMonitor::analyze(), HcalDigiMonitor::analyze(), and HcalDetDiagTimingMonitor::analyze().

179 {
180  if (debug_>9) std::cout <<"<HcalBaseDQMonitor::IsAllowedCalibType>"<<std::endl;
181  if (AllowedCalibTypes_.size()==0)
182  {
183  if (debug_>9) std::cout <<"\tNo calib types specified by user; All events allowed"<<std::endl;
184  return true;
185  }
186  MonitorElement* me = dbe_->get((prefixME_+"HcalInfo/CURRENT_EVENT_TYPE").c_str());
187  if (me) currenttype_=me->getIntValue();
188  else
189  {
190  if (debug_>9) std::cout <<"\tCalib Type cannot be determined from HcalMonitorModule"<<std::endl;
191  return true; // is current type can't be determined, assume event is allowed
192  }
193  if (debug_>9) std::cout <<"\tHcalBaseDQMonitor::IsAllowedCalibType checking if calibration type = "<<currenttype_<<" is allowed...";
195  {
196  if (AllowedCalibTypes_[i]==currenttype_)
197  {
198  if (debug_>9) std::cout <<"\t Type allowed!"<<std::endl;
199  return true;
200  }
201  }
202  if (debug_>9) std::cout <<"\t Type not allowed!"<<std::endl;
203  return false;
204 } // bool HcalBaseDQMonitor::IsAllowedCalibType()
int i
Definition: DBlmapReader.cc:9
std::vector< int > AllowedCalibTypes_
uint16_t size_type
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. &quot;my/long/dir/my_histo&quot;)
Definition: DQMStore.cc:1265
int64_t getIntValue(void) const
tuple cout
Definition: gather_cfg.py:41
bool HcalBaseDQMonitor::LumiInOrder ( int  lumisec)
protected

Definition at line 169 of file HcalBaseDQMonitor.cc.

References currentLS, Online_, and skipOutOfOrderLS_.

Referenced by HcalNZSMonitor::analyze(), HcalTrigPrimMonitor::analyze(), HcalCoarsePedestalMonitor::analyze(), HcalBeamMonitor::analyze(), HcalRecHitMonitor::analyze(), analyze(), HcalRawDataMonitor::analyze(), HcalDeadCellMonitor::analyze(), HcalDataIntegrityTask::analyze(), HcalHotCellMonitor::analyze(), HcalDigiMonitor::analyze(), HcalDetDiagTimingMonitor::analyze(), HcalTrigPrimMonitor::beginLuminosityBlock(), HcalBeamMonitor::beginLuminosityBlock(), HcalRawDataMonitor::beginLuminosityBlock(), HcalLSbyLSMonitor::beginLuminosityBlock(), beginLuminosityBlock(), HcalHotCellMonitor::beginLuminosityBlock(), HcalTrigPrimMonitor::endLuminosityBlock(), HcalRecHitMonitor::endLuminosityBlock(), HcalCoarsePedestalMonitor::endLuminosityBlock(), HcalBeamMonitor::endLuminosityBlock(), HcalDeadCellMonitor::endLuminosityBlock(), endLuminosityBlock(), HcalHotCellMonitor::endLuminosityBlock(), and HcalDigiMonitor::endLuminosityBlock().

170 {
171  if (skipOutOfOrderLS_==false) return true; // don't skip out-of-order lumi sections
172  // check that latest lumi section is >= last processed
173  if (Online_ && lumisec<currentLS)
174  return false;
175  return true;
176 }
void HcalBaseDQMonitor::reset ( void  )
protectedvirtual

Reimplemented in HcalDetDiagLEDMonitor, HcalDetDiagTimingMonitor, HcalDigiMonitor, HcalDeadCellMonitor, HcalCoarsePedestalMonitor, HcalHotCellMonitor, HcalBeamMonitor, HcalDataIntegrityTask, HcalDetDiagNoiseMonitor, HcalDetDiagLEDMonitor, HcalLSbyLSMonitor, HcalRecHitMonitor, HcalNoiseMonitor, HcalNZSMonitor, and HcalTrigPrimMonitor.

Definition at line 96 of file HcalBaseDQMonitor.cc.

References gather_cfg::cout, currentLS, currenttype_, debug_, MonitorElement::Fill(), HBpresent_, HEpresent_, HFpresent_, HOpresent_, ievt_, levt_, meIevt_, meLevt_, meTevt_, meTevtHist_, ProblemsCurrentLB, MonitorElement::Reset(), subdir_, and tevt_.

Referenced by HcalDetDiagPedestalMonitor::analyze(), HcalDetDiagLaserMonitor::analyze(), beginRun(), HcalLSbyLSMonitor::reset(), HcalDataIntegrityTask::reset(), HcalHotCellMonitor::reset(), and HcalDeadCellMonitor::reset().

97 {
98  if (debug_>0) std::cout <<"HcalBaseDQMonitor::reset(): task = "<<subdir_<<std::endl;
99  if (meIevt_) meIevt_->Fill(-1);
100  ievt_=0;
101  if (meLevt_) meLevt_->Fill(-1);
102  levt_=0;
103  if (meTevt_) meTevt_->Fill(-1);
104  tevt_=0;
105  if (meTevtHist_) meTevtHist_->Reset();
107  HBpresent_=false;
108  HEpresent_=false;
109  HOpresent_=false;
110  HFpresent_=false;
111  currentLS=0;
112  currenttype_=-1;
113 } //reset()
MonitorElement * ProblemsCurrentLB
MonitorElement * meTevt_
void Fill(long long x)
MonitorElement * meTevtHist_
MonitorElement * meIevt_
tuple cout
Definition: gather_cfg.py:41
void Reset(void)
reset ME (ie. contents, errors, etc)
MonitorElement * meLevt_
void HcalBaseDQMonitor::setup ( void  )
protectedvirtual

Reimplemented in HcalDetDiagLEDMonitor, HcalDetDiagTimingMonitor, HcalDigiMonitor, HcalRawDataMonitor, HcalDeadCellMonitor, HcalDetDiagNoiseMonitor, HcalDataIntegrityTask, HcalHotCellMonitor, HcalDetDiagLEDMonitor, HcalLSbyLSMonitor, HcalBeamMonitor, HcalRecHitMonitor, HcalCoarsePedestalMonitor, HcalNoiseMonitor, HcalTrigPrimMonitor, and HcalNZSMonitor.

Definition at line 120 of file HcalBaseDQMonitor.cc.

References DQMStore::book1D(), DQMStore::book2D(), DQMStore::bookInt(), gather_cfg::cout, dbe_, debug_, MonitorElement::Fill(), MonitorElement::getTH2F(), meIevt_, meLevt_, meTevt_, meTevtHist_, ProblemsCurrentLB, MonitorElement::Reset(), DQMStore::setCurrentFolder(), and subdir_.

Referenced by beginRun(), HcalDetDiagPedestalMonitor::beginRun(), HcalDetDiagLaserMonitor::beginRun(), HcalNZSMonitor::setup(), HcalTrigPrimMonitor::setup(), HcalNoiseMonitor::setup(), HcalCoarsePedestalMonitor::setup(), HcalRecHitMonitor::setup(), HcalBeamMonitor::setup(), HcalLSbyLSMonitor::setup(), HcalDetDiagLEDMonitor::setup(), HcalDataIntegrityTask::setup(), HcalHotCellMonitor::setup(), HcalDetDiagNoiseMonitor::setup(), HcalDeadCellMonitor::setup(), HcalRawDataMonitor::setup(), HcalDigiMonitor::setup(), and HcalDetDiagTimingMonitor::setup().

121 {
122  if (debug_>3) std::cout <<"<HcalBaseDQMonitor> setup in progress"<<std::endl;
124  meIevt_ = dbe_->bookInt("EventsProcessed");
125  if (meIevt_) meIevt_->Fill(-1);
126  meLevt_ = dbe_->bookInt("EventsProcessed_currentLS");
127  if (meLevt_) meLevt_->Fill(-1);
128  meTevt_ = dbe_->bookInt("EventsProcessed_Total");
129  if (meTevt_) meTevt_->Fill(-1);
130  meTevtHist_=dbe_->book1D("Events_Processed_Task_Histogram","Counter of Events Processed By This Task",1,0.5,1.5);
131  if (meTevtHist_) meTevtHist_->Reset();
132  dbe_->setCurrentFolder(subdir_+"LSvalues");
133  ProblemsCurrentLB=dbe_->book2D("ProblemsThisLS","Problem Channels in current Lumi Section",
134  7,0,7,1,0,1);
135  if (ProblemsCurrentLB)
136  {
137  (ProblemsCurrentLB->getTH2F())->GetXaxis()->SetBinLabel(1,"HB");
138  (ProblemsCurrentLB->getTH2F())->GetXaxis()->SetBinLabel(2,"HE");
139  (ProblemsCurrentLB->getTH2F())->GetXaxis()->SetBinLabel(3,"HO");
140  (ProblemsCurrentLB->getTH2F())->GetXaxis()->SetBinLabel(4,"HF");
141  (ProblemsCurrentLB->getTH2F())->GetXaxis()->SetBinLabel(5,"HO0");
142  (ProblemsCurrentLB->getTH2F())->GetXaxis()->SetBinLabel(6,"HO12");
143  (ProblemsCurrentLB->getTH2F())->GetXaxis()->SetBinLabel(7,"HFlumi");
144  (ProblemsCurrentLB->getTH2F())->GetYaxis()->SetBinLabel(1,"Status");
146  }
147 } // setup()
MonitorElement * ProblemsCurrentLB
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
Definition: DQMStore.cc:514
MonitorElement * meTevt_
void Fill(long long x)
MonitorElement * meTevtHist_
MonitorElement * meIevt_
tuple cout
Definition: gather_cfg.py:41
TH2F * getTH2F(void) const
MonitorElement * bookInt(const char *name)
Book int.
Definition: DQMStore.cc:421
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
Definition: DQMStore.cc:642
void Reset(void)
reset ME (ie. contents, errors, etc)
MonitorElement * meLevt_
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:232
void HcalBaseDQMonitor::SetupEtaPhiHists ( EtaPhiHists hh,
std::string  Name,
std::string  Units 
)
inlineprotected

Definition at line 72 of file HcalBaseDQMonitor.h.

References dbe_, and EtaPhiHists::setup().

Referenced by HcalNoiseMonitor::setup(), HcalCoarsePedestalMonitor::setup(), HcalRecHitMonitor::setup(), HcalHotCellMonitor::setup(), HcalDeadCellMonitor::setup(), and HcalDigiMonitor::setup().

73  {
74  hh.setup(dbe_, Name, Units);
75  return;
76  }
void setup(DQMStore *&m_dbe, std::string Name, std::string Units="")

Member Data Documentation

std::vector<int> HcalBaseDQMonitor::AllowedCalibTypes_
protected
int HcalBaseDQMonitor::badChannelStatusMask_
protected
int HcalBaseDQMonitor::currentLS
protected
int HcalBaseDQMonitor::currenttype_
protected
DQMStore* HcalBaseDQMonitor::dbe_
protected

Definition at line 91 of file HcalBaseDQMonitor.h.

Referenced by HcalNoiseMonitor::analyze(), HcalDetDiagLEDMonitor::analyze(), analyze(), HcalDetDiagTimingMonitor::analyze(), HcalDetDiagLaserMonitor::analyze(), beginJob(), HcalRecHitMonitor::beginRun(), HcalDetDiagPedestalMonitor::beginRun(), HcalDetDiagLaserMonitor::beginRun(), HcalCoarsePedestalMonitor::cleanup(), HcalNoiseMonitor::cleanup(), HcalNZSMonitor::cleanup(), HcalTrigPrimMonitor::cleanup(), HcalRecHitMonitor::cleanup(), HcalLSbyLSMonitor::cleanup(), HcalDetDiagLEDMonitor::cleanup(), HcalDataIntegrityTask::cleanup(), HcalHotCellMonitor::cleanup(), HcalBeamMonitor::cleanup(), HcalDeadCellMonitor::cleanup(), HcalDigiMonitor::cleanup(), HcalDetDiagTimingMonitor::cleanup(), HcalTrigPrimMonitor::create_errorflag(), HcalTrigPrimMonitor::create_et_histogram(), HcalTrigPrimMonitor::create_fg_correlation(), HcalTrigPrimMonitor::create_map(), HcalTrigPrimMonitor::create_summary(), HcalTrigPrimMonitor::create_tp_correlation(), HcalLSbyLSMonitor::endLuminosityBlock(), IsAllowedCalibType(), HcalNZSMonitor::processEvent(), HcalTrigPrimMonitor::processEvent(), HcalCoarsePedestalMonitor::processEvent(), HcalBeamMonitor::processEvent(), HcalDataIntegrityTask::processEvent(), HcalRawDataMonitor::processEvent(), HcalDigiMonitor::processEvent(), HcalRecHitMonitor::reset(), HcalNZSMonitor::setup(), HcalNoiseMonitor::setup(), HcalTrigPrimMonitor::setup(), HcalCoarsePedestalMonitor::setup(), HcalRecHitMonitor::setup(), HcalBeamMonitor::setup(), HcalLSbyLSMonitor::setup(), HcalDetDiagLEDMonitor::setup(), HcalDataIntegrityTask::setup(), HcalHotCellMonitor::setup(), HcalDeadCellMonitor::setup(), HcalRawDataMonitor::setup(), HcalDigiMonitor::setup(), setup(), HcalDetDiagTimingMonitor::setup(), SetupEtaPhiHists(), and HcalDigiMonitor::setupSubdetHists().

int HcalBaseDQMonitor::debug_
protected

Definition at line 86 of file HcalBaseDQMonitor.h.

Referenced by HcalNZSMonitor::analyze(), HcalNoiseMonitor::analyze(), HcalCoarsePedestalMonitor::analyze(), HcalRecHitMonitor::analyze(), analyze(), HcalRawDataMonitor::analyze(), HcalDeadCellMonitor::analyze(), HcalDataIntegrityTask::analyze(), HcalHotCellMonitor::analyze(), HcalDigiMonitor::analyze(), beginJob(), HcalNZSMonitor::beginRun(), HcalNoiseMonitor::beginRun(), HcalRecHitMonitor::beginRun(), HcalBeamMonitor::beginRun(), HcalLSbyLSMonitor::beginRun(), HcalDetDiagLEDMonitor::beginRun(), HcalHotCellMonitor::beginRun(), HcalDeadCellMonitor::beginRun(), HcalDataIntegrityTask::beginRun(), beginRun(), HcalDigiMonitor::beginRun(), HcalDetDiagTimingMonitor::beginRun(), HcalCoarsePedestalMonitor::cleanup(), HcalHotCellMonitor::cleanup(), HcalDigiMonitor::cleanup(), HcalLSbyLSMonitor::endJob(), HcalHotCellMonitor::endJob(), HcalCoarsePedestalMonitor::endJob(), HcalDeadCellMonitor::endJob(), HcalRawDataMonitor::endJob(), HcalDigiMonitor::endJob(), HcalBeamMonitor::endLuminosityBlock(), HcalLSbyLSMonitor::endLuminosityBlock(), HcalRecHitMonitor::endRun(), endRun(), HcalRecHitMonitor::fill_Nevents(), HcalDigiMonitor::fill_Nevents(), HcalHotCellMonitor::fillNevents_energy(), HcalHotCellMonitor::fillNevents_neighbor(), HcalHotCellMonitor::fillNevents_persistentenergy(), HcalDeadCellMonitor::fillNevents_problemCells(), HcalHotCellMonitor::fillNevents_problemCells(), HcalDeadCellMonitor::fillNevents_recentdigis(), HcalDeadCellMonitor::fillNevents_recentrechits(), HcalBaseDQMonitor(), HcalBeamMonitor::HcalBeamMonitor(), HcalCoarsePedestalMonitor::HcalCoarsePedestalMonitor(), HcalDataIntegrityTask::HcalDataIntegrityTask(), HcalDeadCellMonitor::HcalDeadCellMonitor(), HcalDetDiagLaserMonitor::HcalDetDiagLaserMonitor(), HcalDetDiagLEDMonitor::HcalDetDiagLEDMonitor(), HcalDetDiagTimingMonitor::HcalDetDiagTimingMonitor(), HcalDigiMonitor::HcalDigiMonitor(), HcalHotCellMonitor::HcalHotCellMonitor(), HcalLSbyLSMonitor::HcalLSbyLSMonitor(), HcalNoiseMonitor::HcalNoiseMonitor(), HcalNZSMonitor::HcalNZSMonitor(), HcalRawDataMonitor::HcalRawDataMonitor(), HcalRecHitMonitor::HcalRecHitMonitor(), HcalTrigPrimMonitor::HcalTrigPrimMonitor(), IsAllowedCalibType(), HcalRawDataMonitor::mapChannproblem(), HcalRawDataMonitor::mapDCCproblem(), HcalRawDataMonitor::mapHTRproblem(), HcalNZSMonitor::processEvent(), HcalCoarsePedestalMonitor::processEvent(), HcalBeamMonitor::processEvent(), HcalRecHitMonitor::processEvent(), HcalDeadCellMonitor::processEvent(), HcalRawDataMonitor::processEvent(), HcalHotCellMonitor::processEvent(), HcalDigiMonitor::processEvent(), HcalRecHitMonitor::processEvent_rechit(), HcalHotCellMonitor::processEvent_rechitenergy(), HcalDataIntegrityTask::reset(), HcalDeadCellMonitor::reset(), reset(), HcalNZSMonitor::setup(), HcalNoiseMonitor::setup(), HcalCoarsePedestalMonitor::setup(), HcalRecHitMonitor::setup(), HcalBeamMonitor::setup(), HcalLSbyLSMonitor::setup(), HcalHotCellMonitor::setup(), HcalDataIntegrityTask::setup(), HcalDeadCellMonitor::setup(), HcalRawDataMonitor::setup(), HcalDigiMonitor::setup(), setup(), and HcalRawDataMonitor::unpack().

bool HcalBaseDQMonitor::enableCleanup_
protected
bool HcalBaseDQMonitor::eventAllowed_
protected

Definition at line 100 of file HcalBaseDQMonitor.h.

Referenced by analyze().

bool HcalBaseDQMonitor::HBpresent_
protected
bool HcalBaseDQMonitor::HEpresent_
protected
bool HcalBaseDQMonitor::HFpresent_
protected
bool HcalBaseDQMonitor::HOpresent_
protected
int HcalBaseDQMonitor::ievt_
protected
std::map<unsigned int, int> HcalBaseDQMonitor::KnownBadCells_
protected
int HcalBaseDQMonitor::levt_
protected
bool HcalBaseDQMonitor::makeDiagnostics_
protected
MonitorElement* HcalBaseDQMonitor::meIevt_
protected

Definition at line 95 of file HcalBaseDQMonitor.h.

Referenced by analyze(), HcalBaseDQMonitor(), reset(), and setup().

MonitorElement* HcalBaseDQMonitor::meLevt_
protected

Definition at line 97 of file HcalBaseDQMonitor.h.

Referenced by analyze(), beginLuminosityBlock(), HcalBaseDQMonitor(), reset(), and setup().

bool HcalBaseDQMonitor::mergeRuns_
protected
MonitorElement* HcalBaseDQMonitor::meTevt_
protected

Definition at line 96 of file HcalBaseDQMonitor.h.

Referenced by analyze(), reset(), and setup().

MonitorElement* HcalBaseDQMonitor::meTevtHist_
protected
int HcalBaseDQMonitor::NLumiBlocks_
protected
bool HcalBaseDQMonitor::Online_
protected
std::string HcalBaseDQMonitor::prefixME_
protected
MonitorElement* HcalBaseDQMonitor::ProblemsCurrentLB
protected
MonitorElement* HcalBaseDQMonitor::ProblemsVsLB
protected
MonitorElement* HcalBaseDQMonitor::ProblemsVsLB_HB
protected
MonitorElement * HcalBaseDQMonitor::ProblemsVsLB_HBHEHF
protected
MonitorElement * HcalBaseDQMonitor::ProblemsVsLB_HE
protected
MonitorElement * HcalBaseDQMonitor::ProblemsVsLB_HF
protected
MonitorElement* HcalBaseDQMonitor::ProblemsVsLB_HO
protected
bool HcalBaseDQMonitor::skipOutOfOrderLS_
protected
std::string HcalBaseDQMonitor::subdir_
protected

Definition at line 88 of file HcalBaseDQMonitor.h.

Referenced by beginJob(), HcalRecHitMonitor::beginRun(), beginRun(), HcalDataIntegrityTask::beginRun(), HcalDetDiagPedestalMonitor::beginRun(), HcalDetDiagLaserMonitor::beginRun(), HcalCoarsePedestalMonitor::cleanup(), HcalNoiseMonitor::cleanup(), HcalNZSMonitor::cleanup(), HcalTrigPrimMonitor::cleanup(), HcalRecHitMonitor::cleanup(), HcalLSbyLSMonitor::cleanup(), HcalDetDiagLEDMonitor::cleanup(), HcalDataIntegrityTask::cleanup(), HcalHotCellMonitor::cleanup(), HcalBeamMonitor::cleanup(), HcalDeadCellMonitor::cleanup(), HcalDigiMonitor::cleanup(), HcalDetDiagTimingMonitor::cleanup(), HcalRecHitMonitor::endRun(), endRun(), HcalBaseDQMonitor(), HcalBeamMonitor::HcalBeamMonitor(), HcalCoarsePedestalMonitor::HcalCoarsePedestalMonitor(), HcalDataIntegrityTask::HcalDataIntegrityTask(), HcalDeadCellMonitor::HcalDeadCellMonitor(), HcalDetDiagLaserMonitor::HcalDetDiagLaserMonitor(), HcalDetDiagLEDMonitor::HcalDetDiagLEDMonitor(), HcalDetDiagPedestalMonitor::HcalDetDiagPedestalMonitor(), HcalDetDiagTimingMonitor::HcalDetDiagTimingMonitor(), HcalDigiMonitor::HcalDigiMonitor(), HcalHotCellMonitor::HcalHotCellMonitor(), HcalLSbyLSMonitor::HcalLSbyLSMonitor(), HcalNoiseMonitor::HcalNoiseMonitor(), HcalNZSMonitor::HcalNZSMonitor(), HcalRawDataMonitor::HcalRawDataMonitor(), HcalRecHitMonitor::HcalRecHitMonitor(), HcalTrigPrimMonitor::HcalTrigPrimMonitor(), HcalRecHitMonitor::reset(), reset(), HcalNZSMonitor::setup(), HcalNoiseMonitor::setup(), HcalTrigPrimMonitor::setup(), HcalCoarsePedestalMonitor::setup(), HcalRecHitMonitor::setup(), HcalBeamMonitor::setup(), HcalLSbyLSMonitor::setup(), HcalDetDiagLEDMonitor::setup(), HcalDataIntegrityTask::setup(), HcalHotCellMonitor::setup(), HcalDeadCellMonitor::setup(), HcalRawDataMonitor::setup(), HcalDigiMonitor::setup(), setup(), HcalDetDiagTimingMonitor::setup(), and HcalDigiMonitor::setupSubdetHists().

int HcalBaseDQMonitor::tevt_
protected