HepMC3 event record library
interfaces
Photospp
include
Photos
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
/**
10
* @class PhotosHepMC3Event
11
*
12
* @brief Interface to GenEvent objects
13
*
14
* This class implements the virtual methods of
15
* PhotosEvent. In this way it provides an
16
* interface between the generic PhotosEvent class
17
* and a GenEvent object.
18
*
19
* @author Nadia Davidson
20
* @date 17 June 2008
21
*
22
* This code is licensed under GNU General Public Licence.
23
* For more informations, see: http://www.gnu.org/licenses/
24
*/
25
26
#include <vector>
27
#include "
HepMC3/GenEvent.h
"
28
#include "PhotosEvent.h"
29
#include "PhotosParticle.h"
30
31
namespace
Photospp
32
{
33
using namespace
HepMC3
;
34
class
PhotosHepMC3Event
:
public
PhotosEvent
35
{
36
public
:
37
~
PhotosHepMC3Event
();
38
39
/** Constructor which keeps a pointer to the GenEvent*/
40
PhotosHepMC3Event
(
GenEvent
* event);
41
42
/** Returns the GenEvent */
43
GenEvent
*
getEvent
();
44
45
/** Returns the list of particles */
46
std::vector<PhotosParticle*>
getParticleList
();
47
48
/** Prints event summary */
49
void
print
();
50
private
:
51
/** The event */
52
GenEvent
*
m_event
;
53
/** Particle list */
54
std::vector<PhotosParticle *>
particles
;
55
};
56
57
}
// namespace Photospp
58
#endif
GenEvent.h
Definition of class GenEvent.
Photospp::PhotosHepMC3Event::getParticleList
std::vector< PhotosParticle * > getParticleList()
HepMC3::GenEvent
Stores event-related information.
Definition:
GenEvent.h:41
HepMC3
HepMC3 main namespace.
Definition:
AnalysisExample.h:19
Photospp::PhotosHepMC3Event
Definition:
PhotosHepMC3Event.h:35
Photospp::PhotosHepMC3Event::getEvent
GenEvent * getEvent()
Photospp::PhotosHepMC3Event::PhotosHepMC3Event
PhotosHepMC3Event(GenEvent *event)
Photospp::PhotosHepMC3Event::particles
std::vector< PhotosParticle * > particles
Definition:
PhotosHepMC3Event.h:54
Photospp::PhotosHepMC3Event::m_event
GenEvent * m_event
Definition:
PhotosHepMC3Event.h:52
Photospp::PhotosHepMC3Event::print
void print()
Generated on Tue Apr 6 2021 00:00:00 for HepMC3 event record library by
1.8.20