00001 #ifndef CALO_MCTRUTH_TREE_PRODUCER_H 00002 #define CALO_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 CaloMCTruthTreeProducer : public edm::EDAnalyzer 00011 { 00012 public: 00013 explicit CaloMCTruthTreeProducer(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 ~CaloMCTruthTreeProducer(); 00018 00019 private: 00020 std::string histogramFile_; 00021 std::string jets_; 00022 std::string genjets_; 00023 TFile* file_; 00024 TTree* mcTruthTree_; 00025 float ptJet_,emfJet_,ptGen_,ptHat_,dR_,etaJet_,etaGen_,phiJet_,phiGen_; 00026 int rank_; 00027 }; 00028 //} 00029 00030 #endif