2 * Interface for FORTRAN example of use of Photos++
4 * @author Tomasz Przedzinski
7 #include "Photos/Photos.h"
8 #include "Photos/PhotosHEPEVTEvent.h"
9 using namespace Photospp;
18 void photos_process_()
20 PhotosHEPEVTEvent *event = new PhotosHEPEVTEvent();
22 PhotosHEPEVTEvent::read_event_from_HEPEVT(event);
28 PhotosHEPEVTEvent::write_event_to_HEPEVT(event);
33 void photos_process_particle_(int *i)
35 PhotosHEPEVTEvent *event = new PhotosHEPEVTEvent();
37 PhotosHEPEVTEvent::read_event_from_HEPEVT(event);
40 PhotosParticle *p = event->getParticle(*i - 1);
42 Photos::processParticle(p);
45 PhotosHEPEVTEvent::write_event_to_HEPEVT(event);
50 void photos_process_branch_(int *i)
52 PhotosHEPEVTEvent *event = new PhotosHEPEVTEvent();
54 PhotosHEPEVTEvent::read_event_from_HEPEVT(event);
57 PhotosParticle *p = event->getParticle(*i - 1);
59 Photos::processBranch(p);
62 PhotosHEPEVTEvent::write_event_to_HEPEVT(event);