CMS 3D CMS Logo

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 
25 
29 
30 #include <iostream>
31 #include <fstream>
32 #include <vector>
33 #include <map>
35 
36 
38 
39  typedef std::map<uint32_t,float,std::less<uint32_t> > MapType;
40 
41 public:
42 
45 
48 
49 protected:
50 
52 void analyze(const edm::Event& e, const edm::EventSetup& c);
53 
54 // BeginJob
55 void beginJob();
56 
57 // EndJob
58 void endJob(void);
59 
60 private:
61 
62  uint32_t getUnitWithMaxEnergy(MapType& themap);
63 
64  virtual float energyInMatrixEE(int nCellInX, int nCellInY,
65  int centralX, int centralY, int centralZ,
66  MapType& themap);
67 
68  std::vector<uint32_t> getIdsAroundMax(int nCellInX, int nCellInY,
69  int centralX, int centralY, int centralZ,
70  MapType& themap);
71 
72  bool fillEEMatrix(int nCellInX, int nCellInY,
73  int CentralX, int CentralY,int CentralZ,
74  MapType& fillmap, MapType& themap);
75 
76  float eCluster2x2( MapType& themap);
77  float eCluster4x4(float e33,MapType& themap);
78 
82 
85 
86  bool verbose_;
87 
89 
91 
92  int myEntries;
93  float eRLength[26];
94 
97 
100 
103 
105 
107 
109 
111 
113 
114 
116 
119 
125 
133 };
134 
135 #endif
edm::EDGetTokenT< PEcalValidInfo > ValidationCollectionToken
virtual float energyInMatrixEE(int nCellInX, int nCellInY, int centralX, int centralY, int centralZ, MapType &themap)
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
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
uint32_t getUnitWithMaxEnergy(MapType &themap)
std::map< uint32_t, float, std::less< uint32_t > > MapType
std::vector< uint32_t > getIdsAroundMax(int nCellInX, int nCellInY, int centralX, int centralY, int centralZ, MapType &themap)
EcalEndcapSimHitsValidation(const edm::ParameterSet &ps)
Constructor.