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

#include <GenParticle_p4.h>

Collaboration diagram for GenParticle_p4:

Public Member Functions

 GenParticle_p4 ()
 Default constructor: More...
 
 GenParticle_p4 (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 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...
 
short m_recoMethod
 switch to know which method to chose to better recover the original HepLorentzVector. More...
 

Friends

class McEventCollectionCnv_p4
 

Detailed Description

Definition at line 21 of file GenParticle_p4.h.

Constructor & Destructor Documentation

◆ GenParticle_p4() [1/2]

GenParticle_p4::GenParticle_p4 ( )
inline

Default constructor:

Inline methods:

Definition at line 131 of file GenParticle_p4.h.

131  :
132  m_px ( 0 ),
133  m_py ( 0 ),
134  m_pz ( 0 ),
135  m_m ( 0 ),
136  m_pdgId ( 0 ),
137  m_status ( 0 ),
138  m_flow ( 0 ),
139  m_thetaPolarization ( 0. ),
140  m_phiPolarization ( 0. ),
141  m_prodVtx ( 0 ),
142  m_endVtx ( 0 ),
143  m_barcode ( 0 ),
144  m_recoMethod ( 0 )
145 {}

◆ GenParticle_p4() [2/2]

GenParticle_p4::GenParticle_p4 ( 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 short  recoMethod 
)
inline

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

Definition at line 147 of file GenParticle_p4.h.

159  :
160  m_px ( px ),
161  m_py ( py ),
162  m_pz ( pz ),
163  m_m ( m ),
164  m_pdgId ( pdgId ),
165  m_status ( status ),
166  m_flow ( flowSize ),
167  m_thetaPolarization ( thetaPolarization ),
168  m_phiPolarization ( phiPolarization ),
169  m_prodVtx ( prodVtx ),
170  m_endVtx ( endVtx ),
171  m_barcode ( barcode ),
172  m_recoMethod ( recoMethod )
173 {}

Friends And Related Function Documentation

◆ McEventCollectionCnv_p4

friend class McEventCollectionCnv_p4
friend

Definition at line 24 of file GenParticle_p4.h.

Member Data Documentation

◆ m_barcode

int GenParticle_p4::m_barcode
protected

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

Definition at line 114 of file GenParticle_p4.h.

◆ m_endVtx

int GenParticle_p4::m_endVtx
protected

Barcode of the decay vertex of this particle.

0 means no production vertex

Definition at line 109 of file GenParticle_p4.h.

◆ m_flow

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

Flow for this particle.

Definition at line 87 of file GenParticle_p4.h.

◆ m_m

float GenParticle_p4::m_m
protected

m-component of the 4-momentum of this particle

Definition at line 75 of file GenParticle_p4.h.

◆ m_pdgId

int GenParticle_p4::m_pdgId
protected

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

Definition at line 79 of file GenParticle_p4.h.

◆ m_phiPolarization

float GenParticle_p4::m_phiPolarization
protected

phi polarization

Definition at line 99 of file GenParticle_p4.h.

◆ m_prodVtx

int GenParticle_p4::m_prodVtx
protected

Barcode of the production vertex of this particle.

0 means no production vertex

Definition at line 104 of file GenParticle_p4.h.

◆ m_px

float GenParticle_p4::m_px
protected

x-component of the 4-momentum of this particle

Definition at line 63 of file GenParticle_p4.h.

◆ m_py

float GenParticle_p4::m_py
protected

y-component of the 4-momentum of this particle

Definition at line 67 of file GenParticle_p4.h.

◆ m_pz

float GenParticle_p4::m_pz
protected

z-component of the 4-momentum of this particle

Definition at line 71 of file GenParticle_p4.h.

◆ m_recoMethod

short GenParticle_p4::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 124 of file GenParticle_p4.h.

◆ m_status

int GenParticle_p4::m_status
protected

Status of this particle, as defined for HEPEVT.

Definition at line 83 of file GenParticle_p4.h.

◆ m_thetaPolarization

float GenParticle_p4::m_thetaPolarization
protected

polarization

theta polarization

Definition at line 95 of file GenParticle_p4.h.


The documentation for this class was generated from the following file:
GenParticle_p4::m_status
int m_status
Status of this particle, as defined for HEPEVT.
Definition: GenParticle_p4.h:83
GenParticle_p4::m_m
float m_m
m-component of the 4-momentum of this particle
Definition: GenParticle_p4.h:75
GenParticle_p4::m_recoMethod
short m_recoMethod
switch to know which method to chose to better recover the original HepLorentzVector.
Definition: GenParticle_p4.h:124
test_pyathena.px
px
Definition: test_pyathena.py:18
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
GenParticle_p4::m_px
float m_px
x-component of the 4-momentum of this particle
Definition: GenParticle_p4.h:63
GenParticle_p4::m_py
float m_py
y-component of the 4-momentum of this particle
Definition: GenParticle_p4.h:67
GenParticle_p4::m_flow
std::vector< std::pair< int, int > > m_flow
Flow for this particle.
Definition: GenParticle_p4.h:87
GenParticle_p4::m_endVtx
int m_endVtx
Barcode of the decay vertex of this particle.
Definition: GenParticle_p4.h:109
HepMC::barcode
int barcode(const T *p)
Definition: Barcode.h:16
GenParticle_p4::m_barcode
int m_barcode
barcode of this particles (uniquely identifying this particle within a given GenEvent)
Definition: GenParticle_p4.h:114
Amg::pz
@ pz
Definition: GeoPrimitives.h:40
Amg::py
@ py
Definition: GeoPrimitives.h:39
GenParticle_p4::m_thetaPolarization
float m_thetaPolarization
polarization
Definition: GenParticle_p4.h:95
GenParticle_p4::m_pdgId
int m_pdgId
identity of this particle, according to the Particle Data Group notation
Definition: GenParticle_p4.h:79
GenParticle_p4::m_pz
float m_pz
z-component of the 4-momentum of this particle
Definition: GenParticle_p4.h:71
GenParticle_p4::m_phiPolarization
float m_phiPolarization
phi polarization
Definition: GenParticle_p4.h:99
merge.status
status
Definition: merge.py:17
GenParticle_p4::m_prodVtx
int m_prodVtx
Barcode of the production vertex of this particle.
Definition: GenParticle_p4.h:104