ATLAS Offline Software
Loading...
Searching...
No Matches
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.

  • NEVHEP event number (or some special meaning (see documentation for details)
  • NHEP actual number of entries in current event.
  • ISTHEP[IHEP] status code for IHEP'th entry - see documentation for details
  • IDHEP [IHEP] IHEP'th particle identifier according to PDG.
  • JMOHEP[IHEP][0] - pointer to position of 1st mother
  • JMOHEP[IHEP][1] - pointer to position of 2nd mother
  • JDAHEP[IHEP][0] - pointer to position of 1st daughter
  • JDAHEP[IHEP][1] - pointer to position of 2nd daughter
  • PHEP [IHEP][0] - X momentum [Gev/c]
  • PHEP [IHEP][1] - Y momentum [Gev/c]
  • PHEP [IHEP][2] - Z momentum [Gev/c]
  • PHEP [IHEP][3] - Energy [Gev]
  • PHEP [IHEP][4] - Mass[Gev/c^2]
  • VHEP [IHEP][0] - X vertex [mm]
  • VHEP [IHEP][1] - Y vertex [mm]
  • VHEP [IHEP][2] - Z vertex [mm]
  • VHEP [IHEP][3] - production time [mm/c]

Definition at line 37 of file Gen_HEPEVT.h.

Constructor & Destructor Documentation

◆ Gen_HEPEVT()

Gen_HEPEVT::Gen_HEPEVT ( void )
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}
std::map< int, std::pair< int, int > > m_JDAHEP
Definition Gen_HEPEVT.h:82

◆ e()

double Gen_HEPEVT::e ( int ihep)
inline

Definition at line 136 of file Gen_HEPEVT.h.

136{ return m_PHEP3[ihep]; }
std::map< int, double > m_PHEP3
Definition Gen_HEPEVT.h:86

◆ 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; }
std::map< int, std::pair< int, int > > m_JMOHEP
Definition Gen_HEPEVT.h:81

◆ 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; }
std::map< int, int > m_IDHEP
Definition Gen_HEPEVT.h:80

◆ 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; }
std::map< int, int > m_ISTHEP
Definition Gen_HEPEVT.h:79

◆ 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]; }
std::map< int, double > m_PHEP4
Definition Gen_HEPEVT.h:87

◆ 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}
double px(int ihep)
Definition Gen_HEPEVT.h:127
double m(int ihep)
Definition Gen_HEPEVT.h:139
double pz(int ihep)
Definition Gen_HEPEVT.h:133
double py(int ihep)
Definition Gen_HEPEVT.h:130
double e(int ihep)
Definition Gen_HEPEVT.h:136
std::map< int, double > m_PHEP2
Definition Gen_HEPEVT.h:85
std::map< int, double > m_PHEP1
Definition Gen_HEPEVT.h:84
std::map< int, double > m_PHEP0
Definition Gen_HEPEVT.h:83

◆ 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 ( void ) 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 ( void ) 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}
std::map< int, double > m_VHEP3
Definition Gen_HEPEVT.h:91
double y(int ihep)
Definition Gen_HEPEVT.h:145
double t(int ihep)
Definition Gen_HEPEVT.h:151
std::map< int, double > m_VHEP0
Definition Gen_HEPEVT.h:88
double x(int ihep)
Definition Gen_HEPEVT.h:142
std::map< int, double > m_VHEP1
Definition Gen_HEPEVT.h:89
std::map< int, double > m_VHEP2
Definition Gen_HEPEVT.h:90
double z(int ihep)
Definition Gen_HEPEVT.h:148

◆ 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: