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 
31 #include <fstream>
32 #include <iostream>
33 #include <map>
34 #include <vector>
35 
37  typedef std::map<uint32_t, float, std::less<uint32_t>> MapType;
38 
39 public:
42 
45 
46 protected:
48  void analyze(const edm::Event &e, const edm::EventSetup &c) override;
49 
50  // BeginJob
51  void beginJob() override;
52 
53  // EndJob
54  void endJob(void) override;
55 
56 private:
57  uint32_t getUnitWithMaxEnergy(MapType &themap);
58 
59  virtual float energyInMatrixEE(int nCellInX, int nCellInY, int centralX, int centralY, int centralZ, MapType &themap);
60 
61  std::vector<uint32_t> getIdsAroundMax(
62  int nCellInX, int nCellInY, int centralX, int centralY, int centralZ, MapType &themap);
63 
64  bool fillEEMatrix(
65  int nCellInX, int nCellInY, int CentralX, int CentralY, int CentralZ, MapType &fillmap, MapType &themap);
66 
67  float eCluster2x2(MapType &themap);
68  float eCluster4x4(float e33, MapType &themap);
69 
73 
76 
77  bool verbose_;
78 
80 
82 
83  int myEntries;
84  float eRLength[26];
85 
88 
91 
94 
96 
98 
100 
102 
104 
106 
109 
115 
123 };
124 
125 #endif
~EcalEndcapSimHitsValidation() override
Destructor.
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)
EcalEndcapSimHitsValidation(const edm::ParameterSet &ps)
Constructor.