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 
11 
12 // Channel status DB stuff
13 
18 
21 
22 #include <cmath>
23 #include <iostream>
24 #include <fstream>
25 
34 
35  public:
37 
39 
40  void setup();
41  void beginRun(const edm::Run& run, const edm::EventSetup& c);
42  void analyze(edm::Event const&e, edm::EventSetup const&s);
43  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
44  const edm::EventSetup& c);
45  void endRun(const edm::Run& run, const edm::EventSetup& c);
46  void endJob();
47  void cleanup(); // overrides base class function
48  void reset();
49 
50  void processEvent(const HBHERecHitCollection& hbHits,
51  const HORecHitCollection& hoHits,
52  const HFRecHitCollection& hfHits,
53  const HBHEDigiCollection& hbhedigi,
54  const HODigiCollection& hodigi,
55  const HFDigiCollection& hfdigi
56  );
57 
58  private:
59  void zeroCounters(bool resetpresent=false);
60 
61  void processEvent_HBHEdigi(const HBHEDataFrame digi);
62  template<class T> void process_Digi(T& digi);
63  template<class T> void process_RecHit(T& rechit);
64 
67 
69 
70  // Booleans to control which of the dead cell checking routines are used
73 
74  void fillNevents_problemCells(); // problemcells always checks for never-present digis, rechits
77 
78  // specify minimum energy threshold for energy test
84 
89 
90  // Problems vs. lumi block
99 
102  bool doReset_;
103 
105  bool present_digi[85][72][4]; // tests that a good digi was present at least once
106  bool present_rechit[85][72][4]; // tests that rechit with energy > threshold at least once
107  unsigned int recentoccupancy_digi[85][72][4]; // tests that cells haven't gone missing for long periods
108  unsigned int recentoccupancy_rechit[85][72][4]; // tests that cells haven't dropped below threshold for long periods
109  unsigned int occupancy_RBX[156];
110 
111  int deadevt_; // running count of events processed since last dead cell check
113  int rbxlost[156];
121 
123 
127 };
128 
129 #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
HcalLogicalMap * logicalMap_
MonitorElement * ProblemsVsLB_HO2
MonitorElement * HODeadVsEvent
Definition: Run.h:33
MonitorElement * NumberOfRecentMissingRecHitsHB
MonitorElement * ProblemsVsLB_HO