CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalDeadCellMonitor.h
Go to the documentation of this file.
1 #ifndef DQM_HCALMONITORTASKS_HCALDEADCELLMONITOR_H
2 #define DQM_HCALMONITORTASKS_HCALDEADCELLMONITOR_H
3 
9 
10 // Channel status DB stuff
11 
16 
19 
20 #include <cmath>
21 #include <iostream>
22 #include <fstream>
23 
30 
31  public:
33 
35 
36  void setup(DQMStore::IBooker &);
38  void analyze(edm::Event const&e, edm::EventSetup const&s);
39  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
40  const edm::EventSetup& c);
41  void endRun(const edm::Run& run, const edm::EventSetup& c);
42  void endJob();
43  void reset();
44 
45  void processEvent(const HBHERecHitCollection& hbHits,
46  const HORecHitCollection& hoHits,
47  const HFRecHitCollection& hfHits,
48  const HBHEDigiCollection& hbhedigi,
49  const HODigiCollection& hodigi,
50  const HFDigiCollection& hfdigi
51  );
52 
53  private:
54  void zeroCounters(bool resetpresent=false);
55 
57  template<class T> void process_Digi(T& digi);
58  template<class T> void process_RecHit(T& rechit);
59 
62 
63  // Booleans to control which of the dead cell checking routines are used
66 
67  void fillNevents_problemCells(); // problemcells always checks for never-present digis, rechits
70 
71  // specify minimum energy threshold for energy test
77 
82 
83  // Problems vs. lumi block
92 
94  int beamMode_;
95  bool doReset_;
96 
98  bool present_digi[85][72][4]; // tests that a good digi was present at least once
99  bool present_rechit[85][72][4]; // tests that rechit with energy > threshold at least once
100  unsigned int recentoccupancy_digi[85][72][4]; // tests that cells haven't gone missing for long periods
101  unsigned int recentoccupancy_rechit[85][72][4]; // tests that cells haven't dropped below threshold for long periods
102  unsigned int occupancy_RBX[156];
103 
104  int deadevt_; // running count of events processed since last dead cell check
106  int rbxlost[156];
114 
123 
125 
130 };
131 
132 #endif
edm::InputTag hfRechitLabel_
MonitorElement * NumberOfNeverPresentRecHitsHO
MonitorElement * NumberOfRecentMissingRecHitsHF
MonitorElement * NumberOfNeverPresentRecHits
MonitorElement * NumberOfNeverPresentDigisHB
int ib
Definition: cuy.py:660
void analyze(edm::Event const &e, edm::EventSetup const &s)
MonitorElement * HEDeadVsEvent
MonitorElement * NumberOfRecentMissingRecHits
void zeroCounters(bool resetpresent=false)
bool present_digi[85][72][4]
edm::InputTag hbheRechitLabel_
MonitorElement * NumberOfNeverPresentDigisHE
void endRun(const edm::Run &run, const edm::EventSetup &c)
HcalDeadCellMonitor(const edm::ParameterSet &ps)
MonitorElement * NumberOfRecentMissingDigisHB
void process_RecHit(T &rechit)
MonitorElement * ProblemsInLastNLB_HO01_alarm
MonitorElement * NumberOfRecentMissingDigisHE
bool present_rechit[85][72][4]
edm::EDGetTokenT< HORecHitCollection > tok_ho_
edm::EDGetTokenT< DcsStatusCollection > tok_dcs_
EtaPhiHists RecHitPresentByDepth
MonitorElement * RBX_loss_VS_LB
MonitorElement * ProblemsVsLB
MonitorElement * NumberOfNeverPresentDigisHF
edm::InputTag hoRechitLabel_
unsigned int occupancy_RBX[156]
MonitorElement * NumberOfNeverPresentDigisHO
MonitorElement * NumberOfNeverPresentRecHitsHB
MonitorElement * Nevents
unsigned int recentoccupancy_rechit[85][72][4]
MonitorElement * NumberOfRecentMissingRecHitsHE
MonitorElement * ProblemsVsLB_HF
MonitorElement * NumberOfRecentMissingDigisHO
MonitorElement * NumberOfNeverPresentRecHitsHF
edm::EDGetTokenT< HODigiCollection > tok_hodigi_
void bookHistograms(DQMStore::IBooker &ib, const edm::Run &run, const edm::EventSetup &c)
MonitorElement * ProblemsVsLB_HB
void setup(DQMStore::IBooker &)
edm::EDGetTokenT< HFRecHitCollection > tok_hf_
unsigned int recentoccupancy_digi[85][72][4]
void processEvent(const HBHERecHitCollection &hbHits, const HORecHitCollection &hoHits, const HFRecHitCollection &hfHits, const HBHEDigiCollection &hbhedigi, const HODigiCollection &hodigi, const HFDigiCollection &hfdigi)
EtaPhiHists RecentMissingDigisByDepth
edm::EDGetTokenT< HFDigiCollection > tok_hfdigi_
edm::EDGetTokenT< HBHEDigiCollection > tok_hbhedigi_
MonitorElement * NumberOfRecentMissingRecHitsHO
EtaPhiHists DigiPresentByDepth
EtaPhiHists RecentMissingRecHitsByDepth
MonitorElement * HBDeadVsEvent
MonitorElement * NumberOfNeverPresentRecHitsHE
MonitorElement * ProblemsVsLB_HE
edm::EDGetTokenT< HBHERecHitCollection > tok_hbhe_
MonitorElement * NumberOfNeverPresentDigis
MonitorElement * NumberOfRecentMissingDigis
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c)
MonitorElement * NumberOfRecentMissingDigisHF
void process_Digi(T &digi)
void processEvent_HBHEdigi(HBHEDataFrame digi)
MonitorElement * ProblemsInLastNLB_HBHEHF_alarm
edm::EDGetTokenT< L1GlobalTriggerEvmReadoutRecord > tok_gtEvm_
long double T
MonitorElement * HFDeadVsEvent
MonitorElement * ProblemsVsLB_HO2
MonitorElement * HODeadVsEvent
Definition: Run.h:41
MonitorElement * NumberOfRecentMissingRecHitsHB
MonitorElement * ProblemsVsLB_HO