CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
EcalBarrelSimHitsValidation.h
Go to the documentation of this file.
1 #ifndef EcalBarrelSimHitsValidation_H
2 #define EcalBarrelSimHitsValidation_H
3 
4 /*
5  * \file EcalBarrelSimHitsValidation.h
6  *
7  * \author C.Rovelli
8  *
9  */
10 
20 
22 
26 
27 #include <map>
28 #include <vector>
29 
31  typedef std::map<uint32_t, float, std::less<uint32_t>> MapType;
32 
33 public:
36 
39 
40 protected:
41  void bookHistograms(DQMStore::IBooker &ib, edm::Run const &, edm::EventSetup const &c) override;
42 
44  void analyze(const edm::Event &e, const edm::EventSetup &c) override;
45 
46 private:
47  uint32_t getUnitWithMaxEnergy(MapType &themap);
48 
49  virtual float energyInMatrixEB(
50  int nCellInEta, int nCellInPhi, int centralEta, int centralPhi, int centralZ, MapType &themap);
51 
52  std::vector<uint32_t> getIdsAroundMax(
53  int nCellInEta, int nCellInPhi, int centralEta, int centralPhi, int centralZ, MapType &themap);
54 
55  bool fillEBMatrix(
56  int nCellInEta, int nCellInPhi, int CentralEta, int CentralPhi, int CentralZ, MapType &fillmap, MapType &themap);
57 
58  float eCluster2x2(MapType &themap);
59  float eCluster4x4(float e33, MapType &themap);
60 
64 
67 
68  bool verbose_;
69 
70  int myEntries;
71  float eRLength[26];
72 
74 
76 
78 
80 
82 
84 
86 
88 
90 
92 
94 
100 
108 };
109 
110 #endif
const edm::EventSetup & c
int ib
Definition: cuy.py:661
std::vector< uint32_t > getIdsAroundMax(int nCellInEta, int nCellInPhi, int centralEta, int centralPhi, int centralZ, MapType &themap)
void bookHistograms(DQMStore::IBooker &ib, edm::Run const &, edm::EventSetup const &c) override
float eCluster4x4(float e33, MapType &themap)
std::map< uint32_t, float, std::less< uint32_t > > MapType
edm::EDGetTokenT< edm::PCaloHitContainer > EBHitsToken
edm::EDGetTokenT< PEcalValidInfo > ValidationCollectionToken
uint32_t getUnitWithMaxEnergy(MapType &themap)
virtual float energyInMatrixEB(int nCellInEta, int nCellInPhi, int centralEta, int centralPhi, int centralZ, MapType &themap)
dqm::legacy::MonitorElement MonitorElement
bool fillEBMatrix(int nCellInEta, int nCellInPhi, int CentralEta, int CentralPhi, int CentralZ, MapType &fillmap, MapType &themap)
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Analyze.
Definition: Run.h:45
EcalBarrelSimHitsValidation(const edm::ParameterSet &ps)
Constructor.