File indexing completed on 2026-09-27 09:20:26
0001 #ifndef _PhotosHEPEVTEvent_h_included_
0002 #define _PhotosHEPEVTEvent_h_included_
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018 #include <iostream>
0019 #include "PhotosEvent.h"
0020 #include "PhotosParticle.h"
0021 #include "PhotosHEPEVTParticle.h"
0022
0023 namespace Photospp
0024 {
0025
0026 class PhotosHEPEVTParticle;
0027
0028 class PhotosHEPEVTEvent : public PhotosEvent {
0029
0030 public:
0031
0032
0033 ~PhotosHEPEVTEvent();
0034
0035
0036 PhotosHEPEVTEvent();
0037
0038
0039 void addParticle(PhotosHEPEVTParticle *p);
0040
0041
0042 PhotosHEPEVTParticle *getParticle(int i);
0043
0044
0045 void setParticle(int i, PhotosHEPEVTParticle *p);
0046
0047
0048 int getParticleCount();
0049
0050
0051 std::vector<PhotosParticle*> getParticleList();
0052
0053
0054 void print();
0055
0056
0057 void clear();
0058
0059
0060 static void read_event_from_HEPEVT(PhotosHEPEVTEvent *evt);
0061
0062
0063 static void write_event_to_HEPEVT(PhotosHEPEVTEvent *evt);
0064
0065 private:
0066
0067
0068 std::vector<PhotosHEPEVTParticle*> particle_list;
0069 };
0070
0071 }
0072 #endif
0073