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 
30 #include <fstream>
31 #include <iostream>
32 #include <map>
33 #include <vector>
34 
36  typedef std::map<uint32_t, float, std::less<uint32_t>> MapType;
37 
38 public:
41 
44 
45 protected:
47  void analyze(const edm::Event &e, const edm::EventSetup &c) override;
48 
49  // BeginJob
50  void beginJob() override;
51 
52  // EndJob
53  void endJob(void) override;
54 
55 private:
56  uint32_t getUnitWithMaxEnergy(MapType &themap);
57 
58  virtual float energyInMatrixEB(
59  int nCellInEta, int nCellInPhi, int centralEta, int centralPhi, int centralZ, MapType &themap);
60 
61  std::vector<uint32_t> getIdsAroundMax(
62  int nCellInEta, int nCellInPhi, int centralEta, int centralPhi, int centralZ, MapType &themap);
63 
64  bool fillEBMatrix(
65  int nCellInEta, int nCellInPhi, int CentralEta, int CentralPhi, 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 
87 
89 
91 
93 
95 
97 
99 
101 
103 
105 
107 
113 
121 };
122 
123 #endif
std::vector< uint32_t > getIdsAroundMax(int nCellInEta, int nCellInPhi, int centralEta, int centralPhi, int centralZ, MapType &themap)
float eCluster4x4(float e33, MapType &themap)
~EcalBarrelSimHitsValidation() override
Destructor.
std::map< uint32_t, float, std::less< uint32_t > > MapType
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)
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Analyze.
EcalBarrelSimHitsValidation(const edm::ParameterSet &ps)
Constructor.