CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_0/src/RecoEgamma/Examples/plugins/MCPizeroAnalyzer.h

Go to the documentation of this file.
00001 #ifndef MCPizeroAnalyzer_H
00002 #define MCPizeroAnalyzer_H
00003 #include "RecoEgamma/EgammaMCTools/interface/PizeroMCTruthFinder.h"
00004 
00005 #include "SimTracker/TrackAssociation/interface/TrackAssociatorBase.h"
00006 #include "Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h"
00007 #include "FWCore/Framework/interface/EDAnalyzer.h"
00008 
00009 #include <map>
00010 #include <vector>
00011 
00012 
00013 // forward declarations
00014 class TFile;
00015 class TH1F;
00016 class TH2F;
00017 class TProfile;
00018 class TTree;
00019 class SimVertex;
00020 class SimTrack;
00021 
00022 
00023 class MCPizeroAnalyzer : public edm::EDAnalyzer
00024 {
00025 
00026    public:
00027 
00028       //
00029       explicit MCPizeroAnalyzer( const edm::ParameterSet& ) ;
00030       virtual ~MCPizeroAnalyzer();
00031 
00032 
00033       virtual void analyze( const edm::Event&, const edm::EventSetup& ) ;
00034       virtual void beginJob() ;
00035       virtual void endJob() ;
00036 
00037    private:
00038 
00039 
00040       float etaTransformation( float a, float b);
00041       float phiNormalization( float& a);
00042 
00043 
00044       //
00045       PizeroMCTruthFinder*  thePizeroMCTruthFinder_;
00046 
00047 
00048 
00049       std::string fOutputFileName_ ;
00050       TFile*      fOutputFile_ ;
00051 
00052 
00053 
00054 
00055       int nEvt_;
00056       int nMatched_;
00057 
00059       double mcPhi_;
00060       double mcEta_;
00061 
00062       std::string HepMCLabel;
00063       std::string SimTkLabel;
00064       std::string SimVtxLabel;
00065       std::string SimHitLabel;
00066 
00067 
00068       TH1F* h_MCPizE_;
00069       TH1F* h_MCPizEta_;
00070       TH1F* h_MCPizUnEta_;
00071       TH1F* h_MCPiz1ConEta_;
00072       TH1F* h_MCPiz2ConEta_;
00073       TH1F* h_MCPizPhi_;
00074       TH1F* h_MCPizMass1_;
00075       TH1F* h_MCPizMass2_;
00076 
00077       TH1F* h_MCEleE_;
00078       TH1F* h_MCEleEta_;
00079       TH1F* h_MCElePhi_;
00080       TH1F* h_BremFrac_;
00081       TH1F* h_BremEnergy_;
00082 
00083       TH2F* h_EleEvsPhoE_;
00084 
00085       TH1F* h_MCPhoE_;
00086       TH1F* h_MCPhoEta_;
00087       TH1F* h_MCPhoPhi_;
00088       TH1F* h_MCConvPhoE_;
00089       TH1F* h_MCConvPhoEta_;
00090       TH1F* h_MCConvPhoPhi_;
00091       TH1F* h_MCConvPhoR_;
00092 
00093 
00094 
00095 };
00096 
00097 #endif