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 | Private Attributes
HcalBaseDQMonitor Class Reference

#include <HcalBaseDQMonitor.h>

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

Public Member Functions

 HcalBaseDQMonitor (const edm::ParameterSet &ps)
 
 HcalBaseDQMonitor ()
 
virtual ~HcalBaseDQMonitor ()
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 EDConsumerBase ()
 
ProductHolderIndex indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndex > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndex > &) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

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)
 
void getLogicalMap (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
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
CurrentProcessingContext const * currentContext () const
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

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_
 
HcalLogicalMaplogicalMap_
 
bool makeDiagnostics_
 
MonitorElementmeIevt_
 
MonitorElementmeLevt_
 
bool mergeRuns_
 
MonitorElementmeTevt_
 
MonitorElementmeTevtHist_
 
bool needLogicalMap_
 
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_
 

Private Attributes

bool setupDone_
 

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 24 of file HcalBaseDQMonitor.h.

Constructor & Destructor Documentation

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

Definition at line 24 of file HcalBaseDQMonitor.cc.

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

25 {
26  Online_ = ps.getUntrackedParameter<bool>("online",false);
27  mergeRuns_ = ps.getUntrackedParameter<bool>("mergeRuns",false);
28  enableCleanup_ = ps.getUntrackedParameter<bool>("enableCleanup",false);
29  debug_ = ps.getUntrackedParameter<int>("debug",0);
30  prefixME_ = ps.getUntrackedParameter<std::string>("subSystemFolder","Hcal/");
31  if (prefixME_.substr(prefixME_.size()-1,prefixME_.size())!="/")
32  prefixME_.append("/");
33  subdir_ = ps.getUntrackedParameter<std::string>("TaskFolder","Test/");
34  if (subdir_.size()>0 && subdir_.substr(subdir_.size()-1,subdir_.size())!="/")
35  subdir_.append("/");
36  subdir_=prefixME_+subdir_;
37  AllowedCalibTypes_ = ps.getUntrackedParameter<std::vector<int> > ("AllowedCalibTypes");
38  skipOutOfOrderLS_ = ps.getUntrackedParameter<bool>("skipOutOfOrderLS",false);
39  NLumiBlocks_ = ps.getUntrackedParameter<int>("NLumiBlocks",4000);
40  makeDiagnostics_ = ps.getUntrackedParameter<bool>("makeDiagnostics",false);
41 
42  setupDone_ = false;
43  logicalMap_= 0;
44  needLogicalMap_=false;
45  meIevt_=0;
46  meLevt_=0;
47  meTevtHist_=0;
48  ProblemsVsLB=0;
55 } //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
HcalLogicalMap * logicalMap_
MonitorElement * meIevt_
MonitorElement * ProblemsVsLB_HE
MonitorElement * ProblemsVsLB_HO
MonitorElement * ProblemsVsLB
MonitorElement * meLevt_
HcalBaseDQMonitor::HcalBaseDQMonitor ( )
inline

Definition at line 32 of file HcalBaseDQMonitor.h.

HcalBaseDQMonitor::~HcalBaseDQMonitor ( )
virtual

Definition at line 60 of file HcalBaseDQMonitor.cc.

References logicalMap_.

61 {
62  if (logicalMap_) delete logicalMap_;
63 }
HcalLogicalMap * logicalMap_

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

Definition at line 231 of file HcalBaseDQMonitor.cc.

References gather_cfg::cout, dbe_, debug_, eventAllowed_, MonitorElement::Fill(), DQMStore::get(), MonitorElement::getIntValue(), getLogicalMap(), 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(), HcalDetDiagNoiseMonitor::analyze(), HcalDeadCellMonitor::analyze(), HcalRawDataMonitor::analyze(), HcalDataIntegrityTask::analyze(), HcalHotCellMonitor::analyze(), HcalDigiMonitor::analyze(), HcalDetDiagTimingMonitor::analyze(), HcalDetDiagLEDMonitor::analyze(), HcalDetDiagPedestalMonitor::analyze(), and HcalDetDiagLaserMonitor::analyze().

232 {
233  getLogicalMap(c);
234 
235  if (debug_>5) std::cout <<"\t<HcalBaseDQMonitor::analyze> event = "<<ievt_<<std::endl;
236  eventAllowed_=true; // assume event is allowed
237 
238  // fill with total events seen (this differs from ievent, which is total # of good events)
239  ++tevt_;
240  if (meTevt_) meTevt_->Fill(tevt_);
241  if (meTevtHist_) meTevtHist_->Fill(1);
242  // skip out of order lumi events
243  if (this->LumiInOrder(e.luminosityBlock())==false)
244  {
245  eventAllowed_=false;
246  return;
247  }
248  // skip events of wrong calibration type
250  if (!eventAllowed_) return;
251 
252  // Event is good; count it
253  ++ievt_;
254  ++levt_;
255  if (meIevt_) meIevt_->Fill(ievt_);
256  if (meLevt_) meLevt_->Fill(levt_);
257 
258 
259  MonitorElement* me;
260  if (HBpresent_==false)
261  {
262  me = dbe_->get((prefixME_+"HcalInfo/HBpresent"));
263  if (me==0 || me->getIntValue()>0) HBpresent_=true;
264  }
265  if (HEpresent_==false)
266  {
267  me = dbe_->get((prefixME_+"HcalInfo/HEpresent"));
268  if (me==0 || me->getIntValue()>0) HEpresent_=true;
269  }
270  if (HOpresent_==false)
271  {
272  me = dbe_->get((prefixME_+"HcalInfo/HOpresent"));
273  if (me==0 || me->getIntValue()>0) HOpresent_=true;
274  }
275  if (HFpresent_==false)
276  {
277  me = dbe_->get((prefixME_+"HcalInfo/HOpresent"));
278  if (me ==0 || me->getIntValue()>0) HFpresent_=true;
279  }
280 
281 
282 } // void HcalBaseDQMonitor::analyze(const edm::Event& e, const edm::EventSetup& c)
bool LumiInOrder(int lumisec)
edm::LuminosityBlockNumber_t luminosityBlock() const
Definition: EventBase.h:59
void getLogicalMap(const edm::EventSetup &c)
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:1473
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 65 of file HcalBaseDQMonitor.cc.

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

66 {
67 
68  if (debug_>0) std::cout <<"HcalBaseDQMonitor::beginJob(): task = '"<<subdir_<<"'"<<std::endl;
70 
71  ievt_=0;
72  levt_=0;
73  tevt_=0;
74  currenttype_=-1;
75  HBpresent_=false;
76  HEpresent_=false;
77  HOpresent_=false;
78  HFpresent_=false;
79 
80 
81 } // 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, HcalHotCellMonitor, HcalLSbyLSMonitor, HcalRawDataMonitor, HcalCoarsePedestalMonitor, HcalBeamMonitor, and HcalTrigPrimMonitor.

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

168 {
169  if (this->LumiInOrder(lumiSeg.luminosityBlock())==false) return;
170  currentLS=lumiSeg.luminosityBlock();
171  levt_=0;
172  if (meLevt_!=0) meLevt_->Fill(-1);
173  if (ProblemsCurrentLB)
175 }
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, HcalRawDataMonitor, HcalDetDiagNoiseMonitor, HcalDeadCellMonitor, HcalHotCellMonitor, HcalLSbyLSMonitor, HcalBeamMonitor, HcalRecHitMonitor, HcalTrigPrimMonitor, HcalCoarsePedestalMonitor, HcalNoiseMonitor, and HcalNZSMonitor.

Definition at line 89 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(), HcalHotCellMonitor::beginRun(), HcalDeadCellMonitor::beginRun(), HcalDetDiagNoiseMonitor::beginRun(), HcalRawDataMonitor::beginRun(), HcalDataIntegrityTask::beginRun(), HcalDigiMonitor::beginRun(), HcalDetDiagTimingMonitor::beginRun(), and HcalDetDiagLEDMonitor::beginRun().

90 {
91  if (debug_>0) std::cout <<"HcalBaseDQMonitor::beginRun(): task = '"<<subdir_<<"'"<<std::endl;
92  if (! mergeRuns_)
93  {
94  this->setup();
95  this->reset();
96  }
97  else if (tevt_ == 0)
98  {
99  this->setup();
100  this->reset();
101  }
102 } // 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, HcalCoarsePedestalMonitor, HcalDeadCellMonitor, HcalHotCellMonitor, HcalLSbyLSMonitor, HcalRecHitMonitor, and HcalTrigPrimMonitor.

Definition at line 83 of file HcalBaseDQMonitor.cc.

References cleanup(), and enableCleanup_.

84 {
85  if (enableCleanup_)
86  cleanup();
87 } // 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 177 of file HcalBaseDQMonitor.cc.

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

179 {
180  if (this->LumiInOrder(lumiSeg.luminosityBlock())==false) return;
181  // Inherited classes do end-of-lumi functions here
182 }
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 104 of file HcalBaseDQMonitor.cc.

References gather_cfg::cout, debug_, and subdir_.

105 {
106  if (debug_>0) std::cout <<"HcalBaseDQMonitor::endRun: task = "<<subdir_<<std::endl;
107 } //endRun(...)
tuple cout
Definition: gather_cfg.py:121
void HcalBaseDQMonitor::getLogicalMap ( const edm::EventSetup c)
protected
bool HcalBaseDQMonitor::IsAllowedCalibType ( )
protected

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

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

Definition at line 185 of file HcalBaseDQMonitor.cc.

References currentLS, Online_, and skipOutOfOrderLS_.

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

186 {
187  if (skipOutOfOrderLS_==false) return true; // don't skip out-of-order lumi sections
188  // check that latest lumi section is >= last processed
189  if (Online_ && lumisec<currentLS)
190  return false;
191  return true;
192 }
void HcalBaseDQMonitor::reset ( void  )
protectedvirtual

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

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

110 {
111  if (debug_>0) std::cout <<"HcalBaseDQMonitor::reset(): task = "<<subdir_<<std::endl;
112  if (meIevt_) meIevt_->Fill(-1);
113  ievt_=0;
114  if (meLevt_) meLevt_->Fill(-1);
115  levt_=0;
116  if (meTevt_) meTevt_->Fill(-1);
117  tevt_=0;
118  if (meTevtHist_) meTevtHist_->Reset();
120  HBpresent_=false;
121  HEpresent_=false;
122  HOpresent_=false;
123  HFpresent_=false;
124  currentLS=0;
125  currenttype_=-1;
126 } //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, HcalDeadCellMonitor, HcalDataIntegrityTask, HcalDetDiagNoiseMonitor, HcalHotCellMonitor, HcalLSbyLSMonitor, HcalBeamMonitor, HcalRecHitMonitor, HcalCoarsePedestalMonitor, HcalNoiseMonitor, HcalTrigPrimMonitor, and HcalNZSMonitor.

Definition at line 133 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(), setupDone_, and subdir_.

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

134 {
135  if (setupDone_)
136  return;
137  setupDone_ = true;
138  if (debug_>3) std::cout <<"<HcalBaseDQMonitor> setup in progress"<<std::endl;
140  meIevt_ = dbe_->bookInt("EventsProcessed");
141  if (meIevt_) meIevt_->Fill(-1);
142  meLevt_ = dbe_->bookInt("EventsProcessed_currentLS");
143  if (meLevt_) meLevt_->Fill(-1);
144  meTevt_ = dbe_->bookInt("EventsProcessed_Total");
145  if (meTevt_) meTevt_->Fill(-1);
146  meTevtHist_=dbe_->book1D("Events_Processed_Task_Histogram","Counter of Events Processed By This Task",1,0.5,1.5);
147  if (meTevtHist_) meTevtHist_->Reset();
148  dbe_->setCurrentFolder(subdir_+"LSvalues");
149  ProblemsCurrentLB=dbe_->book2D("ProblemsThisLS","Problem Channels in current Lumi Section",
150  7,0,7,1,0,1);
151  if (ProblemsCurrentLB)
152  {
153  (ProblemsCurrentLB->getTH2F())->GetXaxis()->SetBinLabel(1,"HB");
154  (ProblemsCurrentLB->getTH2F())->GetXaxis()->SetBinLabel(2,"HE");
155  (ProblemsCurrentLB->getTH2F())->GetXaxis()->SetBinLabel(3,"HO");
156  (ProblemsCurrentLB->getTH2F())->GetXaxis()->SetBinLabel(4,"HF");
157  (ProblemsCurrentLB->getTH2F())->GetXaxis()->SetBinLabel(5,"HO0");
158  (ProblemsCurrentLB->getTH2F())->GetXaxis()->SetBinLabel(6,"HO12");
159  (ProblemsCurrentLB->getTH2F())->GetXaxis()->SetBinLabel(7,"HFlumi");
160  (ProblemsCurrentLB->getTH2F())->GetYaxis()->SetBinLabel(1,"Status");
162  }
163 } // setup()
MonitorElement * ProblemsCurrentLB
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
Definition: DQMStore.cc:722
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:629
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:850
void Reset(void)
reset ME (ie. contents, errors, etc)
MonitorElement * meLevt_
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:434
void HcalBaseDQMonitor::SetupEtaPhiHists ( EtaPhiHists hh,
std::string  Name,
std::string  Units 
)
inlineprotected

Definition at line 76 of file HcalBaseDQMonitor.h.

References dbe_, and EtaPhiHists::setup().

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

77  {
78  hh.setup(dbe_, Name, Units);
79  return;
80  }
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 95 of file HcalBaseDQMonitor.h.

Referenced by HcalNoiseMonitor::analyze(), HcalDetDiagNoiseMonitor::analyze(), analyze(), HcalDetDiagTimingMonitor::analyze(), HcalDetDiagLEDMonitor::analyze(), HcalDetDiagLaserMonitor::analyze(), beginJob(), HcalRecHitMonitor::beginRun(), HcalDetDiagPedestalMonitor::beginRun(), HcalDetDiagLaserMonitor::beginRun(), HcalCoarsePedestalMonitor::cleanup(), HcalNoiseMonitor::cleanup(), HcalNZSMonitor::cleanup(), HcalTrigPrimMonitor::cleanup(), HcalRecHitMonitor::cleanup(), HcalLSbyLSMonitor::cleanup(), HcalDataIntegrityTask::cleanup(), HcalHotCellMonitor::cleanup(), HcalBeamMonitor::cleanup(), HcalDetDiagNoiseMonitor::cleanup(), HcalDeadCellMonitor::cleanup(), HcalDigiMonitor::cleanup(), HcalDetDiagTimingMonitor::cleanup(), HcalDetDiagLEDMonitor::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(), HcalHotCellMonitor::setup(), HcalDetDiagNoiseMonitor::setup(), HcalDataIntegrityTask::setup(), HcalDeadCellMonitor::setup(), HcalRawDataMonitor::setup(), setup(), HcalDigiMonitor::setup(), HcalDetDiagTimingMonitor::setup(), HcalDetDiagLEDMonitor::setup(), SetupEtaPhiHists(), and HcalDigiMonitor::setupSubdetHists().

int HcalBaseDQMonitor::debug_
protected

Definition at line 90 of file HcalBaseDQMonitor.h.

Referenced by HcalNZSMonitor::analyze(), HcalNoiseMonitor::analyze(), HcalCoarsePedestalMonitor::analyze(), HcalRecHitMonitor::analyze(), HcalDetDiagNoiseMonitor::analyze(), analyze(), HcalDeadCellMonitor::analyze(), HcalRawDataMonitor::analyze(), HcalDataIntegrityTask::analyze(), HcalHotCellMonitor::analyze(), HcalDigiMonitor::analyze(), beginJob(), HcalNZSMonitor::beginRun(), HcalNoiseMonitor::beginRun(), HcalRecHitMonitor::beginRun(), HcalBeamMonitor::beginRun(), HcalLSbyLSMonitor::beginRun(), HcalHotCellMonitor::beginRun(), HcalDeadCellMonitor::beginRun(), HcalDetDiagNoiseMonitor::beginRun(), HcalDataIntegrityTask::beginRun(), beginRun(), HcalDigiMonitor::beginRun(), HcalDetDiagTimingMonitor::beginRun(), HcalDetDiagLEDMonitor::beginRun(), HcalCoarsePedestalMonitor::cleanup(), HcalHotCellMonitor::cleanup(), HcalDigiMonitor::cleanup(), HcalLSbyLSMonitor::endJob(), HcalDeadCellMonitor::endJob(), HcalHotCellMonitor::endJob(), HcalCoarsePedestalMonitor::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(), HcalDetDiagNoiseMonitor::HcalDetDiagNoiseMonitor(), 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(), HcalDataIntegrityTask::setup(), HcalHotCellMonitor::setup(), HcalDeadCellMonitor::setup(), HcalRawDataMonitor::setup(), setup(), HcalDigiMonitor::setup(), and HcalRawDataMonitor::unpack().

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

Definition at line 104 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
HcalLogicalMap* HcalBaseDQMonitor::logicalMap_
protected
bool HcalBaseDQMonitor::makeDiagnostics_
protected
MonitorElement* HcalBaseDQMonitor::meIevt_
protected

Definition at line 99 of file HcalBaseDQMonitor.h.

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

MonitorElement* HcalBaseDQMonitor::meLevt_
protected

Definition at line 101 of file HcalBaseDQMonitor.h.

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

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

Definition at line 100 of file HcalBaseDQMonitor.h.

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

MonitorElement* HcalBaseDQMonitor::meTevtHist_
protected
bool HcalBaseDQMonitor::needLogicalMap_
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::setupDone_
private

Definition at line 128 of file HcalBaseDQMonitor.h.

Referenced by HcalBaseDQMonitor(), and setup().

bool HcalBaseDQMonitor::skipOutOfOrderLS_
protected
std::string HcalBaseDQMonitor::subdir_
protected

Definition at line 92 of file HcalBaseDQMonitor.h.

Referenced by beginJob(), HcalRecHitMonitor::beginRun(), HcalDataIntegrityTask::beginRun(), beginRun(), HcalDetDiagPedestalMonitor::beginRun(), HcalDetDiagLaserMonitor::beginRun(), HcalCoarsePedestalMonitor::cleanup(), HcalNoiseMonitor::cleanup(), HcalNZSMonitor::cleanup(), HcalTrigPrimMonitor::cleanup(), HcalRecHitMonitor::cleanup(), HcalLSbyLSMonitor::cleanup(), HcalDataIntegrityTask::cleanup(), HcalHotCellMonitor::cleanup(), HcalBeamMonitor::cleanup(), HcalDetDiagNoiseMonitor::cleanup(), HcalDeadCellMonitor::cleanup(), HcalDigiMonitor::cleanup(), HcalDetDiagTimingMonitor::cleanup(), HcalDetDiagLEDMonitor::cleanup(), HcalRecHitMonitor::endRun(), endRun(), HcalBaseDQMonitor(), HcalBeamMonitor::HcalBeamMonitor(), HcalCoarsePedestalMonitor::HcalCoarsePedestalMonitor(), HcalDataIntegrityTask::HcalDataIntegrityTask(), HcalDeadCellMonitor::HcalDeadCellMonitor(), HcalDetDiagLaserMonitor::HcalDetDiagLaserMonitor(), HcalDetDiagLEDMonitor::HcalDetDiagLEDMonitor(), HcalDetDiagNoiseMonitor::HcalDetDiagNoiseMonitor(), 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(), HcalTrigPrimMonitor::setup(), HcalNoiseMonitor::setup(), HcalCoarsePedestalMonitor::setup(), HcalRecHitMonitor::setup(), HcalBeamMonitor::setup(), HcalLSbyLSMonitor::setup(), HcalDetDiagNoiseMonitor::setup(), HcalHotCellMonitor::setup(), HcalDataIntegrityTask::setup(), HcalDeadCellMonitor::setup(), HcalRawDataMonitor::setup(), setup(), HcalDigiMonitor::setup(), HcalDetDiagTimingMonitor::setup(), HcalDetDiagLEDMonitor::setup(), and HcalDigiMonitor::setupSubdetHists().

int HcalBaseDQMonitor::tevt_
protected