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 
32 
33  public:
35 
37 
38  void setup();
39  void beginRun(const edm::Run& run, const edm::EventSetup& c);
40  void analyze(edm::Event const&e, edm::EventSetup const&s);
41  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
42  const edm::EventSetup& c);
43  void endRun(const edm::Run& run, const edm::EventSetup& c);
44  void endJob();
45  void cleanup(); // overrides base class function
46  void reset();
47 
48  void processEvent(const HBHERecHitCollection& hbHits,
49  const HORecHitCollection& hoHits,
50  const HFRecHitCollection& hfHits,
51  const HBHEDigiCollection& hbhedigi,
52  const HODigiCollection& hodigi,
53  const HFDigiCollection& hfdigi
54  );
55 
56  private:
57  void zeroCounters(bool resetpresent=false);
58 
59  void processEvent_HBHEdigi(const HBHEDataFrame digi);
60  template<class T> void process_Digi(T& digi);
61  template<class T> void process_RecHit(T& rechit);
62 
65 
66  // Booleans to control which of the dead cell checking routines are used
69 
70  void fillNevents_problemCells(); // problemcells always checks for never-present digis, rechits
73 
74  // specify minimum energy threshold for energy test
80 
85 
86  // Problems vs. lumi block
95 
97  int beamMode_;
98  bool doReset_;
99 
101  bool present_digi[85][72][4]; // tests that a good digi was present at least once
102  bool present_rechit[85][72][4]; // tests that rechit with energy > threshold at least once
103  unsigned int recentoccupancy_digi[85][72][4]; // tests that cells haven't gone missing for long periods
104  unsigned int recentoccupancy_rechit[85][72][4]; // tests that cells haven't dropped below threshold for long periods
105  unsigned int occupancy_RBX[156];
106 
107  int deadevt_; // running count of events processed since last dead cell check
109  int rbxlost[156];
117 
119 
124 };
125 
126 #endif
edm::InputTag hfRechitLabel_
void beginRun(const edm::Run &run, const edm::EventSetup &c)
MonitorElement * NumberOfNeverPresentRecHitsHO
MonitorElement * NumberOfRecentMissingRecHitsHF
MonitorElement * NumberOfNeverPresentRecHits
MonitorElement * NumberOfNeverPresentDigisHB
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]
EtaPhiHists RecHitPresentByDepth
MonitorElement * RBX_loss_VS_LB
MonitorElement * ProblemsVsLB
MonitorElement * NumberOfNeverPresentDigisHF
edm::InputTag hoRechitLabel_
unsigned int occupancy_RBX[156]
MonitorElement * NumberOfNeverPresentDigisHO
void processEvent_HBHEdigi(const HBHEDataFrame digi)
MonitorElement * NumberOfNeverPresentRecHitsHB
MonitorElement * Nevents
unsigned int recentoccupancy_rechit[85][72][4]
MonitorElement * NumberOfRecentMissingRecHitsHE
MonitorElement * ProblemsVsLB_HF
MonitorElement * NumberOfRecentMissingDigisHO
MonitorElement * NumberOfNeverPresentRecHitsHF
MonitorElement * ProblemsVsLB_HB
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
MonitorElement * NumberOfRecentMissingRecHitsHO
EtaPhiHists DigiPresentByDepth
EtaPhiHists RecentMissingRecHitsByDepth
MonitorElement * HBDeadVsEvent
MonitorElement * NumberOfNeverPresentRecHitsHE
MonitorElement * ProblemsVsLB_HE
MonitorElement * NumberOfNeverPresentDigis
MonitorElement * NumberOfRecentMissingDigis
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c)
MonitorElement * NumberOfRecentMissingDigisHF
void process_Digi(T &digi)
MonitorElement * ProblemsInLastNLB_HBHEHF_alarm
long double T
MonitorElement * HFDeadVsEvent
MonitorElement * ProblemsVsLB_HO2
MonitorElement * HODeadVsEvent
Definition: Run.h:36
MonitorElement * NumberOfRecentMissingRecHitsHB
MonitorElement * ProblemsVsLB_HO