CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 // $Id: ElectronCalibration.h,v 1.10 2010/01/04 15:07:17 ferriff Exp $
20 //
21 //
22 
23 
24 // system include files
25 #include <memory>
26 
27 // user include files
30 
40 #include "TFile.h"
41 #include "TH1.h"
42 #include "TH2.h"
43 
44 
45 // class decleration
46 //
47 
49  public:
50  explicit ElectronCalibration(const edm::ParameterSet&);
52 
53  virtual void analyze(const edm::Event&, const edm::EventSetup&);
54  virtual void beginJob();
55  virtual void endJob();
56  private:
57 
59  EBDetId findMaxHit2(const std::vector<DetId> & ,const EBRecHitCollection* );
60 
61  // ----------member data ---------------------------
62  std::string rootfile_;
66  std::string calibAlgo_;
67  std::string miscalibfile_;
69  double ElePt_;
70  int maxeta_;
71  int mineta_;
72  int maxphi_;
73  int minphi_;
74  double cut1_;
75  double cut2_;
76  double cut3_;
78  double cutEPCalo1_;
79  double cutEPCalo2_;
80  double cutEPin1_;
81  double cutEPin2_;
82  double cutCalo1_;
83  double cutCalo2_;
84  double cutESeed_;
86 
89 
91 
94  std::vector<float> EnergyVector;
95  std::vector<float> WeightVector;
96  std::vector<std::vector<float> > EventMatrix;
97  std::vector<int> MaxCCeta;
98  std::vector<int> MaxCCphi;
99  std::vector<float> EnergyVectorNoCuts;
100  std::vector<float> WeightVectorNoCuts;
101  std::vector<std::vector<float> > EventMatrixNoCuts;
102  std::vector<int> MaxCCetaNoCuts;
103  std::vector<int> MaxCCphiNoCuts;
105  std::vector<float> solution;
106  std::vector<float> solutionNoCuts;
107  std::vector<float> newCalibs;
108  std::vector<float> oldCalibs;
109 
110  int eventcrystal[171][360];
112 
113  TFile * f;
114 
115  TH1F * e25;
116  TH1F * e9;
117  TH1F * scE;
118  TH1F * trP;
119  TH1F * EoP;
120  TH1F * EoP_all;
121  TH1F * calibs;
122  TH1F * e9Overe25;
123  TH1F * e25OverScE;
124  TH2F * Map;
125  TH1F * E25oP;
126 
127  TH1F * PinOverPout;
129  TH1F * MisCalibs;
130  TH1F * RatioCalibs;
131  TH1F * DiffCalibs;
134 
135  TH1F * e25NoCuts;
136  TH1F * e9NoCuts;
137  TH1F * scENoCuts;
138  TH1F * trPNoCuts;
139  TH1F * EoPNoCuts;
140  TH1F * calibsNoCuts;
143  TH2F * MapNoCuts;
144  TH1F * E25oPNoCuts;
145  TH2F * Map3Dcalib;
147  TH1F * calibinter;
152 
153  TH2F * GeneralMap;
154 
155  TH2F * MapCor1;
156  TH2F * MapCor2;
157  TH2F * MapCor3;
158  TH2F * MapCor4;
159  TH2F * MapCor5;
160  TH2F * MapCor6;
161  TH2F * MapCor7;
162  TH2F * MapCor8;
163  TH2F * MapCor9;
164  TH2F * MapCor10;
165  TH2F * MapCor11;
166  TH2F * MapCorCalib;
167 
180 
181  TH2F * MapCor1ESeed;
182  TH2F * MapCor2ESeed;
183  TH2F * MapCor3ESeed;
184  TH2F * MapCor4ESeed;
185  TH2F * MapCor5ESeed;
186  TH2F * MapCor6ESeed;
187  TH2F * MapCor7ESeed;
188  TH2F * MapCor8ESeed;
189  TH2F * MapCor9ESeed;
192 
193 
194  TH1F * PinMinPout;
196 
197  TH1F * Error1;
198  TH1F * Error2;
199  TH1F * Error3;
200  TH1F * Error1NoCuts;
201  TH1F * Error2NoCuts;
202  TH1F * Error3NoCuts;
203 
207 
208  TH1F * hadOverEm;
211 
212 };
213 #endif
CalibrationCluster::CalibMap ReducedMap
std::vector< float > WeightVector
edm::InputTag recHitLabel_
virtual void analyze(const edm::Event &, const edm::EventSetup &)
HouseholderDecomposition * MyHH
std::vector< float > solutionNoCuts
MinL3Algorithm * MyL3Algo1
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