include
Photos
include/Photos/PhotosHepMCEvent.h
1
#ifndef _PhotosHepMCEvent_h_included_
2
#define _PhotosHepMCEvent_h_included_
3
4
/**
5
* @class PhotosHepMCEvent
6
*
7
* @brief Interface to HepMC::GenEvent objects
8
*
9
* This class implements the virtual methods of
10
* PhotosEvent. In this way it provides an
11
* interface between the generic PhotosEvent class
12
* and a HepMC::GenEvent object.
13
*
14
* @author Nadia Davidson
15
* @date 17 June 2008
16
*
17
* This code is licensed under GNU General Public Licence.
18
* For more informations, see: http://www.gnu.org/licenses/
19
*/
20
21
#include <vector>
22
#include "HepMC/GenEvent.h"
23
#include "PhotosEvent.h"
24
#include "PhotosParticle.h"
25
26
namespace
Photospp
27
{
28
29
class
PhotosHepMCEvent
:
public
PhotosEvent
30
{
31
public
:
32
~PhotosHepMCEvent
();
33
34
/** Constructor which keeps a pointer to the HepMC::GenEvent*/
35
PhotosHepMCEvent
(HepMC::GenEvent * event);
36
37
/** Returns the HepMC::GenEvent */
38
HepMC::GenEvent *
getEvent
();
39
40
/** Returns the list of particles */
41
std::vector<PhotosParticle*>
getParticleList
();
42
43
/** Prints event summary */
44
void
print
();
45
private
:
46
/** The event */
47
HepMC::GenEvent *
m_event
;
48
/** Particle list */
49
std::vector<PhotosParticle *>
particles
;
50
};
51
52
}
// namespace Photospp
53
#endif
Photospp::PhotosEvent
Definition
include/Photos/PhotosEvent.h:27
Photospp::PhotosHepMCEvent
Definition
include/Photos/PhotosHepMCEvent.h:30
Photospp::PhotosHepMCEvent::print
void print()
Definition
PhotosHepMCEvent.cxx:49
Photospp::PhotosHepMCEvent::getParticleList
std::vector< PhotosParticle * > getParticleList()
Definition
PhotosHepMCEvent.cxx:55
Photospp::PhotosHepMCEvent::getEvent
HepMC::GenEvent * getEvent()
Definition
PhotosHepMCEvent.cxx:44
Photospp::PhotosHepMCEvent::m_event
HepMC::GenEvent * m_event
Definition
include/Photos/PhotosHepMCEvent.h:47
Photospp::PhotosHepMCEvent::particles
std::vector< PhotosParticle * > particles
Definition
include/Photos/PhotosHepMCEvent.h:49
Generated by
1.9.8