ATLAS Offline Software
Public Member Functions | List of all members
Gen_HEPEVT Class Reference

C++ access to the Fortran HEPEVT common block. More...

#include <Gen_HEPEVT.h>

Collaboration diagram for Gen_HEPEVT:

Public Member Functions

 Gen_HEPEVT ()
 

"Get" methods

int m_NEVHEP
 
int m_NHEP
 
std::map< int, int > m_ISTHEP
 
std::map< int, int > m_IDHEP
 
std::map< int, std::pair< int, int > > m_JMOHEP
 
std::map< int, std::pair< int, int > > m_JDAHEP
 
std::map< int, double > m_PHEP0
 
std::map< int, double > m_PHEP1
 
std::map< int, double > m_PHEP2
 
std::map< int, double > m_PHEP3
 
std::map< int, double > m_PHEP4
 
std::map< int, double > m_VHEP0
 
std::map< int, double > m_VHEP1
 
std::map< int, double > m_VHEP2
 
std::map< int, double > m_VHEP3
 
int nevhep () const
 
int nhep () const
 
int isthep (int ihep)
 
int idhep (int ihep)
 
int first_parent (int ihep)
 
int last_parent (int ihep)
 
int first_child (int ihep)
 
int last_child (int ihep)
 
double px (int ihep)
 
double py (int ihep)
 
double pz (int ihep)
 
double e (int ihep)
 
double m (int ihep)
 
double x (int ihep)
 
double y (int ihep)
 
double z (int ihep)
 
double t (int ihep)
 
void nevhep (int value)
 
void nhep (int value)
 
void isthep (int &ihep, int value)
 
void idhep (int &ihep, int value)
 
void mothers (int &ihep, int value1, int value2)
 
void daughters (int &ihep, int value1, int value2)
 
void momentum (int &ihep, double px, double py, double pz, double e, double m)
 
void position (int &ihep, double x, double y, double z, double t)
 

Detailed Description

C++ access to the Fortran HEPEVT common block.

Definition at line 37 of file Gen_HEPEVT.h.

Constructor & Destructor Documentation

◆ Gen_HEPEVT()

Gen_HEPEVT::Gen_HEPEVT ( )
inline

Definition at line 97 of file Gen_HEPEVT.h.

98  : m_NEVHEP(0), m_NHEP(0)
99 { }

Member Function Documentation

◆ daughters()

void Gen_HEPEVT::daughters ( int &  ihep,
int  value1,
int  value2 
)
inline

Definition at line 172 of file Gen_HEPEVT.h.

172  {
173  m_JDAHEP[ihep] = std::make_pair(value1, value2);
174 }

◆ e()

double Gen_HEPEVT::e ( int  ihep)
inline

Definition at line 136 of file Gen_HEPEVT.h.

136 { return m_PHEP3[ihep]; }

◆ first_child()

int Gen_HEPEVT::first_child ( int  ihep)
inline

Definition at line 121 of file Gen_HEPEVT.h.

121 { return m_JDAHEP[ihep].first; }

◆ first_parent()

int Gen_HEPEVT::first_parent ( int  ihep)
inline

Definition at line 115 of file Gen_HEPEVT.h.

115 { return m_JMOHEP[ihep].first; }

◆ idhep() [1/2]

void Gen_HEPEVT::idhep ( int &  ihep,
int  value 
)
inline

Definition at line 164 of file Gen_HEPEVT.h.

164 { m_IDHEP[ihep] = value; }

◆ idhep() [2/2]

int Gen_HEPEVT::idhep ( int  ihep)
inline

Definition at line 112 of file Gen_HEPEVT.h.

112 { return m_IDHEP[ihep]; }

◆ isthep() [1/2]

void Gen_HEPEVT::isthep ( int &  ihep,
int  value 
)
inline

Definition at line 161 of file Gen_HEPEVT.h.

161 { m_ISTHEP[ihep] = value; }

◆ isthep() [2/2]

int Gen_HEPEVT::isthep ( int  ihep)
inline

Definition at line 109 of file Gen_HEPEVT.h.

109 { return m_ISTHEP[ihep]; }

◆ last_child()

int Gen_HEPEVT::last_child ( int  ihep)
inline

Definition at line 124 of file Gen_HEPEVT.h.

124 { return m_JDAHEP[ihep].second; }

◆ last_parent()

int Gen_HEPEVT::last_parent ( int  ihep)
inline

Definition at line 118 of file Gen_HEPEVT.h.

118 { return m_JMOHEP[ihep].second; }

◆ m()

double Gen_HEPEVT::m ( int  ihep)
inline

Definition at line 139 of file Gen_HEPEVT.h.

139 { return m_PHEP4[ihep]; }

◆ momentum()

void Gen_HEPEVT::momentum ( int &  ihep,
double  px,
double  py,
double  pz,
double  e,
double  m 
)
inline

Definition at line 177 of file Gen_HEPEVT.h.

177  {
178  m_PHEP0[ihep] = px;
179  m_PHEP1[ihep] = py;
180  m_PHEP2[ihep] = pz;
181  m_PHEP3[ihep] = e;
182  m_PHEP4[ihep] = m;
183 }

◆ mothers()

void Gen_HEPEVT::mothers ( int &  ihep,
int  value1,
int  value2 
)
inline

Definition at line 167 of file Gen_HEPEVT.h.

167  {
168  m_JMOHEP[ihep] = std::make_pair(value1, value2);
169 }

◆ nevhep() [1/2]

int Gen_HEPEVT::nevhep ( ) const
inline

Definition at line 103 of file Gen_HEPEVT.h.

103 { return m_NEVHEP; }

◆ nevhep() [2/2]

void Gen_HEPEVT::nevhep ( int  value)
inline

Definition at line 155 of file Gen_HEPEVT.h.

155 { m_NEVHEP = value; }

◆ nhep() [1/2]

int Gen_HEPEVT::nhep ( ) const
inline

Definition at line 106 of file Gen_HEPEVT.h.

106 { return m_NHEP; }

◆ nhep() [2/2]

void Gen_HEPEVT::nhep ( int  value)
inline

Definition at line 158 of file Gen_HEPEVT.h.

158 { m_NHEP = value; }

◆ position()

void Gen_HEPEVT::position ( int &  ihep,
double  x,
double  y,
double  z,
double  t 
)
inline

Definition at line 186 of file Gen_HEPEVT.h.

186  {
187  m_VHEP0[ihep] = x;
188  m_VHEP1[ihep] = y;
189  m_VHEP2[ihep] = z;
190  m_VHEP3[ihep] = t;
191 }

◆ px()

double Gen_HEPEVT::px ( int  ihep)
inline

Definition at line 127 of file Gen_HEPEVT.h.

127 { return m_PHEP0[ihep]; }

◆ py()

double Gen_HEPEVT::py ( int  ihep)
inline

Definition at line 130 of file Gen_HEPEVT.h.

130 { return m_PHEP1[ihep]; }

◆ pz()

double Gen_HEPEVT::pz ( int  ihep)
inline

Definition at line 133 of file Gen_HEPEVT.h.

133 { return m_PHEP2[ihep]; }

◆ t()

double Gen_HEPEVT::t ( int  ihep)
inline

Definition at line 151 of file Gen_HEPEVT.h.

151 { return m_VHEP3[ihep]; }

◆ x()

double Gen_HEPEVT::x ( int  ihep)
inline

Definition at line 142 of file Gen_HEPEVT.h.

142 { return m_VHEP0[ihep]; }

◆ y()

double Gen_HEPEVT::y ( int  ihep)
inline

Definition at line 145 of file Gen_HEPEVT.h.

145 { return m_VHEP1[ihep]; }

◆ z()

double Gen_HEPEVT::z ( int  ihep)
inline

Definition at line 148 of file Gen_HEPEVT.h.

148 { return m_VHEP2[ihep]; }

Member Data Documentation

◆ m_IDHEP

std::map<int, int> Gen_HEPEVT::m_IDHEP
private

Definition at line 80 of file Gen_HEPEVT.h.

◆ m_ISTHEP

std::map<int, int> Gen_HEPEVT::m_ISTHEP
private

Definition at line 79 of file Gen_HEPEVT.h.

◆ m_JDAHEP

std::map<int, std::pair<int, int> > Gen_HEPEVT::m_JDAHEP
private

Definition at line 82 of file Gen_HEPEVT.h.

◆ m_JMOHEP

std::map<int, std::pair<int, int> > Gen_HEPEVT::m_JMOHEP
private

Definition at line 81 of file Gen_HEPEVT.h.

◆ m_NEVHEP

int Gen_HEPEVT::m_NEVHEP
private

Definition at line 77 of file Gen_HEPEVT.h.

◆ m_NHEP

int Gen_HEPEVT::m_NHEP
private

Definition at line 78 of file Gen_HEPEVT.h.

◆ m_PHEP0

std::map<int, double> Gen_HEPEVT::m_PHEP0
private

Definition at line 83 of file Gen_HEPEVT.h.

◆ m_PHEP1

std::map<int, double> Gen_HEPEVT::m_PHEP1
private

Definition at line 84 of file Gen_HEPEVT.h.

◆ m_PHEP2

std::map<int, double> Gen_HEPEVT::m_PHEP2
private

Definition at line 85 of file Gen_HEPEVT.h.

◆ m_PHEP3

std::map<int, double> Gen_HEPEVT::m_PHEP3
private

Definition at line 86 of file Gen_HEPEVT.h.

◆ m_PHEP4

std::map<int, double> Gen_HEPEVT::m_PHEP4
private

Definition at line 87 of file Gen_HEPEVT.h.

◆ m_VHEP0

std::map<int, double> Gen_HEPEVT::m_VHEP0
private

Definition at line 88 of file Gen_HEPEVT.h.

◆ m_VHEP1

std::map<int, double> Gen_HEPEVT::m_VHEP1
private

Definition at line 89 of file Gen_HEPEVT.h.

◆ m_VHEP2

std::map<int, double> Gen_HEPEVT::m_VHEP2
private

Definition at line 90 of file Gen_HEPEVT.h.

◆ m_VHEP3

std::map<int, double> Gen_HEPEVT::m_VHEP3
private

Definition at line 91 of file Gen_HEPEVT.h.


The documentation for this class was generated from the following file:
Gen_HEPEVT::m
double m(int ihep)
Definition: Gen_HEPEVT.h:139
Gen_HEPEVT::z
double z(int ihep)
Definition: Gen_HEPEVT.h:148
Gen_HEPEVT::m_IDHEP
std::map< int, int > m_IDHEP
Definition: Gen_HEPEVT.h:80
Gen_HEPEVT::y
double y(int ihep)
Definition: Gen_HEPEVT.h:145
Gen_HEPEVT::m_VHEP1
std::map< int, double > m_VHEP1
Definition: Gen_HEPEVT.h:89
Gen_HEPEVT::m_PHEP2
std::map< int, double > m_PHEP2
Definition: Gen_HEPEVT.h:85
Gen_HEPEVT::t
double t(int ihep)
Definition: Gen_HEPEVT.h:151
athena.value
value
Definition: athena.py:124
Gen_HEPEVT::m_NEVHEP
int m_NEVHEP
Definition: Gen_HEPEVT.h:77
Gen_HEPEVT::m_VHEP0
std::map< int, double > m_VHEP0
Definition: Gen_HEPEVT.h:88
Gen_HEPEVT::py
double py(int ihep)
Definition: Gen_HEPEVT.h:130
Gen_HEPEVT::m_VHEP2
std::map< int, double > m_VHEP2
Definition: Gen_HEPEVT.h:90
Gen_HEPEVT::m_PHEP0
std::map< int, double > m_PHEP0
Definition: Gen_HEPEVT.h:83
Gen_HEPEVT::m_JDAHEP
std::map< int, std::pair< int, int > > m_JDAHEP
Definition: Gen_HEPEVT.h:82
Gen_HEPEVT::px
double px(int ihep)
Definition: Gen_HEPEVT.h:127
Gen_HEPEVT::m_VHEP3
std::map< int, double > m_VHEP3
Definition: Gen_HEPEVT.h:91
Gen_HEPEVT::m_PHEP1
std::map< int, double > m_PHEP1
Definition: Gen_HEPEVT.h:84
Gen_HEPEVT::m_NHEP
int m_NHEP
Definition: Gen_HEPEVT.h:78
Gen_HEPEVT::m_ISTHEP
std::map< int, int > m_ISTHEP
Definition: Gen_HEPEVT.h:79
Gen_HEPEVT::m_PHEP3
std::map< int, double > m_PHEP3
Definition: Gen_HEPEVT.h:86
Gen_HEPEVT::e
double e(int ihep)
Definition: Gen_HEPEVT.h:136
Gen_HEPEVT::pz
double pz(int ihep)
Definition: Gen_HEPEVT.h:133
Gen_HEPEVT::m_PHEP4
std::map< int, double > m_PHEP4
Definition: Gen_HEPEVT.h:87
Gen_HEPEVT::m_JMOHEP
std::map< int, std::pair< int, int > > m_JMOHEP
Definition: Gen_HEPEVT.h:81
Gen_HEPEVT::x
double x(int ihep)
Definition: Gen_HEPEVT.h:142