PhotosHepMCEvent.h

00001 #ifndef _PhotosHepMCEvent_h_included_
00002 #define _PhotosHepMCEvent_h_included_
00003 
00004 /**
00005  * @class PhotosHepMCEvent
00006  *
00007  * @brief Interface to HepMC::GenEvent objects
00008  *
00009  * This class implements the virtual methods of
00010  * PhotosEvent. In this way it provides an
00011  * interface between the generic PhotosEvent class
00012  * and a HepMC::GenEvent object.
00013  *
00014  * @author Nadia Davidson
00015  * @date 17 June 2008
00016  *
00017  * This code is licensed under GNU General Public Licence.
00018  * For more informations, see: http://www.gnu.org/licenses/
00019  */
00020 
00021 #include <vector>
00022 #include "HepMC/GenEvent.h"
00023 #include "PhotosEvent.h"
00024 #include "PhotosParticle.h"
00025 
00026 namespace Photospp
00027 {
00028 
00029 class PhotosHepMCEvent : public PhotosEvent
00030 {
00031 public:
00032         ~PhotosHepMCEvent();
00033 
00034         /** Constructor which keeps a pointer to the HepMC::GenEvent*/
00035         PhotosHepMCEvent(HepMC::GenEvent * event);
00036 
00037         /** Returns the HepMC::GenEvent */
00038         HepMC::GenEvent * getEvent();
00039 
00040         /** Returns the list of particles */
00041         std::vector<PhotosParticle*> getParticleList();
00042 
00043         /** Prints event summary */
00044         void print();
00045 private:
00046         /** The event */
00047         HepMC::GenEvent * m_event;
00048         /** Particle list */
00049         std::vector<PhotosParticle *> particles;
00050 };
00051 
00052 } // namespace Photospp
00053 #endif  
Generated on Sun Oct 20 20:23:56 2013 for C++InterfacetoPHOTOS by  doxygen 1.6.3