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
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) 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::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
 
- 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 22 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_.

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

References logicalMap_.

59 {
60  if (logicalMap_) delete logicalMap_;
61 }
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, HcalDetDiagNoiseMonitor, HcalRawDataMonitor, HcalDeadCellMonitor, HcalRecHitMonitor, HcalBeamMonitor, HcalCoarsePedestalMonitor, HcalNoiseMonitor, HcalNZSMonitor, and HcalTrigPrimMonitor.

Definition at line 229 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(), HcalCoarsePedestalMonitor::analyze(), HcalNoiseMonitor::analyze(), HcalBeamMonitor::analyze(), HcalRecHitMonitor::analyze(), HcalDeadCellMonitor::analyze(), HcalRawDataMonitor::analyze(), HcalDetDiagNoiseMonitor::analyze(), HcalDataIntegrityTask::analyze(), HcalHotCellMonitor::analyze(), HcalDigiMonitor::analyze(), HcalDetDiagTimingMonitor::analyze(), HcalDetDiagLEDMonitor::analyze(), HcalDetDiagPedestalMonitor::analyze(), and HcalDetDiagLaserMonitor::analyze().

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

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

64 {
65 
66  if (debug_>0) std::cout <<"HcalBaseDQMonitor::beginJob(): task = '"<<subdir_<<"'"<<std::endl;
68 
69  ievt_=0;
70  levt_=0;
71  tevt_=0;
72  currenttype_=-1;
73  HBpresent_=false;
74  HEpresent_=false;
75  HOpresent_=false;
76  HFpresent_=false;
77 
78 
79 } // 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 164 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().

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

Definition at line 87 of file HcalBaseDQMonitor.cc.

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

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

88 {
89  if (debug_>0) std::cout <<"HcalBaseDQMonitor::beginRun(): task = '"<<subdir_<<"'"<<std::endl;
90  if (! mergeRuns_)
91  {
92  this->setup();
93  this->reset();
94  }
95  else if (tevt_ == 0)
96  {
97  this->setup();
98  this->reset();
99  }
100 } // 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 81 of file HcalBaseDQMonitor.cc.

References cleanup(), and enableCleanup_.

82 {
83  if (enableCleanup_)
84  cleanup();
85 } // 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, HcalDetDiagNoiseMonitor, HcalRawDataMonitor, HcalDeadCellMonitor, HcalBeamMonitor, HcalCoarsePedestalMonitor, HcalRecHitMonitor, and HcalTrigPrimMonitor.

Definition at line 175 of file HcalBaseDQMonitor.cc.

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

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

References gather_cfg::cout, debug_, and subdir_.

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

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

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

Definition at line 183 of file HcalBaseDQMonitor.cc.

References currentLS, Online_, and skipOutOfOrderLS_.

Referenced by HcalNZSMonitor::analyze(), HcalTrigPrimMonitor::analyze(), HcalCoarsePedestalMonitor::analyze(), HcalBeamMonitor::analyze(), HcalRecHitMonitor::analyze(), HcalDeadCellMonitor::analyze(), HcalRawDataMonitor::analyze(), 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().

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

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

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

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

Definition at line 131 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(), HcalCoarsePedestalMonitor::setup(), HcalRecHitMonitor::setup(), HcalNoiseMonitor::setup(), HcalBeamMonitor::setup(), HcalLSbyLSMonitor::setup(), HcalDataIntegrityTask::setup(), HcalHotCellMonitor::setup(), HcalDeadCellMonitor::setup(), HcalDetDiagNoiseMonitor::setup(), HcalRawDataMonitor::setup(), HcalDigiMonitor::setup(), HcalDetDiagTimingMonitor::setup(), and HcalDetDiagLEDMonitor::setup().

132 {
133  if (setupDone_)
134  return;
135  setupDone_ = true;
136  if (debug_>3) std::cout <<"<HcalBaseDQMonitor> setup in progress"<<std::endl;
138  meIevt_ = dbe_->bookInt("EventsProcessed");
139  if (meIevt_) meIevt_->Fill(-1);
140  meLevt_ = dbe_->bookInt("EventsProcessed_currentLS");
141  if (meLevt_) meLevt_->Fill(-1);
142  meTevt_ = dbe_->bookInt("EventsProcessed_Total");
143  if (meTevt_) meTevt_->Fill(-1);
144  meTevtHist_=dbe_->book1D("Events_Processed_Task_Histogram","Counter of Events Processed By This Task",1,0.5,1.5);
145  if (meTevtHist_) meTevtHist_->Reset();
146  dbe_->setCurrentFolder(subdir_+"LSvalues");
147  ProblemsCurrentLB=dbe_->book2D("ProblemsThisLS","Problem Channels in current Lumi Section",
148  7,0,7,1,0,1);
149  if (ProblemsCurrentLB)
150  {
151  (ProblemsCurrentLB->getTH2F())->GetXaxis()->SetBinLabel(1,"HB");
152  (ProblemsCurrentLB->getTH2F())->GetXaxis()->SetBinLabel(2,"HE");
153  (ProblemsCurrentLB->getTH2F())->GetXaxis()->SetBinLabel(3,"HO");
154  (ProblemsCurrentLB->getTH2F())->GetXaxis()->SetBinLabel(4,"HF");
155  (ProblemsCurrentLB->getTH2F())->GetXaxis()->SetBinLabel(5,"HO0");
156  (ProblemsCurrentLB->getTH2F())->GetXaxis()->SetBinLabel(6,"HO12");
157  (ProblemsCurrentLB->getTH2F())->GetXaxis()->SetBinLabel(7,"HFlumi");
158  (ProblemsCurrentLB->getTH2F())->GetYaxis()->SetBinLabel(1,"Status");
160  }
161 } // setup()
MonitorElement * ProblemsCurrentLB
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
Definition: DQMStore.cc:942
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:849
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:1070
void Reset(void)
reset ME (ie. contents, errors, etc)
MonitorElement * meLevt_
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:655
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 HcalCoarsePedestalMonitor::setup(), HcalRecHitMonitor::setup(), HcalNoiseMonitor::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(), analyze(), HcalDetDiagTimingMonitor::analyze(), HcalDetDiagLEDMonitor::analyze(), HcalDetDiagLaserMonitor::analyze(), beginJob(), HcalRecHitMonitor::beginRun(), HcalDetDiagPedestalMonitor::beginRun(), HcalDetDiagLaserMonitor::beginRun(), HcalCoarsePedestalMonitor::cleanup(), HcalNZSMonitor::cleanup(), HcalTrigPrimMonitor::cleanup(), HcalNoiseMonitor::cleanup(), HcalRecHitMonitor::cleanup(), HcalLSbyLSMonitor::cleanup(), HcalDataIntegrityTask::cleanup(), HcalHotCellMonitor::cleanup(), HcalBeamMonitor::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(), HcalTrigPrimMonitor::setup(), HcalCoarsePedestalMonitor::setup(), HcalRecHitMonitor::setup(), HcalNoiseMonitor::setup(), HcalBeamMonitor::setup(), HcalLSbyLSMonitor::setup(), HcalDataIntegrityTask::setup(), HcalHotCellMonitor::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(), HcalCoarsePedestalMonitor::analyze(), HcalNoiseMonitor::analyze(), HcalRecHitMonitor::analyze(), HcalDeadCellMonitor::analyze(), HcalRawDataMonitor::analyze(), analyze(), HcalDataIntegrityTask::analyze(), HcalHotCellMonitor::analyze(), HcalDigiMonitor::analyze(), beginJob(), HcalNZSMonitor::beginRun(), HcalRecHitMonitor::beginRun(), HcalNoiseMonitor::beginRun(), HcalBeamMonitor::beginRun(), HcalLSbyLSMonitor::beginRun(), HcalHotCellMonitor::beginRun(), HcalDeadCellMonitor::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(), 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(), HcalCoarsePedestalMonitor::setup(), HcalRecHitMonitor::setup(), HcalNoiseMonitor::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(), HcalNZSMonitor::cleanup(), HcalTrigPrimMonitor::cleanup(), HcalNoiseMonitor::cleanup(), HcalRecHitMonitor::cleanup(), HcalLSbyLSMonitor::cleanup(), HcalDataIntegrityTask::cleanup(), HcalHotCellMonitor::cleanup(), HcalBeamMonitor::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(), 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(), HcalCoarsePedestalMonitor::setup(), HcalRecHitMonitor::setup(), HcalNoiseMonitor::setup(), HcalBeamMonitor::setup(), HcalLSbyLSMonitor::setup(), HcalDataIntegrityTask::setup(), HcalHotCellMonitor::setup(), HcalDeadCellMonitor::setup(), HcalRawDataMonitor::setup(), setup(), HcalDigiMonitor::setup(), HcalDetDiagTimingMonitor::setup(), HcalDetDiagLEDMonitor::setup(), and HcalDigiMonitor::setupSubdetHists().

int HcalBaseDQMonitor::tevt_
protected