CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 
18 
21 
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 energyInMatrixEE(int nCellInX, int nCellInY,
64  int centralX, int centralY, int centralZ,
65  MapType& themap);
66 
67  std::vector<uint32_t> getIdsAroundMax(int nCellInX, int nCellInY,
68  int centralX, int centralY, int centralZ,
69  MapType& themap);
70 
71  bool fillEEMatrix(int nCellInX, int nCellInY,
72  int CentralX, int CentralY,int CentralZ,
73  MapType& fillmap, MapType& themap);
74 
75  float eCluster2x2( MapType& themap);
76  float eCluster4x4(float e33,MapType& themap);
77 
78  std::string g4InfoLabel;
79  std::string EEHitsCollection;
80  std::string ValidationCollection;
81 
82  bool verbose_;
83 
85 
86  std::string outputFile_;
87 
88  int myEntries;
89  float eRLength[26];
90 
93 
96 
99 
101 
103 
105 
107 
109 
110 
112 
115 
121 
129 };
130 
131 #endif
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)
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.