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 
10 
11 // Channel status DB stuff
12 
17 
20 
21 #include <cmath>
22 #include <iostream>
23 #include <fstream>
24 
33 
34  public:
36 
38 
39  void setup();
40  void beginRun(const edm::Run& run, const edm::EventSetup& c);
41  void analyze(edm::Event const&e, edm::EventSetup const&s);
42  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
43  const edm::EventSetup& c);
44  void endRun(const edm::Run& run, const edm::EventSetup& c);
45  void endJob();
46  void cleanup(); // overrides base class function
47  void reset();
48 
49  void processEvent(const HBHERecHitCollection& hbHits,
50  const HORecHitCollection& hoHits,
51  const HFRecHitCollection& hfHits,
52  const HBHEDigiCollection& hbhedigi,
53  const HODigiCollection& hodigi,
54  const HFDigiCollection& hfdigi
55  );
56 
57  private:
58  void zeroCounters(bool resetpresent=false);
59 
60  void processEvent_HBHEdigi(const HBHEDataFrame digi);
61  template<class T> void process_Digi(T& digi);
62  template<class T> void process_RecHit(T& rechit);
63 
66 
68 
69  // Booleans to control which of the dead cell checking routines are used
72 
73  void fillNevents_problemCells(); // problemcells always checks for never-present digis, rechits
76 
77  // specify minimum energy threshold for energy test
83 
88 
89  // Problems vs. lumi block
97 
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[132];
106 
107  int deadevt_; // running count of events processed since last dead cell check
109  int rbxlost[132];
115 
117 
121 };
122 
123 #endif
edm::InputTag hfRechitLabel_
void beginRun(const edm::Run &run, const edm::EventSetup &c)
MonitorElement * NumberOfNeverPresentRecHitsHO
unsigned int occupancy_RBX[132]
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 * NumberOfRecentMissingDigisHE
bool present_rechit[85][72][4]
EtaPhiHists RecHitPresentByDepth
MonitorElement * RBX_loss_VS_LB
MonitorElement * ProblemsVsLB
MonitorElement * NumberOfNeverPresentDigisHF
edm::InputTag hoRechitLabel_
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)
string s
Definition: asciidump.py:422
MonitorElement * ProblemsInLastNLB_HBHEHF_alarm
long double T
MonitorElement * HFDeadVsEvent
HcalLogicalMap * logicalMap_
MonitorElement * HODeadVsEvent
Definition: Run.h:32
MonitorElement * NumberOfRecentMissingRecHitsHB
MonitorElement * ProblemsVsLB_HO