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();
37  void beginRun(const edm::Run& run, const edm::EventSetup& c);
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 cleanup(); // overrides base class function
44  void reset();
45 
46  void processEvent(const HBHERecHitCollection& hbHits,
47  const HORecHitCollection& hoHits,
48  const HFRecHitCollection& hfHits,
49  const HBHEDigiCollection& hbhedigi,
50  const HODigiCollection& hodigi,
51  const HFDigiCollection& hfdigi
52  );
53 
54  private:
55  void zeroCounters(bool resetpresent=false);
56 
58  template<class T> void process_Digi(T& digi);
59  template<class T> void process_RecHit(T& rechit);
60 
63 
64  // Booleans to control which of the dead cell checking routines are used
67 
68  void fillNevents_problemCells(); // problemcells always checks for never-present digis, rechits
71 
72  // specify minimum energy threshold for energy test
78 
83 
84  // Problems vs. lumi block
93 
95  int beamMode_;
96  bool doReset_;
97 
99  bool present_digi[85][72][4]; // tests that a good digi was present at least once
100  bool present_rechit[85][72][4]; // tests that rechit with energy > threshold at least once
101  unsigned int recentoccupancy_digi[85][72][4]; // tests that cells haven't gone missing for long periods
102  unsigned int recentoccupancy_rechit[85][72][4]; // tests that cells haven't dropped below threshold for long periods
103  unsigned int occupancy_RBX[156];
104 
105  int deadevt_; // running count of events processed since last dead cell check
107  int rbxlost[156];
115 
124 
126 
131 };
132 
133 #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]
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_
MonitorElement * ProblemsVsLB_HB
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