Class Reference for E1039 Core & Analysis Software
PHGenEvent.h
Go to the documentation of this file.
1 #ifndef __PHGENEVENT__
2 #define __PHGENEVENT__
3 
4 #include <phool/PHObject.h>
5 
6 #include <HepMC/Units.h>
7 #include <HepMC/GenEvent.h>
8 
9 class PHGenEvent : public PHObject {
10 
11  public:
12  virtual ~PHGenEvent() {}
13 
14  virtual const HepMC::GenEvent* get_event() const {return NULL;}
15  virtual HepMC::GenEvent* get_event() {return NULL;}
16  virtual void set_event(HepMC::GenEvent& event) {}
17  virtual void set_event(HepMC::GenEvent* event) {}
18 
19  virtual unsigned int get_id() const {return 0;}
20  virtual void set_id(const unsigned int id) {}
21 
22  // the number of entries in the array of particles
23  virtual size_t particles_size() const {return 0;}
24  virtual size_t vertices_size() const {return 0;}
25 
26  virtual void identify(std::ostream& out = std::cout) const {
27  out << "PHGenEvent" << std::endl;
28  }
29  virtual void Reset() {}
30  virtual void print(std::ostream& out = std::cout) const {}
31 
32 protected:
34 
35 private:
36 
37  ClassDef(PHGenEvent,1)
38 };
39 
40 #endif // __PHHEPMCEVENT__
#define NULL
Definition: Pdb.h:9
virtual void set_event(HepMC::GenEvent &event)
Definition: PHGenEvent.h:16
virtual unsigned int get_id() const
Definition: PHGenEvent.h:19
virtual void set_event(HepMC::GenEvent *event)
Definition: PHGenEvent.h:17
virtual HepMC::GenEvent * get_event()
Definition: PHGenEvent.h:15
virtual void print(std::ostream &out=std::cout) const
Definition: PHGenEvent.h:30
virtual size_t particles_size() const
Definition: PHGenEvent.h:23
virtual void Reset()
Clear Event.
Definition: PHGenEvent.h:29
virtual const HepMC::GenEvent * get_event() const
Definition: PHGenEvent.h:14
virtual void identify(std::ostream &out=std::cout) const
Definition: PHGenEvent.h:26
virtual size_t vertices_size() const
Definition: PHGenEvent.h:24
virtual ~PHGenEvent()
Definition: PHGenEvent.h:12
virtual void set_id(const unsigned int id)
Definition: PHGenEvent.h:20