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 
12 
18 
21 
23 
27 
28 #include <fstream>
29 #include <iostream>
30 #include <map>
31 #include <vector>
32 
34  typedef std::map<uint32_t, float, std::less<uint32_t>> MapType;
35 
36 public:
39 
40 protected:
41  void bookHistograms(DQMStore::IBooker &ib, edm::Run const &, edm::EventSetup const &c) override;
42 
44  void analyze(const edm::Event &e, const edm::EventSetup &c) override;
45 
46 private:
47  uint32_t getUnitWithMaxEnergy(MapType &themap);
48 
49  virtual float energyInMatrixEE(int nCellInX, int nCellInY, int centralX, int centralY, int centralZ, MapType &themap);
50 
51  std::vector<uint32_t> getIdsAroundMax(
52  int nCellInX, int nCellInY, int centralX, int centralY, int centralZ, MapType &themap);
53 
54  bool fillEEMatrix(
55  int nCellInX, int nCellInY, int CentralX, int CentralY, int CentralZ, MapType &fillmap, MapType &themap);
56 
57  float eCluster2x2(MapType &themap);
58  float eCluster4x4(float e33, MapType &themap);
59 
63 
66 
67  bool verbose_;
68 
69  int myEntries;
70  float eRLength[26];
71 
74 
77 
80 
82 
84 
86 
88 
90 
92 
95 
101 
109 };
110 
111 #endif
void bookHistograms(DQMStore::IBooker &ib, edm::Run const &, edm::EventSetup const &c) override
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)
Definition: Run.h:45
ib
Definition: cuy.py:661
EcalEndcapSimHitsValidation(const edm::ParameterSet &ps)
Constructor.