FairRoot/PandaRoot
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
pgenerators
EvtGen
Photos
Photos.3.52
src
eventRecordInterfaces
3.52/src/eventRecordInterfaces/PhotosHEPEVTEvent.h
Go to the documentation of this file.
1
#ifndef _PhotosHEPEVTEvent_h_included_
2
#define _PhotosHEPEVTEvent_h_included_
3
18
#include <iostream>
19
#include "PhotosEvent.h"
20
#include "PhotosParticle.h"
21
#include "
PhotosHEPEVTParticle.h
"
22
23
namespace
Photospp
24
{
25
26
// Uncomment this line to use interface to common block HEPEVT
27
// But first be sure about suitable for you value of NMXHEP
28
// and whether phep, vhep should be declared float or double
29
//#define USE_HEPEVT_INTERFACE
30
31
#ifdef USE_HEPEVT_INTERFACE
32
33
// Change this value to match HEPEVT size
34
const
int
NMXHEP
= 10000;
35
36
extern
"C"
struct
{
37
int
nevhep
;
// serial number
38
int
nhep
;
// number of particles
39
int
isthep
[
NMXHEP
];
// status code
40
int
idhep
[
NMXHEP
];
// particle PDG ID
41
int
jmohep
[
NMXHEP
][2];
// parent particles
42
int
jdahep
[
NMXHEP
][2];
// childreen particles
43
double
phep
[
NMXHEP
][5];
// four-momentum, mass [GeV]
44
double
vhep
[
NMXHEP
][4];
// vertex [mm]
45
} hepevt_;
46
47
#endif
48
49
class
PhotosHEPEVTParticle
;
50
51
class
PhotosHEPEVTEvent :
public
PhotosEvent
{
52
53
public
:
54
56
~PhotosHEPEVTEvent
();
57
59
PhotosHEPEVTEvent
();
60
62
void
addParticle
(
PhotosHEPEVTParticle
*
p
);
63
65
PhotosHEPEVTParticle
*
getParticle
(
int
i
);
66
68
void
setParticle
(
int
i
,
PhotosHEPEVTParticle
*
p
);
69
71
int
getParticleCount
();
72
74
std::vector<PhotosParticle*>
getParticleList
();
75
77
void
print
();
78
80
void
clear
();
81
82
#ifdef USE_HEPEVT_INTERFACE
83
84
static
void
read_event_from_HEPEVT(
PhotosHEPEVTEvent
*
evt
);
85
87
static
void
write_event_to_HEPEVT(
PhotosHEPEVTEvent
*
evt
);
88
#endif
89
90
private
:
91
93
std::vector<PhotosHEPEVTParticle*>
particle_list
;
94
};
95
96
}
// namespace Photospp
97
#endif
98
p
Double_t p
Definition:
anasim.C:58
Photospp::PhotosHEPEVTEvent::getParticleList
std::vector< PhotosParticle * > getParticleList()
Definition:
PhotosHEPEVTEvent.cxx:39
Photospp::nhep
int nhep
Definition:
PH_HEPEVT_Interface.h:20
Photospp::vhep
double vhep[NMXHEP][4]
Definition:
PH_HEPEVT_Interface.h:26
i
Int_t i
Definition:
run_full.C:25
Photospp::PhotosHEPEVTEvent::getParticle
PhotosHEPEVTParticle * getParticle(int i)
Definition:
PhotosHEPEVTEvent.cxx:22
evt
int evt
Definition:
checkhelixhit.C:36
Photospp::isthep
int isthep[NMXHEP]
Definition:
PH_HEPEVT_Interface.h:21
Photospp::PhotosHEPEVTEvent::PhotosHEPEVTEvent
PhotosHEPEVTEvent()
Definition:
PhotosHEPEVTEvent.cxx:12
Photospp::PhotosHEPEVTEvent::getParticleCount
int getParticleCount()
Definition:
PhotosHEPEVTEvent.cxx:34
Photospp::NMXHEP
static const int NMXHEP
Definition:
PH_HEPEVT_Interface.h:11
Photospp::PhotosHEPEVTEvent::particle_list
std::vector< PhotosHEPEVTParticle * > particle_list
Definition:
PhotosHEPEVTEvent.h:93
Photospp::PhotosHEPEVTEvent::print
void print()
Definition:
PhotosHEPEVTEvent.cxx:48
Photospp::idhep
int idhep[NMXHEP]
Definition:
PH_HEPEVT_Interface.h:22
Photospp::PhotosHEPEVTEvent::~PhotosHEPEVTEvent
~PhotosHEPEVTEvent()
Definition:
PhotosHEPEVTEvent.cxx:7
Photospp::phep
double phep[NMXHEP][5]
Definition:
PH_HEPEVT_Interface.h:25
Photospp::nevhep
int nevhep
Definition:
PH_HEPEVT_Interface.h:19
PhotosEvent
Abstract base class for containing the event information.
PhotosHEPEVTParticle.h
Photospp::PhotosHEPEVTEvent::clear
void clear()
Definition:
PhotosHEPEVTEvent.cxx:54
Photospp::jdahep
int jdahep[NMXHEP][2]
Definition:
PH_HEPEVT_Interface.h:24
Photospp::PhotosHEPEVTEvent::setParticle
void setParticle(int i, PhotosHEPEVTParticle *p)
Definition:
PhotosHEPEVTEvent.cxx:28
Photospp::PhotosHEPEVTEvent::addParticle
void addParticle(PhotosHEPEVTParticle *p)
Definition:
PhotosHEPEVTEvent.cxx:14
PhotosHEPEVTParticle
Single particle of HEPEVT event record.
Photospp::jmohep
int jmohep[NMXHEP][2]
Definition:
PH_HEPEVT_Interface.h:23
Generated on Wed Apr 3 2019 08:43:52 for FairRoot/PandaRoot by
1.8.5