CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalBeamMonitor.h
Go to the documentation of this file.
1 #ifndef GUARD_DQM_HCALMONITORTASKS_HCALBEAMMONITOR_H
2 #define GUARD_DQM_HCALMONITORTASKS_HCALBEAMMONITOR_H
3 
8 
11 
12 // Use for stringstream
13 #include <iostream>
14 #include <fstream>
15 
24  public:
27 
28  void setup();
29  void beginRun(const edm::Run& run, const edm::EventSetup& c);
30  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
31  const edm::EventSetup& c);
32  void analyze(const edm::Event& e, const edm::EventSetup& c);
33  void processEvent(const HBHERecHitCollection& hbHits,
34  const HORecHitCollection& hoHits,
35  const HFRecHitCollection& hfHits,
36  const HFDigiCollection& hf,
37  int bunchCrossing
38  );
39 
40  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
41  const edm::EventSetup& c);
42  void reset();
43  void cleanup();
44 
45  private:
47  double occThresh_;
48  double hotrate_;
50  std::string lumiqualitydir_;
51 
52  std::map<int,MonitorElement* > HB_CenterOfEnergyRadius;
53  std::map<int,MonitorElement* > HE_CenterOfEnergyRadius;
54  std::map<int,MonitorElement* > HF_CenterOfEnergyRadius;
55  std::map<int,MonitorElement* > HO_CenterOfEnergyRadius;
56 
60 
69 
82 
91 
99 
106 
112 
115  std::map <HcalDetId, int> BadCells_;
116 
119 
120  const int ETA_OFFSET_HB;
121  const int ETA_OFFSET_HE;
122  const int ETA_BOUND_HE;
123  const int ETA_OFFSET_HO;
124  const int ETA_OFFSET_HF;
125  const int ETA_BOUND_HF;
126 
127  static const float area[];
128  static const float radius[];
129 
130  std::ostringstream outfile_;
131  unsigned int lastProcessedLS_;
134 
135  int minBadCells_; // number of channels that must be bad to be included in problem summary
138 }; // class HcalBeamMonitor
139 
140 #endif
MonitorElement * HFCenterOfEnergyRadius
MonitorElement * Etsum_map_S
MonitorElement * HBCenterOfEnergy
MonitorElement * Etsum_eta_L
MonitorElement * Occ_rphi_L
MonitorElement * HOCenterOfEnergy
void beginRun(const edm::Run &run, const edm::EventSetup &c)
MonitorElement * HFlumi_Occupancy_above_thr_r1
MonitorElement * Occ_rphi_S
MonitorElement * HFlumi_Occupancy_below_thr_r2
MonitorElement * Etsum_eta_S
MonitorElement * Etsum_phi_S
MonitorElement * HFlumi_Occupancy_between_thrs_r2
MonitorElement * Occ_map_L
MonitorElement * Etsum_map_L
MonitorElement * HFlumi_Occupancy_per_channel_vs_lumiblock_RING2
MonitorElement * COEradiusVSeta
MonitorElement * Occ_phi_S
edm::InputTag hbheRechitLabel_
const int ETA_OFFSET_HF
MonitorElement * HFlumi_ETsum_perwedge
MonitorElement * HFlumi_Ring2Status_vs_LS
MonitorElement * Occ_phi_L
MonitorElement * HFlumi_ETsum_vs_BX
edm::InputTag hoRechitLabel_
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c)
static const float area[]
const int ETA_BOUND_HF
std::map< int, MonitorElement * > HB_CenterOfEnergyRadius
MonitorElement * HFlumi_Occupancy_per_channel_vs_BX_RING1
MonitorElement * HFCenterOfEnergy
MonitorElement * HFlumi_diag_deadcells
std::map< HcalDetId, int > BadCells_
MonitorElement * Etsum_ratio_map
MonitorElement * HECenterOfEnergyRadius
MonitorElement * HFlumi_occ_LS
MonitorElement * CenterOfEnergyRadius
MonitorElement * CenterOfEnergy
MonitorElement * HFlumi_Occupancy_below_thr_r1
std::map< int, MonitorElement * > HE_CenterOfEnergyRadius
std::ostringstream outfile_
MonitorElement * HFlumi_Occupancy_per_channel_vs_BX_RING2
MonitorElement * Energy_Occ
MonitorElement * HFlumi_Ring1Status_vs_LS
MonitorElement * HFlumi_Occupancy_per_channel_vs_lumiblock_RING1
static const float radius[]
std::map< int, MonitorElement * > HO_CenterOfEnergyRadius
void SetEtaLabels(MonitorElement *h)
MonitorElement * Occ_eta_L
void analyze(const edm::Event &e, const edm::EventSetup &c)
MonitorElement * HFlumi_Occupancy_between_thrs_r1
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c)
void processEvent(const HBHERecHitCollection &hbHits, const HORecHitCollection &hoHits, const HFRecHitCollection &hfHits, const HFDigiCollection &hf, int bunchCrossing)
HcalBeamMonitor(const edm::ParameterSet &ps)
MonitorElement * HECenterOfEnergy
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
MonitorElement * HOCenterOfEnergyRadius
MonitorElement * Etsum_ratio_m
MonitorElement * HFlumi_Et_per_channel_vs_lumiblock
MonitorElement * HBCenterOfEnergyRadius
MonitorElement * Etsum_rphi_S
MonitorElement * HFlumi_Occupancy_above_thr_r2
std::string lumiqualitydir_
unsigned int lastProcessedLS_
MonitorElement * HFlumi_diag_hotcells
const int ETA_OFFSET_HO
MonitorElement * Etsum_ratio_p
const int ETA_OFFSET_HB
MonitorElement * Etsum_phi_L
MonitorElement * Etsum_rphi_L
edm::InputTag hfRechitLabel_
MonitorElement * Occ_map_S
edm::InputTag digiLabel_
std::map< int, MonitorElement * > HF_CenterOfEnergyRadius
MonitorElement * HFlumi_total_deadcells
const int ETA_BOUND_HE
MonitorElement * HFlumi_total_hotcells
Definition: Run.h:33
MonitorElement * Occ_eta_S
const int ETA_OFFSET_HE