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(DQMStore::IBooker &);
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  const HcalTopology& topology);
37 
38  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
39  const edm::EventSetup& c);
40  void reset();
41 
42  private:
44  double occThresh_;
45  double hotrate_;
48 
49  std::map<int,MonitorElement* > HB_CenterOfEnergyRadius;
50  std::map<int,MonitorElement* > HE_CenterOfEnergyRadius;
51  std::map<int,MonitorElement* > HF_CenterOfEnergyRadius;
52  std::map<int,MonitorElement* > HO_CenterOfEnergyRadius;
53 
57 
66 
79 
88 
96 
103 
109 
112  std::map <HcalDetId, int> BadCells_;
113 
116 
117  const int ETA_OFFSET_HB;
118  const int ETA_OFFSET_HE;
119  const int ETA_BOUND_HE;
120  const int ETA_OFFSET_HO;
121  const int ETA_OFFSET_HF;
122  const int ETA_BOUND_HF;
123 
124  static const float area[];
125  static const float radius[];
126 
127  std::ostringstream outfile_;
128  unsigned int lastProcessedLS_;
132 
133  int minBadCells_; // number of channels that must be bad to be included in problem summary
136 
141 }; // class HcalBeamMonitor
142 
143 #endif
MonitorElement * HFCenterOfEnergyRadius
MonitorElement * Etsum_map_S
MonitorElement * HBCenterOfEnergy
MonitorElement * Etsum_eta_L
MonitorElement * Occ_rphi_L
MonitorElement * HOCenterOfEnergy
void setup(DQMStore::IBooker &)
MonitorElement * HFlumi_Occupancy_above_thr_r1
int ib
Definition: cuy.py:660
MonitorElement * Occ_rphi_S
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
edm::EDGetTokenT< HFDigiCollection > tok_hfdigi_
void bookHistograms(DQMStore::IBooker &ib, const edm::Run &run, const edm::EventSetup &c)
CaloTopology const * topology(0)
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
void processEvent(const HBHERecHitCollection &hbHits, const HORecHitCollection &hoHits, const HFRecHitCollection &hfHits, const HFDigiCollection &hf, int bunchCrossing, const HcalTopology &topology)
edm::EDGetTokenT< HORecHitCollection > tok_ho_
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)
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:43
MonitorElement * Occ_eta_S
const int ETA_OFFSET_HE