CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_1/src/IOMC/NtupleConverter/interface/H2RootNtplSource.h

Go to the documentation of this file.
00001 #ifndef Input_H2RootNtpl_h
00002 #define Input_H2RootNtplSource_h
00003 
00011 #include "FWCore/Sources/interface/ExternalInputSource.h"
00012 #include "IOMC/Input/interface/HepMCFileReader.h"
00013 #include <map>
00014 #include <string>
00015 class Ntuple2HepMCFiller;
00016 
00017 namespace edm
00018 {
00019         class H2RootNtplSource : public ExternalInputSource {
00020                 public:
00021                 H2RootNtplSource(const ParameterSet &, const InputSourceDescription &  );
00022                 virtual ~H2RootNtplSource();
00023                 
00024                 private:                
00025                 void clear();   
00026                 virtual bool produce(Event &e);         
00027                 HepMC::GenEvent  *evt;
00028                 EventID nextID_;        
00029                 std::string filename_;
00030         public:
00031                 unsigned int firstEvent_;
00032                 Ntuple2HepMCFiller * reader_;
00033                 
00034         };
00035 } 
00036 
00037 #endif