ATLAS Offline Software
Public Member Functions | Protected Attributes | Friends | List of all members
GenParticle_p5 Class Reference

#include <GenParticle_p5.h>

Collaboration diagram for GenParticle_p5:

Public Member Functions

 GenParticle_p5 ()
 Default constructor: More...
 
 GenParticle_p5 (const double px, const double py, const double pz, const double mass, const int pdgId, const int status, const std::size_t flowSize, const double thetaPolarization, const double phiPolarization, const int prodVtx, const int endVtx, const int barcode, const double generated_mass, const short recoMethod)
 Constructor with (almost all) parameters (can't construct right away the flow vector) More...
 

Protected Attributes

float m_px
 x-component of the 4-momentum of this particle More...
 
float m_py
 y-component of the 4-momentum of this particle More...
 
float m_pz
 z-component of the 4-momentum of this particle More...
 
float m_m
 m-component of the 4-momentum of this particle More...
 
int m_pdgId
 identity of this particle, according to the Particle Data Group notation More...
 
int m_status
 Status of this particle, as defined for HEPEVT. More...
 
std::vector< std::pair< int, int > > m_flow
 Flow for this particle. More...
 
float m_thetaPolarization
 polarization More...
 
float m_phiPolarization
 phi polarization More...
 
int m_prodVtx
 Barcode of the production vertex of this particle. More...
 
int m_endVtx
 Barcode of the decay vertex of this particle. More...
 
int m_barcode
 barcode of this particles (uniquely identifying this particle within a given GenEvent) More...
 
float m_generated_mass
 mass of this particle when it was generated More...
 
short m_recoMethod
 switch to know which method to chose to better recover the original HepLorentzVector. More...
 

Friends

class McEventCollectionCnv_p5
 

Detailed Description

Definition at line 21 of file GenParticle_p5.h.

Constructor & Destructor Documentation

◆ GenParticle_p5() [1/2]

GenParticle_p5::GenParticle_p5 ( )
inline

Default constructor:

Inline methods:

Definition at line 136 of file GenParticle_p5.h.

136  :
137  m_px ( 0 ),
138  m_py ( 0 ),
139  m_pz ( 0 ),
140  m_m ( 0 ),
141  m_pdgId ( 0 ),
142  m_status ( 0 ),
143  m_flow ( 0 ),
144  m_thetaPolarization ( 0. ),
145  m_phiPolarization ( 0. ),
146  m_prodVtx ( 0 ),
147  m_endVtx ( 0 ),
148  m_barcode ( 0 ),
149  m_generated_mass( 0 ),
150  m_recoMethod ( 0 )
151 {}

◆ GenParticle_p5() [2/2]

GenParticle_p5::GenParticle_p5 ( const double  px,
const double  py,
const double  pz,
const double  mass,
const int  pdgId,
const int  status,
const std::size_t  flowSize,
const double  thetaPolarization,
const double  phiPolarization,
const int  prodVtx,
const int  endVtx,
const int  barcode,
const double  generated_mass,
const short  recoMethod 
)
inline

Constructor with (almost all) parameters (can't construct right away the flow vector)

Definition at line 153 of file GenParticle_p5.h.

166  :
167  m_px ( px ),
168  m_py ( py ),
169  m_pz ( pz ),
170  m_m ( m ),
171  m_pdgId ( pdgId ),
172  m_status ( status ),
173  m_flow ( flowSize ),
174  m_thetaPolarization ( thetaPolarization ),
175  m_phiPolarization ( phiPolarization ),
176  m_prodVtx ( prodVtx ),
177  m_endVtx ( endVtx ),
178  m_barcode ( barcode ),
179  m_generated_mass( static_cast<float>(generated_mass) ),
180  m_recoMethod ( recoMethod )
181 {}

Friends And Related Function Documentation

◆ McEventCollectionCnv_p5

friend class McEventCollectionCnv_p5
friend

Definition at line 24 of file GenParticle_p5.h.

Member Data Documentation

◆ m_barcode

int GenParticle_p5::m_barcode
protected

barcode of this particles (uniquely identifying this particle within a given GenEvent)

Definition at line 115 of file GenParticle_p5.h.

◆ m_endVtx

int GenParticle_p5::m_endVtx
protected

Barcode of the decay vertex of this particle.

0 means no production vertex

Definition at line 110 of file GenParticle_p5.h.

◆ m_flow

std::vector< std::pair<int, int> > GenParticle_p5::m_flow
protected

Flow for this particle.

Definition at line 88 of file GenParticle_p5.h.

◆ m_generated_mass

float GenParticle_p5::m_generated_mass
protected

mass of this particle when it was generated

Definition at line 119 of file GenParticle_p5.h.

◆ m_m

float GenParticle_p5::m_m
protected

m-component of the 4-momentum of this particle

Definition at line 76 of file GenParticle_p5.h.

◆ m_pdgId

int GenParticle_p5::m_pdgId
protected

identity of this particle, according to the Particle Data Group notation

Definition at line 80 of file GenParticle_p5.h.

◆ m_phiPolarization

float GenParticle_p5::m_phiPolarization
protected

phi polarization

Definition at line 100 of file GenParticle_p5.h.

◆ m_prodVtx

int GenParticle_p5::m_prodVtx
protected

Barcode of the production vertex of this particle.

0 means no production vertex

Definition at line 105 of file GenParticle_p5.h.

◆ m_px

float GenParticle_p5::m_px
protected

x-component of the 4-momentum of this particle

Definition at line 64 of file GenParticle_p5.h.

◆ m_py

float GenParticle_p5::m_py
protected

y-component of the 4-momentum of this particle

Definition at line 68 of file GenParticle_p5.h.

◆ m_pz

float GenParticle_p5::m_pz
protected

z-component of the 4-momentum of this particle

Definition at line 72 of file GenParticle_p5.h.

◆ m_recoMethod

short GenParticle_p5::m_recoMethod
protected

switch to know which method to chose to better recover the original HepLorentzVector.

It is based on isTimelike(), isSpacelike(), isLightlike() and sign(ene) If m_recoMethod == 0: use HepLorentzVector::setVectM( 3vect(px,py,pz), m ) 1: use +(p**2 + m**2) to get the energy (where m**2 is signed) 2: use -(p**2 + m**2) to get the energy (where m**2 is signed) (ex: gluon with negative energy)

Definition at line 129 of file GenParticle_p5.h.

◆ m_status

int GenParticle_p5::m_status
protected

Status of this particle, as defined for HEPEVT.

Definition at line 84 of file GenParticle_p5.h.

◆ m_thetaPolarization

float GenParticle_p5::m_thetaPolarization
protected

polarization

theta polarization

Definition at line 96 of file GenParticle_p5.h.


The documentation for this class was generated from the following file:
GenParticle_p5::m_pz
float m_pz
z-component of the 4-momentum of this particle
Definition: GenParticle_p5.h:72
test_pyathena.px
px
Definition: test_pyathena.py:18
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
GenParticle_p5::m_barcode
int m_barcode
barcode of this particles (uniquely identifying this particle within a given GenEvent)
Definition: GenParticle_p5.h:115
GenParticle_p5::m_status
int m_status
Status of this particle, as defined for HEPEVT.
Definition: GenParticle_p5.h:84
GenParticle_p5::m_endVtx
int m_endVtx
Barcode of the decay vertex of this particle.
Definition: GenParticle_p5.h:110
GenParticle_p5::m_thetaPolarization
float m_thetaPolarization
polarization
Definition: GenParticle_p5.h:96
HepMC::barcode
int barcode(const T *p)
Definition: Barcode.h:16
GenParticle_p5::m_pdgId
int m_pdgId
identity of this particle, according to the Particle Data Group notation
Definition: GenParticle_p5.h:80
Amg::pz
@ pz
Definition: GeoPrimitives.h:40
GenParticle_p5::m_generated_mass
float m_generated_mass
mass of this particle when it was generated
Definition: GenParticle_p5.h:119
GenParticle_p5::m_recoMethod
short m_recoMethod
switch to know which method to chose to better recover the original HepLorentzVector.
Definition: GenParticle_p5.h:129
Amg::py
@ py
Definition: GeoPrimitives.h:39
GenParticle_p5::m_flow
std::vector< std::pair< int, int > > m_flow
Flow for this particle.
Definition: GenParticle_p5.h:88
GenParticle_p5::m_prodVtx
int m_prodVtx
Barcode of the production vertex of this particle.
Definition: GenParticle_p5.h:105
GenParticle_p5::m_phiPolarization
float m_phiPolarization
phi polarization
Definition: GenParticle_p5.h:100
merge.status
status
Definition: merge.py:17
GenParticle_p5::m_px
float m_px
x-component of the 4-momentum of this particle
Definition: GenParticle_p5.h:64
GenParticle_p5::m_py
float m_py
y-component of the 4-momentum of this particle
Definition: GenParticle_p5.h:68
GenParticle_p5::m_m
float m_m
m-component of the 4-momentum of this particle
Definition: GenParticle_p5.h:76