CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
EcalEndcapSimHitsValidation.h
Go to the documentation of this file.
1 #ifndef EcalEndcapSimHitsValidation_H
2 #define EcalEndcapSimHitsValidation_H
3 
4 /*
5  * \file EcalEndcapSimHitsValidation.h
6  *
7  * \author C.Rovelli
8  *
9  */
10 
13 
19 
22 
24 
28 
29 #include <fstream>
30 #include <iostream>
31 #include <map>
32 #include <vector>
33 
35  typedef std::map<uint32_t, float, std::less<uint32_t>> MapType;
36 
37 public:
40 
41 protected:
42  void bookHistograms(DQMStore::IBooker &ib, edm::Run const &, edm::EventSetup const &c) override;
43 
45  void analyze(const edm::Event &e, const edm::EventSetup &c) override;
46 
47 private:
48  uint32_t getUnitWithMaxEnergy(MapType &themap);
49 
50  virtual float energyInMatrixEE(int nCellInX, int nCellInY, int centralX, int centralY, int centralZ, MapType &themap);
51 
52  std::vector<uint32_t> getIdsAroundMax(
53  int nCellInX, int nCellInY, int centralX, int centralY, int centralZ, MapType &themap);
54 
55  bool fillEEMatrix(
56  int nCellInX, int nCellInY, int CentralX, int CentralY, 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 
75 
78 
81 
83 
85 
87 
89 
91 
93 
96 
102 
110 };
111 
112 #endif
const edm::EventSetup & c
void bookHistograms(DQMStore::IBooker &ib, edm::Run const &, edm::EventSetup const &c) override
int ib
Definition: cuy.py:661
edm::EDGetTokenT< PEcalValidInfo > ValidationCollectionToken
virtual float energyInMatrixEE(int nCellInX, int nCellInY, int centralX, int centralY, int centralZ, MapType &themap)
std::map< uint32_t, float, std::less< uint32_t > > MapType
float eCluster4x4(float e33, MapType &themap)
bool fillEEMatrix(int nCellInX, int nCellInY, int CentralX, int CentralY, int CentralZ, MapType &fillmap, MapType &themap)
edm::EDGetTokenT< edm::PCaloHitContainer > EEHitsToken
uint32_t getUnitWithMaxEnergy(MapType &themap)
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Analyze.
std::vector< uint32_t > getIdsAroundMax(int nCellInX, int nCellInY, int centralX, int centralY, int centralZ, MapType &themap)
Definition: Run.h:45
EcalEndcapSimHitsValidation(const edm::ParameterSet &ps)
Constructor.