Belle II Software  release-06-01-15
PhotosHEPEVTEvent.h
1 #ifndef _PhotosHEPEVTEvent_h_included_
2 #define _PhotosHEPEVTEvent_h_included_
3 
18 #include <iostream>
19 #include "PhotosEvent.h"
20 #include "PhotosParticle.h"
21 #include "PhotosHEPEVTParticle.h"
22 
23 namespace Photospp {
24 
26 
27  class PhotosHEPEVTEvent : public PhotosEvent {
28 
29  public:
30 
33 
36 
39 
42 
44  void setParticle(int i, PhotosHEPEVTParticle* p);
45 
47  int getParticleCount();
48 
50  std::vector<PhotosParticle*> getParticleList();
51 
53  void print();
54 
56  void clear();
57 
59  static void read_event_from_HEPEVT(PhotosHEPEVTEvent* evt);
60 
62  static void write_event_to_HEPEVT(PhotosHEPEVTEvent* evt);
63 
64  private:
65 
67  std::vector<PhotosHEPEVTParticle*> particle_list;
68  };
69 
70 } // namespace Photospp
71 #endif
72 
Single particle of HEPEVT event record.
static void read_event_from_HEPEVT(PhotosHEPEVTEvent *evt)
Fill PhotosHEPEVTEvent from HEPEVT common block.
void addParticle(PhotosHEPEVTParticle *p)
Add particle at the end of event record.
void print()
Print out list of particles in the event.
int getParticleCount()
Get higher-most index of the particles in event (nhep)
PhotosHEPEVTParticle * getParticle(int i)
Get particle at index 'i'.
std::vector< PhotosParticle * > getParticleList()
Get an unfiltered list of particles from the event record.
PhotosHEPEVTEvent()
Default constructor.
std::vector< PhotosHEPEVTParticle * > particle_list
List of all particles.
void clear()
Remove all particles from the event.
static void write_event_to_HEPEVT(PhotosHEPEVTEvent *evt)
Write to HEPEVT common block content of PhotosHEPEVTEvent.
~PhotosHEPEVTEvent()
Default destructor.
void setParticle(int i, PhotosHEPEVTParticle *p)
Set particle at index 'i'.