HepMC3 event record library
PhotosHepMC3Event.h
1// -*- C++ -*-
2//
3// This file is part of HepMC
4// Copyright (C) 2014-2019 The HepMC collaboration (see AUTHORS for details)
5//
6#ifndef _PhotosHepMC3Event_h_included_
7#define _PhotosHepMC3Event_h_included_
8
9#warning "HepMC3 interface is available in the latest version of PHOTOS, see http://photospp.web.cern.ch/photospp/. This interface will be removed in the future HepMC3 versions."
10
11/**
12 * @class PhotosHepMC3Event
13 *
14 * @brief Interface to GenEvent objects
15 *
16 * This class implements the virtual methods of
17 * PhotosEvent. In this way it provides an
18 * interface between the generic PhotosEvent class
19 * and a GenEvent object.
20 *
21 * @author Nadia Davidson
22 * @date 17 June 2008
23 *
24 * This code is licensed under GNU General Public Licence.
25 * For more informations, see: http://www.gnu.org/licenses/
26 */
27
28#include <vector>
29#include "HepMC3/GenEvent.h"
30#include "PhotosEvent.h"
31#include "PhotosParticle.h"
32
33namespace Photospp
34{
35using namespace HepMC3;
36class PhotosHepMC3Event : public PhotosEvent
37{
38public:
40
41 /** Constructor which keeps a pointer to the GenEvent*/
43
44 /** Returns the GenEvent */
46
47 /** Returns the list of particles */
48 std::vector<PhotosParticle*> getParticleList();
49
50 /** Prints event summary */
51 void print();
52private:
53 /** The event */
55 /** Particle list */
56 std::vector<PhotosParticle *> particles;
57};
58
59} // namespace Photospp
60#endif
Definition of class GenEvent.
Stores event-related information.
Definition: GenEvent.h:41
std::vector< PhotosParticle * > particles
std::vector< PhotosParticle * > getParticleList()
PhotosHepMC3Event(GenEvent *event)
HepMC3 main namespace.