CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_7/src/PhysicsTools/PatExamples/interface/AnalysisTasksAnalyzerJEC.h

Go to the documentation of this file.
00001 #include <map>
00002 #include <string>
00003 
00004 #include "TH2.h"
00005 #include "PhysicsTools/UtilAlgos/interface/BasicAnalyzer.h"
00006 
00019 class AnalysisTasksAnalyzerJEC : public edm::BasicAnalyzer {
00020 
00021  public:
00023   AnalysisTasksAnalyzerJEC(const edm::ParameterSet& cfg, TFileDirectory& fs);
00025   virtual ~AnalysisTasksAnalyzerJEC();
00027   void beginJob(){};
00029   void endJob(){};
00031   void analyze(const edm::EventBase& event);
00032 
00033  private:
00035   edm::InputTag Jets_;
00036   std::string jecLevel_;
00037   std::string jecSetLabel_;
00038   std::string patJetCorrFactors_;
00039   bool help_;
00040   std::string outputFileName_;
00041   unsigned int jetInEvents_;
00043   std::map<std::string, TH2*> hists_;
00044 };