CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MCFileSource.h
Go to the documentation of this file.
1 #ifndef IOMC_Input_MCFileSource_h
2 #define IOMC_Input_MCFileSource_h
3 
11 
12 class HepMCFileReader;
13 
14 namespace HepMC{
15  class GenEvent;
16 }
17 
18 namespace edm {
19  class Event;
20  class EventID;
21  struct InputSourceDescription;
22  class ParameterSet;
23  class Timestamp;
24 
26  public:
27  MCFileSource(const ParameterSet& pset, const InputSourceDescription& desc);
28  virtual ~MCFileSource();
29 
30  private:
31  virtual bool setRunAndEventInfo(EventID&, TimeValue_t& time);
32  virtual void produce(Event &e);
33  void clear();
34 
36  HepMC::GenEvent *evt_;
38  };
39 }
40 
41 #endif
MCFileSource(const ParameterSet &pset, const InputSourceDescription &desc)
Definition: MCFileSource.cc:23
virtual void produce(Event &e)
Definition: MCFileSource.cc:52
virtual ~MCFileSource()
Definition: MCFileSource.cc:40
HepMCFileReader * reader_
Definition: MCFileSource.h:35
unsigned long long TimeValue_t
Definition: Timestamp.h:28
HepMC::GenEvent * evt_
Definition: MCFileSource.h:36
virtual bool setRunAndEventInfo(EventID &, TimeValue_t &time)
Definition: MCFileSource.cc:44