CMS 3D CMS Logo

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 
19 
21 
25 
26 #include <map>
27 #include <vector>
28 
30  typedef std::map<uint32_t, float, std::less<uint32_t>> MapType;
31 
32 public:
35 
38 
39 protected:
40  void bookHistograms(DQMStore::IBooker &ib, edm::Run const &, edm::EventSetup const &c) override;
41 
43  void analyze(const edm::Event &e, const edm::EventSetup &c) override;
44 
45 private:
46  uint32_t getUnitWithMaxEnergy(MapType &themap);
47 
48  virtual float energyInMatrixEB(
49  int nCellInEta, int nCellInPhi, int centralEta, int centralPhi, int centralZ, MapType &themap);
50 
51  std::vector<uint32_t> getIdsAroundMax(
52  int nCellInEta, int nCellInPhi, int centralEta, int centralPhi, int centralZ, MapType &themap);
53 
54  bool fillEBMatrix(
55  int nCellInEta, int nCellInPhi, int CentralEta, int CentralPhi, int CentralZ, MapType &fillmap, MapType &themap);
56 
57  float eCluster2x2(MapType &themap);
58  float eCluster4x4(float e33, MapType &themap);
59 
63 
66 
67  bool verbose_;
68 
69  int myEntries;
70  float eRLength[26];
71 
73 
75 
77 
79 
81 
83 
85 
87 
89 
91 
93 
99 
107 };
108 
109 #endif
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
ib
Definition: cuy.py:661
EcalBarrelSimHitsValidation(const edm::ParameterSet &ps)
Constructor.