CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_9_patch3/src/TopQuarkAnalysis/Examples/plugins/TopElecAnalyzer.h

Go to the documentation of this file.
00001 #ifndef TopElecAnalyzer_h  
00002 #define TopElecAnalyzer_h
00003 
00004 #include "TH1F.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 class TopElecAnalyzer : public edm::EDAnalyzer {
00014 
00015  public:
00016   
00017   explicit TopElecAnalyzer(const edm::ParameterSet&);
00018   ~TopElecAnalyzer();
00019   
00020  private:
00021   
00022   virtual void beginJob() ;
00023   virtual void analyze(const edm::Event&, const edm::EventSetup&);
00024   virtual void endJob() ;
00025 
00026   edm::InputTag input_;
00027   bool verbose_;
00028   
00029   TH1F *mult_;
00030   TH1F *en_;
00031   TH1F *pt_;
00032   TH1F *eta_;
00033   TH1F *phi_;
00034 
00035 };  
00036 
00037 #endif