Main Page
Data Structures
Files
File List
src
eventRecordInterfaces
PhotosHEPEVTEvent.h
1
#ifndef _PhotosHEPEVTEvent_h_included_
2
#define _PhotosHEPEVTEvent_h_included_
3
4
/**
5
* @class PhotosHEPEVTParticle
6
*
7
* @brief Single particle of HEPEVT event record
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 information stored in HEPEVT event record.
13
*
14
* @author Tomasz Przedzinski
15
* @date 24 November 2011
16
*/
17
18
#include <iostream>
19
#include "PhotosEvent.h"
20
#include "PhotosParticle.h"
21
#include "PhotosHEPEVTParticle.h"
22
23
namespace
Photospp
24
{
25
26
class
PhotosHEPEVTParticle
;
27
28
class
PhotosHEPEVTEvent
:
public
PhotosEvent
{
29
30
public
:
31
32
/** Default destructor */
33
~PhotosHEPEVTEvent
();
34
35
/** Default constructor */
36
PhotosHEPEVTEvent
();
37
38
/** Add particle at the end of event record */
39
void
addParticle
(
PhotosHEPEVTParticle
*p);
40
41
/** Get particle at index 'i' */
42
PhotosHEPEVTParticle
*
getParticle
(
int
i);
43
44
/** Set particle at index 'i' */
45
void
setParticle
(
int
i,
PhotosHEPEVTParticle
*p);
46
47
/** Get higher-most index of the particles in event (nhep) */
48
int
getParticleCount
();
49
50
/** Get an unfiltered list of particles from the event record */
51
std::vector<PhotosParticle*>
getParticleList
();
52
53
/** Print out list of particles in the event */
54
void
print
();
55
56
/** Remove all particles from the event */
57
void
clear
();
58
59
/** Fill PhotosHEPEVTEvent from HEPEVT common block */
60
static
void
read_event_from_HEPEVT
(
PhotosHEPEVTEvent
*evt);
61
62
/** Write to HEPEVT common block content of PhotosHEPEVTEvent */
63
static
void
write_event_to_HEPEVT
(
PhotosHEPEVTEvent
*evt);
64
65
private
:
66
67
/** List of all particles */
68
std::vector<PhotosHEPEVTParticle*>
particle_list
;
69
};
70
71
}
// namespace Photospp
72
#endif
73
Photospp::PhotosHEPEVTEvent::write_event_to_HEPEVT
static void write_event_to_HEPEVT(PhotosHEPEVTEvent *evt)
Definition:
PhotosHEPEVTEvent.cxx:118
Photospp::PhotosHEPEVTEvent::PhotosHEPEVTEvent
PhotosHEPEVTEvent()
Definition:
PhotosHEPEVTEvent.cxx:38
Photospp::PhotosHEPEVTEvent::clear
void clear()
Definition:
PhotosHEPEVTEvent.cxx:86
Photospp::PhotosHEPEVTEvent
Definition:
PhotosHEPEVTEvent.h:28
Photospp::PhotosHEPEVTEvent::getParticle
PhotosHEPEVTParticle * getParticle(int i)
Definition:
PhotosHEPEVTEvent.cxx:54
Photospp::PhotosHEPEVTEvent::getParticleCount
int getParticleCount()
Definition:
PhotosHEPEVTEvent.cxx:66
Photospp::PhotosHEPEVTEvent::particle_list
std::vector< PhotosHEPEVTParticle * > particle_list
Definition:
PhotosHEPEVTEvent.h:68
Photospp::PhotosHEPEVTEvent::read_event_from_HEPEVT
static void read_event_from_HEPEVT(PhotosHEPEVTEvent *evt)
Definition:
PhotosHEPEVTEvent.cxx:92
Photospp::PhotosHEPEVTEvent::setParticle
void setParticle(int i, PhotosHEPEVTParticle *p)
Definition:
PhotosHEPEVTEvent.cxx:60
Photospp::PhotosHEPEVTEvent::print
void print()
Definition:
PhotosHEPEVTEvent.cxx:80
Photospp::PhotosHEPEVTEvent::getParticleList
std::vector< PhotosParticle * > getParticleList()
Definition:
PhotosHEPEVTEvent.cxx:71
Photospp::PhotosHEPEVTEvent::addParticle
void addParticle(PhotosHEPEVTParticle *p)
Definition:
PhotosHEPEVTEvent.cxx:46
Photospp::PhotosEvent
Definition:
PhotosEvent.h:26
Photospp::PhotosHEPEVTEvent::~PhotosHEPEVTEvent
~PhotosHEPEVTEvent()
Definition:
PhotosHEPEVTEvent.cxx:33
Photospp::PhotosHEPEVTParticle
Definition:
PhotosHEPEVTParticle.h:32
PhotosHEPEVTParticle
Single particle of HEPEVT event record.
Generated on Tue Mar 12 2024 23:11:40 for C++InterfacetoPHOTOS by
1.8.7