CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MCPhotonAnalyzer.h
Go to the documentation of this file.
1 #ifndef MCPhotonAnalyzer_H
2 #define MCPhotonAnalyzer_H
4 
7 
8 #include <map>
9 #include <vector>
10 
11 
12 // forward declarations
13 class TFile;
14 class TH1F;
15 class TH2F;
16 class TProfile;
17 class TTree;
18 class SimVertex;
19 class SimTrack;
20 
21 
23 {
24 
25  public:
26 
27  //
28  explicit MCPhotonAnalyzer( const edm::ParameterSet& ) ;
29  virtual ~MCPhotonAnalyzer();
30 
31 
32  virtual void analyze( const edm::Event&, const edm::EventSetup& ) ;
33  virtual void beginJob() ;
34  virtual void endJob() ;
35 
36  private:
37 
38 
39  float etaTransformation( float a, float b);
40  float phiNormalization( float& a);
41 
42 
43  //
45 
47 
49  TFile* fOutputFile_ ;
50 
51 
52 
53 
54  int nEvt_;
55  int nMatched_;
56 
58 
59  double mcPhi_;
60  double mcEta_;
61 
66 
67 
68  // all photons
69  TH1F* h_MCPhoE_;
70  TH1F* h_MCPhoEta_;
71  TH1F* h_MCPhoEta1_;
72  TH1F* h_MCPhoEta2_;
73  TH1F* h_MCPhoEta3_;
74  TH1F* h_MCPhoEta4_;
75  TH1F* h_MCPhoPhi_;
76  // Conversion
89 
90 
101 
102  TH1F* h_MCEleE_;
103  TH1F* h_MCEleEta_;
104  TH1F* h_MCElePhi_;
105  TH1F* h_BremFrac_;
109 
110  TProfile* p_BremVsR_;
111  TProfile* p_BremVsEta_;
112 
113  TProfile* p_BremVsConvR_;
114  TProfile* p_BremVsConvEta_;
115 
117 
118 };
119 
120 #endif
float etaTransformation(float a, float b)
TH1F * h_MCConvPhoOneTrackE_
Conversions with one track.
double mcPhi_
global variable for the MC photon
virtual void beginJob()
TH1F * h_MCConvPhoTwoTracksPhi_
TProfile * p_BremVsEta_
const TrackerGeometry * trackerGeom
TH1F * h_MCConvPhoOneTrackPhi_
TProfile * p_BremVsConvR_
std::string fOutputFileName_
TH1F * h_MCConvPhoTwoTracksR_
TH1F * h_MCConvPhoTwoTracksE_
Conversions with two tracks.
TH1F * h_MCConvPhoOneTrackEta_
TProfile * p_BremVsConvEta_
std::string SimTkLabel
MCPhotonAnalyzer(const edm::ParameterSet &)
virtual ~MCPhotonAnalyzer()
std::string HepMCLabel
std::string SimVtxLabel
virtual void endJob()
double b
Definition: hdecay.h:120
std::string SimHitLabel
TH1F * h_MCConvPhoTwoTracksEta_
virtual void analyze(const edm::Event &, const edm::EventSetup &)
double a
Definition: hdecay.h:121
PhotonMCTruthFinder * thePhotonMCTruthFinder_
float phiNormalization(float &a)