CMS 3D CMS Logo

SiStripElectronAnalyzer.h
Go to the documentation of this file.
1 #ifndef RecoEgamma_Examples_SiStripElectronAnalyzer_h
2 #define RecoEgamma_Examples_SiStripElectronAnalyzer_h
3 // -*- C++ -*-
4 //
5 // Package: RecoEgamma/Examples
6 // Class : SiStripElectronAnalyzer
7 //
16 //
17 // Original Author:
18 // Created: Fri May 26 16:52:45 EDT 2006
19 //
20 
21 // system include files
22 #include <memory>
23 #include <map>
24 #include <math.h>
25 
26 // user include files
27 
30 
31 #include "TFile.h"
32 #include "TH1F.h"
33 
34 #include "TNtuple.h"
35 #include "TTree.h"
36 #include "TBranch.h"
37 
38 // forward declarations
39 
40 #define myMaxHits 1000
41 
42 //
43 // class decleration
44 //
45 
47  public:
50 
51 
52  virtual void analyze(const edm::Event&, const edm::EventSetup&);
53  virtual void beginJob();
54  virtual void initNtuple ( void ) ;
55  virtual void endJob( void );
56 
57  private:
58  double unwrapPhi(double phi) const {
59  while (phi > M_PI) { phi -= 2.*M_PI; }
60  while (phi < -M_PI) { phi += 2.*M_PI; }
61  return phi;
62  }
63 
64 
65  // ----------member data ---------------------------
67 
68 
69  TFile* file_;
70  TH1F* numCand_;
77 
82 
83  TH1F* ptDiff ;
84  TH1F* pDiff ;
93  TH1F* eOverPFailed ;
94  TH1F* eOverPPassed ;
95 
96 
100 
101  TTree* myTree_;
102 
103  int NShowers_ ;
108 
113 
117 
118  // errors in local coords
122 
126 
129 
130  // mono corresponds to "rphi" only hits
135 
139 
140  // errors in local coords
144 
148 
151 
152  // matched hits
157 
161 
162  // errors in local coords
166 
170 
173 
174 
191 };
192 
193 #endif
double unwrapPhi(double phi) const
#define myMaxHits
SiStripElectronAnalyzer(const edm::ParameterSet &)
#define M_PI
virtual void analyze(const edm::Event &, const edm::EventSetup &)