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 
20 
24 
28 
29 #include <iostream>
30 #include <fstream>
31 #include <vector>
32 #include <map>
34 
35 
37 
38  typedef std::map<uint32_t,float,std::less<uint32_t> > MapType;
39 
40 public:
41 
44 
47 
48 protected:
49 
51 void analyze(const edm::Event& e, const edm::EventSetup& c);
52 
53 // BeginJob
54 void beginJob();
55 
56 // EndJob
57 void endJob(void);
58 
59 private:
60 
61  uint32_t getUnitWithMaxEnergy(MapType& themap);
62 
63  virtual float energyInMatrixEB(int nCellInEta, int nCellInPhi,
64  int centralEta, int centralPhi, int centralZ,
65  MapType& themap);
66 
67  std::vector<uint32_t> getIdsAroundMax(int nCellInEta, int nCellInPhi,
68  int centralEta, int centralPhi, int centralZ,
69  MapType& themap);
70 
71 
72  bool fillEBMatrix(int nCellInEta, int nCellInPhi,
73  int CentralEta, int CentralPhi,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 
96 
98 
100 
102 
104 
106 
108 
110 
112 
114 
116 
122 
130 };
131 
132 #endif
std::map< uint32_t, float, std::less< uint32_t > > MapType
std::vector< uint32_t > getIdsAroundMax(int nCellInEta, int nCellInPhi, int centralEta, int centralPhi, int centralZ, MapType &themap)
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
float eCluster4x4(float e33, MapType &themap)
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)
bool fillEBMatrix(int nCellInEta, int nCellInPhi, int CentralEta, int CentralPhi, int CentralZ, MapType &fillmap, MapType &themap)
EcalBarrelSimHitsValidation(const edm::ParameterSet &ps)
Constructor.