CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch1/src/JetMETCorrections/MCJet/plugins/PFMCTruthTreeProducer.h

Go to the documentation of this file.
00001 #ifndef PF_MCTRUTH_TREE_PRODUCER_H
00002 #define PF_MCTRUTH_TREE_PRODUCER_H
00003 
00004 #include "TTree.h"
00005 #include "TFile.h"
00006 #include "FWCore/Framework/interface/EDAnalyzer.h"
00007 
00008 //namespace cms
00009 //{
00010 class PFMCTruthTreeProducer : public edm::EDAnalyzer 
00011 {
00012   public:
00013     explicit PFMCTruthTreeProducer(edm::ParameterSet const& cfg);
00014     virtual void beginJob();
00015     virtual void analyze(edm::Event const& e, edm::EventSetup const& iSetup);
00016     virtual void endJob();
00017     ~PFMCTruthTreeProducer();
00018 
00019   private:
00020     std::string histogramFile_;
00021     std::string jets_;
00022     std::string genjets_;
00023     TFile* file_;
00024     TTree* mcTruthTree_;
00025     float ptJet_,chfJet_,nhfJet_,cemfJet_,nemfJet_,ptGen_,ptHat_,dR_,etaJet_,etaGen_,phiJet_,phiGen_;
00026     int rank_,cmultiJet_,nmultiJet_;
00027 };
00028 //}
00029 
00030 #endif