CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 // $Id: SiStripElectronAnalyzer.h,v 1.3 2009/03/06 12:42:16 chamont Exp $
20 //
21 
22 // system include files
23 #include <memory>
24 #include <map>
25 #include <math.h>
26 
27 // user include files
28 
31 
32 #include "TFile.h"
33 #include "TH1F.h"
34 
35 #include "TNtuple.h"
36 #include "TTree.h"
37 #include "TBranch.h"
38 
39 // forward declarations
40 
41 #define myMaxHits 1000
42 
43 //
44 // class decleration
45 //
46 
48  public:
51 
52 
53  virtual void analyze(const edm::Event&, const edm::EventSetup&);
54  virtual void beginJob();
55  virtual void initNtuple ( void ) ;
56  virtual void endJob( void );
57 
58  private:
59  double unwrapPhi(double phi) const {
60  while (phi > M_PI) { phi -= 2.*M_PI; }
61  while (phi < -M_PI) { phi += 2.*M_PI; }
62  return phi;
63  }
64 
65 
66  // ----------member data ---------------------------
68 
69 
70  TFile* file_;
71  TH1F* numCand_;
78 
83 
84  TH1F* ptDiff ;
85  TH1F* pDiff ;
94  TH1F* eOverPFailed ;
95  TH1F* eOverPPassed ;
96 
97 
101 
102  TTree* myTree_;
103 
104  int NShowers_ ;
109 
114 
118 
119  // errors in local coords
123 
127 
130 
131  // mono corresponds to "rphi" only hits
136 
140 
141  // errors in local coords
145 
149 
152 
153  // matched hits
158 
162 
163  // errors in local coords
167 
171 
174 
175 
192 };
193 
194 #endif
double unwrapPhi(double phi) const
#define myMaxHits
SiStripElectronAnalyzer(const edm::ParameterSet &)
#define M_PI
Definition: BFit3D.cc:3
virtual void analyze(const edm::Event &, const edm::EventSetup &)
Definition: DDAxes.h:10