CMS 3D CMS Logo

ElectronCalibration.h
Go to the documentation of this file.
1 #ifndef CALIBRATION_ECALCALIBALGOS_ELECTRONCALIBRATION
2 #define CALIBRATION_ECALCALIBALGOS_ELECTRONCALIBRATION
3 
4 // -*- C++ -*-
5 //
6 // Package: ElectronCalibration
7 // Class: ElectronCalibration
8 //
16 //
17 // Original Author: Lorenzo AGOSTINO, Radek Ofierzynski
18 // Created: Tue Jul 18 12:17:01 CEST 2006
19 //
20 //
21 
22 
23 // system include files
24 #include <memory>
25 
26 // user include files
29 
39 #include "TFile.h"
40 #include "TH1.h"
41 #include "TH2.h"
42 
43 
44 // class decleration
45 //
46 
48  public:
49  explicit ElectronCalibration(const edm::ParameterSet&);
50  ~ElectronCalibration() override;
51 
52  void analyze(const edm::Event&, const edm::EventSetup&) override;
53  void beginJob() override;
54  void endJob() override;
55  private:
56 
58  EBDetId findMaxHit2(const std::vector<DetId> & ,const EBRecHitCollection* );
59 
60  // ----------member data ---------------------------
68  double ElePt_;
69  int maxeta_;
70  int mineta_;
71  int maxphi_;
72  int minphi_;
73  double cut1_;
74  double cut2_;
75  double cut3_;
77  double cutEPCalo1_;
78  double cutEPCalo2_;
79  double cutEPin1_;
80  double cutEPin2_;
81  double cutCalo1_;
82  double cutCalo2_;
83  double cutESeed_;
85 
88 
90 
93  std::vector<float> EnergyVector;
94  std::vector<float> WeightVector;
95  std::vector<std::vector<float> > EventMatrix;
96  std::vector<int> MaxCCeta;
97  std::vector<int> MaxCCphi;
98  std::vector<float> EnergyVectorNoCuts;
99  std::vector<float> WeightVectorNoCuts;
100  std::vector<std::vector<float> > EventMatrixNoCuts;
101  std::vector<int> MaxCCetaNoCuts;
102  std::vector<int> MaxCCphiNoCuts;
104  std::vector<float> solution;
105  std::vector<float> solutionNoCuts;
106  std::vector<float> newCalibs;
107  std::vector<float> oldCalibs;
108 
109  int eventcrystal[171][360];
111 
112  TFile * f;
113 
114  TH1F * e25;
115  TH1F * e9;
116  TH1F * scE;
117  TH1F * trP;
118  TH1F * EoP;
119  TH1F * EoP_all;
120  TH1F * calibs;
121  TH1F * e9Overe25;
122  TH1F * e25OverScE;
123  TH2F * Map;
124  TH1F * E25oP;
125 
126  TH1F * PinOverPout;
128  TH1F * MisCalibs;
129  TH1F * RatioCalibs;
130  TH1F * DiffCalibs;
133 
134  TH1F * e25NoCuts;
135  TH1F * e9NoCuts;
136  TH1F * scENoCuts;
137  TH1F * trPNoCuts;
138  TH1F * EoPNoCuts;
139  TH1F * calibsNoCuts;
142  TH2F * MapNoCuts;
143  TH1F * E25oPNoCuts;
144  TH2F * Map3Dcalib;
146  TH1F * calibinter;
151 
152  TH2F * GeneralMap;
153 
154  TH2F * MapCor1;
155  TH2F * MapCor2;
156  TH2F * MapCor3;
157  TH2F * MapCor4;
158  TH2F * MapCor5;
159  TH2F * MapCor6;
160  TH2F * MapCor7;
161  TH2F * MapCor8;
162  TH2F * MapCor9;
163  TH2F * MapCor10;
164  TH2F * MapCor11;
165  TH2F * MapCorCalib;
166 
179 
180  TH2F * MapCor1ESeed;
181  TH2F * MapCor2ESeed;
182  TH2F * MapCor3ESeed;
183  TH2F * MapCor4ESeed;
184  TH2F * MapCor5ESeed;
185  TH2F * MapCor6ESeed;
186  TH2F * MapCor7ESeed;
187  TH2F * MapCor8ESeed;
188  TH2F * MapCor9ESeed;
191 
192 
193  TH1F * PinMinPout;
195 
196  TH1F * Error1;
197  TH1F * Error2;
198  TH1F * Error3;
199  TH1F * Error1NoCuts;
200  TH1F * Error2NoCuts;
201  TH1F * Error3NoCuts;
202 
206 
207  TH1F * hadOverEm;
210 
211 };
212 #endif
CalibrationCluster::CalibMap ReducedMap
std::vector< float > WeightVector
edm::InputTag recHitLabel_
void analyze(const edm::Event &, const edm::EventSetup &) override
HouseholderDecomposition * MyHH
std::vector< float > solutionNoCuts
MinL3Algorithm * MyL3Algo1
void beginJob() override
std::vector< int > MaxCCphiNoCuts
std::vector< int > MaxCCetaNoCuts
std::vector< float > solution
edm::InputTag electronLabel_
std::vector< float > newCalibs
std::vector< float > EnergyVector
ElectronCalibration(const edm::ParameterSet &)
EBDetId findMaxHit(edm::Handle< EBRecHitCollection > &)
std::vector< int > MaxCCphi
std::vector< float > WeightVectorNoCuts
std::vector< std::vector< float > > EventMatrixNoCuts
CalibrationCluster calibCluster
std::vector< std::vector< float > > EventMatrix
std::map< EBDetId, unsigned int > CalibMap
EBDetId findMaxHit2(const std::vector< DetId > &, const EBRecHitCollection *)
std::vector< float > EnergyVectorNoCuts
std::vector< float > oldCalibs
std::vector< int > MaxCCeta