CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HGCalDigiValidation.h
Go to the documentation of this file.
1 #ifndef HGCalDigiValidation_h
2 #define HGCalDigiValidation_h
3 // -*- C++ -*-
4 //
5 // Package: HGCalDigiValidation
6 // Class: HGCalDigiValidation
7 //
15 //
16 // Original Author: Raman Khurana
17 // Created: Fri, 31 Jan 2014 18:35:18 GMT
18 // $Id$
19 //
20 //
21 
22 
23 // system include files
24 #include <memory>
25 #include <iostream>
26 #include <fstream>
27 #include <vector>
28 #include <map>
29 #include <string>
30 
31 // user include files
39 
42 
44 
45 public:
46  struct digiInfo{
48  x = y = z = 0.0;
49  layer = adc = charge = 0;
50  }
51  double x, y, z;
52  int layer, charge, adc;
53  };
54 
55  explicit HGCalDigiValidation(const edm::ParameterSet&);
57 
58  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
59  void dqmBeginRun(const edm::Run&, const edm::EventSetup&);
60  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
61  void analyze(const edm::Event&, const edm::EventSetup&);
62 
63 private:
65  void fillDigiInfo();
66  void fillOccupancyMap(std::map<int, int>& OccupancyMap, int layer);
67  template<class T1, class T2>
68  void digiValidation(const T1& detId, const T2* geom, int, uint16_t, double);
69 
70  // ----------member data ---------------------------
74  int layers_;
75 
76  std::map<int, int> OccupancyMap_plus_;
77  std::map<int, int> OccupancyMap_minus_;
78 
79  std::vector<MonitorElement*> charge_;
80  std::vector<MonitorElement*> DigiOccupancy_XY_;
81  std::vector<MonitorElement*> ADC_;
82  std::vector<MonitorElement*> DigiOccupancy_Plus_;
83  std::vector<MonitorElement*> DigiOccupancy_Minus_;
86 
87 };
88 #endif
std::vector< MonitorElement * > charge_
void dqmBeginRun(const edm::Run &, const edm::EventSetup &)
void analyze(const edm::Event &, const edm::EventSetup &)
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
std::vector< MonitorElement * > DigiOccupancy_XY_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
HGCalDigiValidation(const edm::ParameterSet &)
std::vector< MonitorElement * > DigiOccupancy_Minus_
void digiValidation(const T1 &detId, const T2 *geom, int, uint16_t, double)
MonitorElement * MeanDigiOccupancy_Minus_
edm::EDGetToken digiSource_
std::map< int, int > OccupancyMap_minus_
std::map< int, int > OccupancyMap_plus_
std::vector< MonitorElement * > ADC_
MonitorElement * MeanDigiOccupancy_Plus_
void fillOccupancyMap(std::map< int, int > &OccupancyMap, int layer)
std::vector< MonitorElement * > DigiOccupancy_Plus_
Definition: Run.h:43