00001 #ifndef HepMGProductAnalyzer_h 00002 #define HepMGProductAnalyzer_h 00003 // -*- C++ -*- 00004 // 00005 // Package: HepMGProductAnalyzer 00006 // Class: HepMGProductAnalyzer 00007 // 00015 // 00016 // Original Author: Filip Moortgat 00017 // Additions made: Maria Hansen 00018 // 00019 00020 00021 // system include files 00022 #include <memory> 00023 #include <string> 00024 00025 // user include files 00026 #include "FWCore/Framework/interface/Frameworkfwd.h" 00027 #include "FWCore/Framework/interface/EDAnalyzer.h" 00028 00029 #include "FWCore/Framework/interface/Event.h" 00030 #include "FWCore/Framework/interface/MakerMacros.h" 00031 00032 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00033 #include "SimDataFormats/HepMCProduct/interface/HepMCProduct.h" 00034 00035 00036 class HepMGProductAnalyzer : public edm::EDAnalyzer { 00037 public: 00038 explicit HepMGProductAnalyzer(const edm::ParameterSet&); 00039 ~HepMGProductAnalyzer(); 00040 00041 virtual void analyze(const edm::Event&, const edm::EventSetup&); 00042 void printTable(HepMC::GenEvent * event); 00043 private: 00044 std::string label_; 00045 }; 00046 #endif