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 HcalZDCMonitor

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)
 
static void prevalidate (ConfigurationDescriptions &)
 

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, HcalZDCMonitor, HcalHotCellMonitor, HcalDataIntegrityTask, HcalDeadCellMonitor, HcalRawDataMonitor, HcalDetDiagNoiseMonitor, HcalDetDiagLEDMonitor, HcalRecHitMonitor, HcalBeamMonitor, HcalCoarsePedestalMonitor, HcalNoiseMonitor, HcalTrigPrimMonitor, and HcalNZSMonitor.

Definition at line 213 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(), HcalRawDataMonitor::analyze(), HcalDeadCellMonitor::analyze(), HcalDataIntegrityTask::analyze(), HcalHotCellMonitor::analyze(), HcalZDCMonitor::analyze(), HcalDigiMonitor::analyze(), HcalDetDiagTimingMonitor::analyze(), HcalDetDiagPedestalMonitor::analyze(), and HcalDetDiagLaserMonitor::analyze().

214 {
215  if (debug_>5) std::cout <<"\t<HcalBaseDQMonitor::analyze> event = "<<ievt_<<std::endl;
216  eventAllowed_=true; // assume event is allowed
217 
218  // fill with total events seen (this differs from ievent, which is total # of good events)
219  ++tevt_;
220  if (meTevt_) meTevt_->Fill(tevt_);
221  if (meTevtHist_) meTevtHist_->Fill(1);
222  // skip out of order lumi events
223  if (this->LumiInOrder(e.luminosityBlock())==false)
224  {
225  eventAllowed_=false;
226  return;
227  }
228  // skip events of wrong calibration type
230  if (!eventAllowed_) return;
231 
232  // Event is good; count it
233  ++ievt_;
234  ++levt_;
235  if (meIevt_) meIevt_->Fill(ievt_);
236  if (meLevt_) meLevt_->Fill(levt_);
237 
238 
239  MonitorElement* me;
240  if (HBpresent_==false)
241  {
242  me = dbe_->get((prefixME_+"HcalInfo/HBpresent"));
243  if (me==0 || me->getIntValue()>0) HBpresent_=true;
244  }
245  if (HEpresent_==false)
246  {
247  me = dbe_->get((prefixME_+"HcalInfo/HEpresent"));
248  if (me==0 || me->getIntValue()>0) HEpresent_=true;
249  }
250  if (HOpresent_==false)
251  {
252  me = dbe_->get((prefixME_+"HcalInfo/HOpresent"));
253  if (me==0 || me->getIntValue()>0) HOpresent_=true;
254  }
255  if (HFpresent_==false)
256  {
257  me = dbe_->get((prefixME_+"HcalInfo/HOpresent"));
258  if (me ==0 || me->getIntValue()>0) HFpresent_=true;
259  }
260 
261 
262 } // 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:1468
int64_t getIntValue(void) const
tuple cout
Definition: gather_cfg.py:121
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_, 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:121
void HcalBaseDQMonitor::beginLuminosityBlock ( const edm::LuminosityBlock lumiSeg,
const edm::EventSetup c 
)
protectedvirtual

Reimplemented from edm::EDAnalyzer.

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

Definition at line 157 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(), HcalZDCMonitor::beginLuminosityBlock(), and HcalDigiMonitor::beginLuminosityBlock().

159 {
160  if (this->LumiInOrder(lumiSeg.luminosityBlock())==false) return;
161  currentLS=lumiSeg.luminosityBlock();
162  levt_=0;
163  if (meLevt_!=0) meLevt_->Fill(-1);
164  if (ProblemsCurrentLB)
166 }
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, HcalZDCMonitor, 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(), HcalZDCMonitor::beginRun(), HcalDigiMonitor::beginRun(), and HcalDetDiagTimingMonitor::beginRun().

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

Reimplemented from edm::EDAnalyzer.

Reimplemented in HcalDigiMonitor, HcalRawDataMonitor, HcalDeadCellMonitor, HcalCoarsePedestalMonitor, 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, HcalZDCMonitor, HcalLSbyLSMonitor, HcalRawDataMonitor, HcalDeadCellMonitor, HcalDetDiagNoiseMonitor, HcalBeamMonitor, HcalCoarsePedestalMonitor, HcalRecHitMonitor, and HcalTrigPrimMonitor.

Definition at line 168 of file HcalBaseDQMonitor.cc.

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

Referenced by HcalZDCMonitor::endLuminosityBlock().

170 {
171  if (this->LumiInOrder(lumiSeg.luminosityBlock())==false) return;
172  // Inherited classes do end-of-lumi functions here
173 }
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, HcalZDCMonitor, HcalRawDataMonitor, HcalDeadCellMonitor, HcalCoarsePedestalMonitor, HcalHotCellMonitor, HcalLSbyLSMonitor, and HcalRecHitMonitor.

Definition at line 98 of file HcalBaseDQMonitor.cc.

References gather_cfg::cout, debug_, and subdir_.

Referenced by HcalZDCMonitor::endRun().

99 {
100  if (debug_>0) std::cout <<"HcalBaseDQMonitor::endRun: task = "<<subdir_<<std::endl;
101 } //endRun(...)
tuple cout
Definition: gather_cfg.py:121
bool HcalBaseDQMonitor::IsAllowedCalibType ( )
protected

Definition at line 185 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(), HcalRawDataMonitor::analyze(), HcalDeadCellMonitor::analyze(), HcalDataIntegrityTask::analyze(), HcalHotCellMonitor::analyze(), HcalZDCMonitor::analyze(), HcalDigiMonitor::analyze(), and HcalDetDiagTimingMonitor::analyze().

186 {
187  if (debug_>9) std::cout <<"<HcalBaseDQMonitor::IsAllowedCalibType>"<<std::endl;
188  if (AllowedCalibTypes_.size()==0)
189  {
190  if (debug_>9) std::cout <<"\tNo calib types specified by user; All events allowed"<<std::endl;
191  return true;
192  }
193  MonitorElement* me = dbe_->get((prefixME_+"HcalInfo/CURRENT_EVENT_TYPE").c_str());
194  if (me) currenttype_=me->getIntValue();
195  else
196  {
197  if (debug_>9) std::cout <<"\tCalib Type cannot be determined from HcalMonitorModule"<<std::endl;
198  return true; // is current type can't be determined, assume event is allowed
199  }
200  if (debug_>9) std::cout <<"\tHcalBaseDQMonitor::IsAllowedCalibType checking if calibration type = "<<currenttype_<<" is allowed...";
202  {
203  if (AllowedCalibTypes_[i]==currenttype_)
204  {
205  if (debug_>9) std::cout <<"\t Type allowed!"<<std::endl;
206  return true;
207  }
208  }
209  if (debug_>9) std::cout <<"\t Type not allowed!"<<std::endl;
210  return false;
211 } // 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:1468
int64_t getIntValue(void) const
tuple cout
Definition: gather_cfg.py:121
bool HcalBaseDQMonitor::LumiInOrder ( int  lumisec)
protected

Definition at line 176 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(), HcalZDCMonitor::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().

177 {
178  if (skipOutOfOrderLS_==false) return true; // don't skip out-of-order lumi sections
179  // check that latest lumi section is >= last processed
180  if (Online_ && lumisec<currentLS)
181  return false;
182  return true;
183 }
void HcalBaseDQMonitor::reset ( void  )
protectedvirtual

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

Definition at line 103 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().

104 {
105  if (debug_>0) std::cout <<"HcalBaseDQMonitor::reset(): task = "<<subdir_<<std::endl;
106  if (meIevt_) meIevt_->Fill(-1);
107  ievt_=0;
108  if (meLevt_) meLevt_->Fill(-1);
109  levt_=0;
110  if (meTevt_) meTevt_->Fill(-1);
111  tevt_=0;
112  if (meTevtHist_) meTevtHist_->Reset();
114  HBpresent_=false;
115  HEpresent_=false;
116  HOpresent_=false;
117  HFpresent_=false;
118  currentLS=0;
119  currenttype_=-1;
120 } //reset()
MonitorElement * ProblemsCurrentLB
MonitorElement * meTevt_
void Fill(long long x)
MonitorElement * meTevtHist_
MonitorElement * meIevt_
tuple cout
Definition: gather_cfg.py:121
void Reset(void)
reset ME (ie. contents, errors, etc)
MonitorElement * meLevt_
void HcalBaseDQMonitor::setup ( void  )
protectedvirtual

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

Definition at line 127 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(), HcalZDCMonitor::setup(), HcalRawDataMonitor::setup(), HcalDigiMonitor::setup(), and HcalDetDiagTimingMonitor::setup().

128 {
129  if (debug_>3) std::cout <<"<HcalBaseDQMonitor> setup in progress"<<std::endl;
131  meIevt_ = dbe_->bookInt("EventsProcessed");
132  if (meIevt_) meIevt_->Fill(-1);
133  meLevt_ = dbe_->bookInt("EventsProcessed_currentLS");
134  if (meLevt_) meLevt_->Fill(-1);
135  meTevt_ = dbe_->bookInt("EventsProcessed_Total");
136  if (meTevt_) meTevt_->Fill(-1);
137  meTevtHist_=dbe_->book1D("Events_Processed_Task_Histogram","Counter of Events Processed By This Task",1,0.5,1.5);
138  if (meTevtHist_) meTevtHist_->Reset();
139  dbe_->setCurrentFolder(subdir_+"LSvalues");
140  ProblemsCurrentLB=dbe_->book2D("ProblemsThisLS","Problem Channels in current Lumi Section",
141  7,0,7,1,0,1);
142  if (ProblemsCurrentLB)
143  {
144  (ProblemsCurrentLB->getTH2F())->GetXaxis()->SetBinLabel(1,"HB");
145  (ProblemsCurrentLB->getTH2F())->GetXaxis()->SetBinLabel(2,"HE");
146  (ProblemsCurrentLB->getTH2F())->GetXaxis()->SetBinLabel(3,"HO");
147  (ProblemsCurrentLB->getTH2F())->GetXaxis()->SetBinLabel(4,"HF");
148  (ProblemsCurrentLB->getTH2F())->GetXaxis()->SetBinLabel(5,"HO0");
149  (ProblemsCurrentLB->getTH2F())->GetXaxis()->SetBinLabel(6,"HO12");
150  (ProblemsCurrentLB->getTH2F())->GetXaxis()->SetBinLabel(7,"HFlumi");
151  (ProblemsCurrentLB->getTH2F())->GetYaxis()->SetBinLabel(1,"Status");
153  }
154 } // setup()
MonitorElement * ProblemsCurrentLB
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
Definition: DQMStore.cc:717
MonitorElement * meTevt_
void Fill(long long x)
MonitorElement * meTevtHist_
MonitorElement * meIevt_
tuple cout
Definition: gather_cfg.py:121
TH2F * getTH2F(void) const
MonitorElement * bookInt(const char *name)
Book int.
Definition: DQMStore.cc:624
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:845
void Reset(void)
reset ME (ie. contents, errors, etc)
MonitorElement * meLevt_
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:429
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(), HcalZDCMonitor::endLuminosityBlock(), IsAllowedCalibType(), HcalNZSMonitor::processEvent(), HcalTrigPrimMonitor::processEvent(), HcalCoarsePedestalMonitor::processEvent(), HcalBeamMonitor::processEvent(), HcalDataIntegrityTask::processEvent(), HcalRawDataMonitor::processEvent(), HcalDigiMonitor::processEvent(), HcalRecHitMonitor::reset(), HcalNZSMonitor::setup(), HcalTrigPrimMonitor::setup(), HcalNoiseMonitor::setup(), HcalCoarsePedestalMonitor::setup(), HcalRecHitMonitor::setup(), HcalBeamMonitor::setup(), HcalLSbyLSMonitor::setup(), HcalDetDiagLEDMonitor::setup(), HcalDataIntegrityTask::setup(), HcalHotCellMonitor::setup(), HcalDeadCellMonitor::setup(), HcalZDCMonitor::setup(), HcalRawDataMonitor::setup(), setup(), HcalDigiMonitor::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(), HcalZDCMonitor::HcalZDCMonitor(), IsAllowedCalibType(), HcalRawDataMonitor::mapChannproblem(), HcalRawDataMonitor::mapDCCproblem(), HcalRawDataMonitor::mapHTRproblem(), HcalNZSMonitor::processEvent(), HcalCoarsePedestalMonitor::processEvent(), HcalBeamMonitor::processEvent(), HcalRecHitMonitor::processEvent(), HcalRawDataMonitor::processEvent(), HcalDeadCellMonitor::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(), HcalZDCMonitor::setup(), HcalRawDataMonitor::setup(), setup(), HcalDigiMonitor::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(), HcalZDCMonitor::HcalZDCMonitor(), HcalRecHitMonitor::reset(), reset(), HcalNZSMonitor::setup(), HcalTrigPrimMonitor::setup(), HcalNoiseMonitor::setup(), HcalCoarsePedestalMonitor::setup(), HcalRecHitMonitor::setup(), HcalBeamMonitor::setup(), HcalLSbyLSMonitor::setup(), HcalDetDiagLEDMonitor::setup(), HcalDataIntegrityTask::setup(), HcalHotCellMonitor::setup(), HcalDeadCellMonitor::setup(), HcalZDCMonitor::setup(), HcalRawDataMonitor::setup(), setup(), HcalDigiMonitor::setup(), HcalDetDiagTimingMonitor::setup(), and HcalDigiMonitor::setupSubdetHists().

int HcalBaseDQMonitor::tevt_
protected