CbmRoot
UParticle Class Reference

#include <UParticle.h>

Inheritance diagram for UParticle:
[legend]
Collaboration diagram for UParticle:
[legend]

Public Member Functions

 UParticle ()
 
 UParticle (Int_t index, Int_t pdg, Int_t status, Int_t parent, Int_t parentDecay, Int_t mate, Int_t decay, Int_t child[2], Double_t px, Double_t py, Double_t pz, Double_t e, Double_t x, Double_t y, Double_t z, Double_t t, Double_t weight)
 
 UParticle (Int_t index, Int_t pdg, Int_t status, Int_t parent, Int_t parentDecay, Int_t mate, Int_t decay, Int_t child[2], TLorentzVector mom, TLorentzVector pos, Double_t weight)
 
 UParticle (const UParticle &right)
 
 UParticle (const TParticle &right)
 
virtual ~UParticle ()
 
const UParticleoperator= (const UParticle &right)
 
const UParticleoperator= (const TParticle &right)
 
Bool_t operator== (const UParticle &right) const
 
void Print (Option_t *="") const
 
Int_t GetIndex () const
 
Int_t GetPdg () const
 
Int_t GetStatus () const
 
Int_t GetParent () const
 
Int_t GetParentDecay () const
 
Int_t GetMate () const
 
Int_t GetDecay () const
 
Int_t GetFirstChild () const
 
Int_t GetLastChild () const
 
Double_t Px () const
 
Double_t Py () const
 
Double_t Pz () const
 
Double_t E () const
 
TLorentzVector GetMomentum () const
 
void Momentum (TLorentzVector &mom) const
 
Double_t X () const
 
Double_t Y () const
 
Double_t Z () const
 
Double_t T () const
 
TLorentzVector GetPosition () const
 
void Position (TLorentzVector &pos) const
 
Double_t GetWeight () const
 
void SetIndex (Int_t index)
 
void SetPdg (Int_t pdg)
 
void SetStatus (Int_t status)
 
void SetParent (Int_t parent)
 
void SetParentDecay (Int_t parentDecay)
 
void SetMate (Int_t mate)
 
void SetDecay (Int_t decay)
 
void SetChild (Int_t child[2])
 
void SetFirstChild (Int_t child)
 
void SetLastChild (Int_t child)
 
void SetPx (Double_t px)
 
void SetPy (Double_t py)
 
void SetPz (Double_t pz)
 
void SetE (Double_t e)
 
void SetMomentum (Double_t px, Double_t py, Double_t pz, Double_t e)
 
void SetMomentum (TLorentzVector mom)
 
void SetX (Double_t x)
 
void SetY (Double_t y)
 
void SetZ (Double_t z)
 
void SetT (Double_t t)
 
void SetPosition (Double_t x, Double_t y, Double_t z, Double_t t)
 
void SetPosition (TLorentzVector pos)
 
void SetWeight (Double_t weight)
 
 ClassDef (UParticle, 1)
 

Private Attributes

Int_t fIndex
 
Int_t fPdg
 
Int_t fStatus
 
Int_t fParent
 
Int_t fParentDecay
 
Int_t fMate
 
Int_t fDecay
 
Int_t fChild [2]
 
Double32_t fPx
 
Double32_t fPy
 
Double32_t fPz
 
Double32_t fE
 
Double32_t fX
 
Double32_t fY
 
Double32_t fZ
 
Double32_t fT
 
Double32_t fWeight
 

Detailed Description

Definition at line 10 of file UParticle.h.

Constructor & Destructor Documentation

◆ UParticle() [1/5]

UParticle::UParticle ( )

Definition at line 18 of file UParticle.cxx.

References fChild.

◆ UParticle() [2/5]

UParticle::UParticle ( Int_t  index,
Int_t  pdg,
Int_t  status,
Int_t  parent,
Int_t  parentDecay,
Int_t  mate,
Int_t  decay,
Int_t  child[2],
Double_t  px,
Double_t  py,
Double_t  pz,
Double_t  e,
Double_t  x,
Double_t  y,
Double_t  z,
Double_t  t,
Double_t  weight 
)

Definition at line 44 of file UParticle.cxx.

References fChild.

◆ UParticle() [3/5]

UParticle::UParticle ( Int_t  index,
Int_t  pdg,
Int_t  status,
Int_t  parent,
Int_t  parentDecay,
Int_t  mate,
Int_t  decay,
Int_t  child[2],
TLorentzVector  mom,
TLorentzVector  pos,
Double_t  weight 
)

Definition at line 85 of file UParticle.cxx.

References fChild.

◆ UParticle() [4/5]

UParticle::UParticle ( const UParticle right)

Definition at line 120 of file UParticle.cxx.

◆ UParticle() [5/5]

UParticle::UParticle ( const TParticle &  right)

Definition at line 142 of file UParticle.cxx.

References fChild.

◆ ~UParticle()

UParticle::~UParticle ( )
virtual

Definition at line 167 of file UParticle.cxx.

Member Function Documentation

◆ ClassDef()

UParticle::ClassDef ( UParticle  ,
 
)

◆ E()

Double_t UParticle::E ( ) const
inline

◆ GetDecay()

Int_t UParticle::GetDecay ( ) const
inline

Definition at line 74 of file UParticle.h.

References fDecay.

Referenced by NicaGeneratorReadUnigen::ReadEvent().

◆ GetFirstChild()

Int_t UParticle::GetFirstChild ( ) const
inline

Definition at line 75 of file UParticle.h.

References fChild.

Referenced by NicaGeneratorReadUnigen::ReadEvent().

◆ GetIndex()

Int_t UParticle::GetIndex ( ) const
inline

Definition at line 68 of file UParticle.h.

References fIndex.

Referenced by NicaGeneratorReadUnigen::ReadEvent().

◆ GetLastChild()

Int_t UParticle::GetLastChild ( ) const
inline

Definition at line 76 of file UParticle.h.

References fChild.

Referenced by NicaGeneratorReadUnigen::ReadEvent().

◆ GetMate()

Int_t UParticle::GetMate ( ) const
inline

Definition at line 73 of file UParticle.h.

References fMate.

Referenced by NicaGeneratorReadUnigen::ReadEvent(), and NicaUnigenEvent::Update().

◆ GetMomentum()

TLorentzVector UParticle::GetMomentum ( ) const
inline

Definition at line 81 of file UParticle.h.

References fE, fPx, fPy, and fPz.

Referenced by NicaUnigenEventInterface::Boost(), and NicaUnigenSource::Boost().

◆ GetParent()

Int_t UParticle::GetParent ( ) const
inline

Definition at line 71 of file UParticle.h.

References fParent.

Referenced by NicaGeneratorReadUnigen::ReadEvent().

◆ GetParentDecay()

Int_t UParticle::GetParentDecay ( ) const
inline

Definition at line 72 of file UParticle.h.

References fParentDecay.

Referenced by NicaGeneratorReadUnigen::ReadEvent().

◆ GetPdg()

Int_t UParticle::GetPdg ( ) const
inline

◆ GetPosition()

TLorentzVector UParticle::GetPosition ( ) const
inline

Definition at line 91 of file UParticle.h.

References fT, fX, fY, and fZ.

Referenced by NicaUnigenEventInterface::Boost(), and NicaUnigenSource::Boost().

◆ GetStatus()

Int_t UParticle::GetStatus ( ) const
inline

Definition at line 70 of file UParticle.h.

References fStatus.

Referenced by NicaGeneratorReadUnigen::ReadEvent(), and NicaUnigenEvent::Update().

◆ GetWeight()

Double_t UParticle::GetWeight ( ) const
inline

Definition at line 97 of file UParticle.h.

References fWeight.

◆ Momentum()

void UParticle::Momentum ( TLorentzVector &  mom) const
inline

Definition at line 84 of file UParticle.h.

References fE, fPx, fPy, and fPz.

◆ operator=() [1/2]

const UParticle & UParticle::operator= ( const TParticle &  right)

Definition at line 201 of file UParticle.cxx.

References fChild, fDecay, fE, fIndex, fMate, fParent, fParentDecay, fPdg, fPx, fPy, fPz, fStatus, fT, fWeight, fX, fY, and fZ.

◆ operator=() [2/2]

const UParticle & UParticle::operator= ( const UParticle right)

Definition at line 174 of file UParticle.cxx.

References fChild, fDecay, fE, fIndex, fMate, fParent, fParentDecay, fPdg, fPx, fPy, fPz, fStatus, fT, fWeight, fX, fY, and fZ.

◆ operator==()

Bool_t UParticle::operator== ( const UParticle right) const

Definition at line 227 of file UParticle.cxx.

References fChild, fDecay, fE, fIndex, fMate, fParent, fParentDecay, fPdg, fPx, fPy, fPz, fStatus, fT, fWeight, fX, fY, and fZ.

◆ Position()

void UParticle::Position ( TLorentzVector &  pos) const
inline

Definition at line 94 of file UParticle.h.

References fT, fX, fY, fZ, and pos.

◆ Print()

void UParticle::Print ( Option_t *  = "") const

Definition at line 257 of file UParticle.cxx.

References fChild, fDecay, fE, fIndex, fMate, fParent, fParentDecay, fPdg, fPx, fPy, fPz, fStatus, fT, fWeight, fX, fY, and fZ.

Referenced by UEvent::Print().

◆ Px()

Double_t UParticle::Px ( ) const
inline

◆ Py()

Double_t UParticle::Py ( ) const
inline

◆ Pz()

Double_t UParticle::Pz ( ) const
inline

◆ SetChild()

void UParticle::SetChild ( Int_t  child[2])
inline

Definition at line 105 of file UParticle.h.

References fChild.

◆ SetDecay()

void UParticle::SetDecay ( Int_t  decay)
inline

Definition at line 104 of file UParticle.h.

References fDecay.

◆ SetE()

void UParticle::SetE ( Double_t  e)
inline

Definition at line 114 of file UParticle.h.

References fE.

◆ SetFirstChild()

void UParticle::SetFirstChild ( Int_t  child)
inline

Definition at line 109 of file UParticle.h.

References fChild.

◆ SetIndex()

void UParticle::SetIndex ( Int_t  index)
inline

Definition at line 98 of file UParticle.h.

References fIndex.

◆ SetLastChild()

void UParticle::SetLastChild ( Int_t  child)
inline

Definition at line 110 of file UParticle.h.

References fChild.

◆ SetMate()

void UParticle::SetMate ( Int_t  mate)
inline

Definition at line 103 of file UParticle.h.

References fMate.

◆ SetMomentum() [1/2]

void UParticle::SetMomentum ( Double_t  px,
Double_t  py,
Double_t  pz,
Double_t  e 
)
inline

Definition at line 115 of file UParticle.h.

References fE, fPx, fPy, and fPz.

Referenced by NicaUnigenEventInterface::Boost(), and NicaUnigenSource::Boost().

◆ SetMomentum() [2/2]

void UParticle::SetMomentum ( TLorentzVector  mom)
inline

Definition at line 121 of file UParticle.h.

References fE, fPx, fPy, and fPz.

◆ SetParent()

void UParticle::SetParent ( Int_t  parent)
inline

Definition at line 101 of file UParticle.h.

References fParent.

◆ SetParentDecay()

void UParticle::SetParentDecay ( Int_t  parentDecay)
inline

Definition at line 102 of file UParticle.h.

References fParentDecay.

◆ SetPdg()

void UParticle::SetPdg ( Int_t  pdg)
inline

Definition at line 99 of file UParticle.h.

References fPdg.

Referenced by NicaUnigenEvent::Update().

◆ SetPosition() [1/2]

void UParticle::SetPosition ( Double_t  x,
Double_t  y,
Double_t  z,
Double_t  t 
)
inline

Definition at line 131 of file UParticle.h.

References fT, fX, fY, fZ, x, and y.

Referenced by NicaUnigenEventInterface::Boost(), and NicaUnigenSource::Boost().

◆ SetPosition() [2/2]

void UParticle::SetPosition ( TLorentzVector  pos)
inline

Definition at line 137 of file UParticle.h.

References fT, fX, fY, fZ, and pos.

◆ SetPx()

void UParticle::SetPx ( Double_t  px)
inline

Definition at line 111 of file UParticle.h.

References fPx.

◆ SetPy()

void UParticle::SetPy ( Double_t  py)
inline

Definition at line 112 of file UParticle.h.

References fPy.

◆ SetPz()

void UParticle::SetPz ( Double_t  pz)
inline

Definition at line 113 of file UParticle.h.

References fPz.

◆ SetStatus()

void UParticle::SetStatus ( Int_t  status)
inline

Definition at line 100 of file UParticle.h.

References fStatus.

◆ SetT()

void UParticle::SetT ( Double_t  t)
inline

Definition at line 130 of file UParticle.h.

References fT.

◆ SetWeight()

void UParticle::SetWeight ( Double_t  weight)
inline

Definition at line 143 of file UParticle.h.

References fWeight.

◆ SetX()

void UParticle::SetX ( Double_t  x)
inline

Definition at line 127 of file UParticle.h.

References fX, and x.

◆ SetY()

void UParticle::SetY ( Double_t  y)
inline

Definition at line 128 of file UParticle.h.

References fY, and y.

◆ SetZ()

void UParticle::SetZ ( Double_t  z)
inline

Definition at line 129 of file UParticle.h.

References fZ.

◆ T()

Double_t UParticle::T ( ) const
inline

Definition at line 90 of file UParticle.h.

References fT.

Referenced by NicaGeneratorReadUnigen::ReadEvent(), and NicaUnigenEvent::Update().

◆ X()

Double_t UParticle::X ( ) const
inline

Definition at line 87 of file UParticle.h.

References fX.

Referenced by NicaGeneratorReadUnigen::ReadEvent(), and NicaUnigenEvent::Update().

◆ Y()

Double_t UParticle::Y ( ) const
inline

Definition at line 88 of file UParticle.h.

References fY.

Referenced by NicaGeneratorReadUnigen::ReadEvent(), and NicaUnigenEvent::Update().

◆ Z()

Double_t UParticle::Z ( ) const
inline

Definition at line 89 of file UParticle.h.

References fZ.

Referenced by NicaGeneratorReadUnigen::ReadEvent(), and NicaUnigenEvent::Update().

Member Data Documentation

◆ fChild

Int_t UParticle::fChild[2]
private

◆ fDecay

Int_t UParticle::fDecay
private

Definition at line 19 of file UParticle.h.

Referenced by GetDecay(), operator=(), operator==(), Print(), and SetDecay().

◆ fE

Double32_t UParticle::fE
private

Definition at line 24 of file UParticle.h.

Referenced by E(), GetMomentum(), Momentum(), operator=(), operator==(), Print(), SetE(), and SetMomentum().

◆ fIndex

Int_t UParticle::fIndex
private

Definition at line 13 of file UParticle.h.

Referenced by GetIndex(), operator=(), operator==(), Print(), and SetIndex().

◆ fMate

Int_t UParticle::fMate
private

Definition at line 18 of file UParticle.h.

Referenced by GetMate(), operator=(), operator==(), Print(), and SetMate().

◆ fParent

Int_t UParticle::fParent
private

Definition at line 16 of file UParticle.h.

Referenced by GetParent(), operator=(), operator==(), Print(), and SetParent().

◆ fParentDecay

Int_t UParticle::fParentDecay
private

Definition at line 17 of file UParticle.h.

Referenced by GetParentDecay(), operator=(), operator==(), Print(), and SetParentDecay().

◆ fPdg

Int_t UParticle::fPdg
private

Definition at line 14 of file UParticle.h.

Referenced by GetPdg(), operator=(), operator==(), Print(), and SetPdg().

◆ fPx

Double32_t UParticle::fPx
private

Definition at line 21 of file UParticle.h.

Referenced by GetMomentum(), Momentum(), operator=(), operator==(), Print(), Px(), SetMomentum(), and SetPx().

◆ fPy

Double32_t UParticle::fPy
private

Definition at line 22 of file UParticle.h.

Referenced by GetMomentum(), Momentum(), operator=(), operator==(), Print(), Py(), SetMomentum(), and SetPy().

◆ fPz

Double32_t UParticle::fPz
private

Definition at line 23 of file UParticle.h.

Referenced by GetMomentum(), Momentum(), operator=(), operator==(), Print(), Pz(), SetMomentum(), and SetPz().

◆ fStatus

Int_t UParticle::fStatus
private

Definition at line 15 of file UParticle.h.

Referenced by GetStatus(), operator=(), operator==(), Print(), and SetStatus().

◆ fT

Double32_t UParticle::fT
private

Definition at line 28 of file UParticle.h.

Referenced by GetPosition(), operator=(), operator==(), Position(), Print(), SetPosition(), SetT(), and T().

◆ fWeight

Double32_t UParticle::fWeight
private

Definition at line 29 of file UParticle.h.

Referenced by GetWeight(), operator=(), operator==(), Print(), and SetWeight().

◆ fX

Double32_t UParticle::fX
private

Definition at line 25 of file UParticle.h.

Referenced by GetPosition(), operator=(), operator==(), Position(), Print(), SetPosition(), SetX(), and X().

◆ fY

Double32_t UParticle::fY
private

Definition at line 26 of file UParticle.h.

Referenced by GetPosition(), operator=(), operator==(), Position(), Print(), SetPosition(), SetY(), and Y().

◆ fZ

Double32_t UParticle::fZ
private

Definition at line 27 of file UParticle.h.

Referenced by GetPosition(), operator=(), operator==(), Position(), Print(), SetPosition(), SetZ(), and Z().


The documentation for this class was generated from the following files: