CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_1/src/TopQuarkAnalysis/Examples/plugins/TopGenEventAnalyzer.h

Go to the documentation of this file.
00001 #ifndef TopGenEventAnalyzer_h  
00002 #define TopGenEventAnalyzer_h
00003 
00004 #include "TH1.h"
00005 
00006 #include "FWCore/Framework/interface/Event.h"
00007 #include "FWCore/Framework/interface/EDAnalyzer.h"
00008 #include "FWCore/Utilities/interface/InputTag.h"
00009 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00010 #include "FWCore/ServiceRegistry/interface/Service.h"
00011 #include "CommonTools/UtilAlgos/interface/TFileService.h"
00012 
00013 
00014 class TopGenEventAnalyzer : public edm::EDAnalyzer {
00015 
00016  public:
00017   
00018   explicit TopGenEventAnalyzer(const edm::ParameterSet&);
00019   ~TopGenEventAnalyzer();
00020 
00021  private:
00022 
00023   virtual void beginJob() ;
00024   virtual void analyze(const edm::Event&, const edm::EventSetup&);
00025   virtual void endJob() ;
00026                 
00027   edm::InputTag inputGenEvent_;
00028 
00029   TH1F *nLep_;
00030   TH1F *topPt_;
00031   TH1F *topEta_;
00032   TH1F *topPhi_;
00033   TH1F *topBarPt_;
00034   TH1F *topBarEta_;
00035   TH1F *topBarPhi_;
00036   TH1F *ttbarPt_;
00037   TH1F *ttbarEta_;
00038   TH1F *ttbarPhi_;
00039   TH1F *prodChan_;
00040 };
00041 
00042 #endif