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 
22  public:
25 
26  void setup();
27  void beginRun(const edm::Run& run, const edm::EventSetup& c);
28  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
29  const edm::EventSetup& c);
30  void analyze(const edm::Event& e, const edm::EventSetup& c);
31  void processEvent(const HBHERecHitCollection& hbHits,
32  const HORecHitCollection& hoHits,
33  const HFRecHitCollection& hfHits,
34  const HFDigiCollection& hf,
35  int bunchCrossing
36  );
37 
38  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
39  const edm::EventSetup& c);
40  void reset();
41  void cleanup();
42 
43  private:
45  double occThresh_;
46  double hotrate_;
49 
50  std::map<int,MonitorElement* > HB_CenterOfEnergyRadius;
51  std::map<int,MonitorElement* > HE_CenterOfEnergyRadius;
52  std::map<int,MonitorElement* > HF_CenterOfEnergyRadius;
53  std::map<int,MonitorElement* > HO_CenterOfEnergyRadius;
54 
58 
67 
80 
89 
97 
104 
110 
113  std::map <HcalDetId, int> BadCells_;
114 
117 
118  const int ETA_OFFSET_HB;
119  const int ETA_OFFSET_HE;
120  const int ETA_BOUND_HE;
121  const int ETA_OFFSET_HO;
122  const int ETA_OFFSET_HF;
123  const int ETA_BOUND_HF;
124 
125  static const float area[];
126  static const float radius[];
127 
128  std::ostringstream outfile_;
129  unsigned int lastProcessedLS_;
133 
134  int minBadCells_; // number of channels that must be bad to be included in problem summary
137 
142 }; // class HcalBeamMonitor
143 
144 #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
edm::EDGetTokenT< HFDigiCollection > tok_hfdigi_
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
edm::EDGetTokenT< HFRecHitCollection > tok_hf_
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
edm::EDGetTokenT< HBHERecHitCollection > tok_hbhe_
MonitorElement * HFlumi_occ_LS
MonitorElement * CenterOfEnergyRadius
edm::EDGetTokenT< HORecHitCollection > tok_ho_
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
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
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:41
MonitorElement * Occ_eta_S
const int ETA_OFFSET_HE