Belle II Software  release-05-02-19
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 
Photospp::PhotosHEPEVTEvent::clear
void clear()
Remove all particles from the event.
Definition: PhotosHEPEVTEvent.cc:86
Photospp::PhotosHEPEVTEvent::PhotosHEPEVTEvent
PhotosHEPEVTEvent()
Default constructor.
Definition: PhotosHEPEVTEvent.cc:38
Photospp::PhotosHEPEVTEvent::getParticle
PhotosHEPEVTParticle * getParticle(int i)
Get particle at index 'i'.
Definition: PhotosHEPEVTEvent.cc:54
Photospp::PhotosHEPEVTEvent
Definition: PhotosHEPEVTEvent.h:27
Photospp::PhotosHEPEVTEvent::getParticleCount
int getParticleCount()
Get higher-most index of the particles in event (nhep)
Definition: PhotosHEPEVTEvent.cc:66
Photospp::PhotosHEPEVTParticle
Definition: PhotosHEPEVTParticle.h:31
PhotosHEPEVTParticle
Single particle of HEPEVT event record.
Photospp::PhotosHEPEVTEvent::print
void print()
Print out list of particles in the event.
Definition: PhotosHEPEVTEvent.cc:80
Photospp::PhotosHEPEVTEvent::read_event_from_HEPEVT
static void read_event_from_HEPEVT(PhotosHEPEVTEvent *evt)
Fill PhotosHEPEVTEvent from HEPEVT common block.
Definition: PhotosHEPEVTEvent.cc:92
Photospp::PhotosHEPEVTEvent::particle_list
std::vector< PhotosHEPEVTParticle * > particle_list
List of all particles.
Definition: PhotosHEPEVTEvent.h:67
Photospp::PhotosHEPEVTEvent::~PhotosHEPEVTEvent
~PhotosHEPEVTEvent()
Default destructor.
Definition: PhotosHEPEVTEvent.cc:33
Photospp::PhotosHEPEVTEvent::addParticle
void addParticle(PhotosHEPEVTParticle *p)
Add particle at the end of event record.
Definition: PhotosHEPEVTEvent.cc:46
Photospp::PhotosHEPEVTEvent::setParticle
void setParticle(int i, PhotosHEPEVTParticle *p)
Set particle at index 'i'.
Definition: PhotosHEPEVTEvent.cc:60
Photospp::PhotosHEPEVTEvent::write_event_to_HEPEVT
static void write_event_to_HEPEVT(PhotosHEPEVTEvent *evt)
Write to HEPEVT common block content of PhotosHEPEVTEvent.
Definition: PhotosHEPEVTEvent.cc:117
Photospp::PhotosHEPEVTEvent::getParticleList
std::vector< PhotosParticle * > getParticleList()
Get an unfiltered list of particles from the event record.
Definition: PhotosHEPEVTEvent.cc:71
Photospp::PhotosEvent
Definition: PhotosEvent.h:25