CbmRoot
Loading...
Searching...
No Matches
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 14 of file UParticle.h.

Constructor & Destructor Documentation

◆ UParticle() [1/5]

UParticle::UParticle ( )

Definition at line 22 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 49 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 77 of file UParticle.cxx.

References fChild.

◆ UParticle() [4/5]

UParticle::UParticle ( const UParticle & right)

Definition at line 104 of file UParticle.cxx.

◆ UParticle() [5/5]

UParticle::UParticle ( const TParticle & right)

Definition at line 128 of file UParticle.cxx.

References fChild.

◆ ~UParticle()

UParticle::~UParticle ( )
virtual

Definition at line 154 of file UParticle.cxx.

Member Function Documentation

◆ ClassDef()

UParticle::ClassDef ( UParticle ,
1  )

◆ E()

Double_t UParticle::E ( ) const
inline

Definition at line 61 of file UParticle.h.

References fE.

Referenced by CbmUnigenGenerator::ReadEvent(), and HalCbmUnigenEvent::Update().

◆ GetDecay()

Int_t UParticle::GetDecay ( ) const
inline

Definition at line 55 of file UParticle.h.

References fDecay.

◆ GetFirstChild()

Int_t UParticle::GetFirstChild ( ) const
inline

Definition at line 56 of file UParticle.h.

References fChild.

◆ GetIndex()

Int_t UParticle::GetIndex ( ) const
inline

Definition at line 49 of file UParticle.h.

References fIndex.

◆ GetLastChild()

Int_t UParticle::GetLastChild ( ) const
inline

Definition at line 57 of file UParticle.h.

References fChild.

◆ GetMate()

Int_t UParticle::GetMate ( ) const
inline

Definition at line 54 of file UParticle.h.

References fMate.

◆ GetMomentum()

TLorentzVector UParticle::GetMomentum ( ) const
inline

Definition at line 62 of file UParticle.h.

References fE, fPx, fPy, and fPz.

Referenced by CbmUnigenSource::Boost(), and HalCbmUnigenEventInterface::Boost().

◆ GetParent()

Int_t UParticle::GetParent ( ) const
inline

Definition at line 52 of file UParticle.h.

References fParent.

Referenced by HalCbmUnigenEvent::Update().

◆ GetParentDecay()

Int_t UParticle::GetParentDecay ( ) const
inline

Definition at line 53 of file UParticle.h.

References fParentDecay.

◆ GetPdg()

Int_t UParticle::GetPdg ( ) const
inline

◆ GetPosition()

TLorentzVector UParticle::GetPosition ( ) const
inline

Definition at line 68 of file UParticle.h.

References fT, fX, fY, and fZ.

Referenced by CbmUnigenSource::Boost(), HalCbmUnigenEventInterface::Boost(), and CbmSimTracksConverter::ProcessData().

◆ GetStatus()

Int_t UParticle::GetStatus ( ) const
inline

Definition at line 51 of file UParticle.h.

References fStatus.

Referenced by HalCbmUnigenEvent::Update().

◆ GetWeight()

Double_t UParticle::GetWeight ( ) const
inline

Definition at line 70 of file UParticle.h.

References fWeight.

◆ Momentum()

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

Definition at line 63 of file UParticle.h.

References fE, fPx, fPy, and fPz.

◆ operator=() [1/2]

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

Definition at line 190 of file UParticle.cxx.

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

◆ operator=() [2/2]

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

Definition at line 162 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 217 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 69 of file UParticle.h.

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

◆ Print()

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

Definition at line 239 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

Definition at line 58 of file UParticle.h.

References fPx.

Referenced by operator=(), CbmUnigenGenerator::ReadEvent(), and HalCbmUnigenEvent::Update().

◆ Py()

Double_t UParticle::Py ( ) const
inline

Definition at line 59 of file UParticle.h.

References fPy.

Referenced by CbmUnigenGenerator::ReadEvent(), and HalCbmUnigenEvent::Update().

◆ Pz()

Double_t UParticle::Pz ( ) const
inline

Definition at line 60 of file UParticle.h.

References fPz.

Referenced by CbmUnigenGenerator::ReadEvent(), and HalCbmUnigenEvent::Update().

◆ SetChild()

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

Definition at line 78 of file UParticle.h.

References fChild.

◆ SetDecay()

void UParticle::SetDecay ( Int_t decay)
inline

Definition at line 77 of file UParticle.h.

References fDecay.

◆ SetE()

void UParticle::SetE ( Double_t e)
inline

Definition at line 88 of file UParticle.h.

References fE.

◆ SetFirstChild()

void UParticle::SetFirstChild ( Int_t child)
inline

Definition at line 83 of file UParticle.h.

References fChild.

◆ SetIndex()

void UParticle::SetIndex ( Int_t index)
inline

Definition at line 71 of file UParticle.h.

References fIndex.

◆ SetLastChild()

void UParticle::SetLastChild ( Int_t child)
inline

Definition at line 84 of file UParticle.h.

References fChild.

◆ SetMate()

void UParticle::SetMate ( Int_t mate)
inline

Definition at line 76 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 89 of file UParticle.h.

References fE, fPx, fPy, and fPz.

Referenced by CbmUnigenSource::Boost(), and HalCbmUnigenEventInterface::Boost().

◆ SetMomentum() [2/2]

void UParticle::SetMomentum ( TLorentzVector mom)
inline

Definition at line 96 of file UParticle.h.

References fE, fPx, fPy, and fPz.

◆ SetParent()

void UParticle::SetParent ( Int_t parent)
inline

Definition at line 74 of file UParticle.h.

References fParent.

◆ SetParentDecay()

void UParticle::SetParentDecay ( Int_t parentDecay)
inline

Definition at line 75 of file UParticle.h.

References fParentDecay.

◆ SetPdg()

void UParticle::SetPdg ( Int_t pdg)
inline

Definition at line 72 of file UParticle.h.

References fPdg.

◆ SetPosition() [1/2]

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

Definition at line 107 of file UParticle.h.

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

Referenced by CbmUnigenSource::Boost(), and HalCbmUnigenEventInterface::Boost().

◆ SetPosition() [2/2]

void UParticle::SetPosition ( TLorentzVector pos)
inline

Definition at line 114 of file UParticle.h.

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

◆ SetPx()

void UParticle::SetPx ( Double_t px)
inline

Definition at line 85 of file UParticle.h.

References fPx.

◆ SetPy()

void UParticle::SetPy ( Double_t py)
inline

Definition at line 86 of file UParticle.h.

References fPy.

◆ SetPz()

void UParticle::SetPz ( Double_t pz)
inline

Definition at line 87 of file UParticle.h.

References fPz.

◆ SetStatus()

void UParticle::SetStatus ( Int_t status)
inline

Definition at line 73 of file UParticle.h.

References fStatus.

◆ SetT()

void UParticle::SetT ( Double_t t)
inline

Definition at line 106 of file UParticle.h.

References fT.

◆ SetWeight()

void UParticle::SetWeight ( Double_t weight)
inline

Definition at line 121 of file UParticle.h.

References fWeight.

◆ SetX()

void UParticle::SetX ( Double_t x)
inline

Definition at line 103 of file UParticle.h.

References fX, and x.

◆ SetY()

void UParticle::SetY ( Double_t y)
inline

Definition at line 104 of file UParticle.h.

References fY, and y.

◆ SetZ()

void UParticle::SetZ ( Double_t z)
inline

Definition at line 105 of file UParticle.h.

References fZ.

◆ T()

Double_t UParticle::T ( ) const
inline

Definition at line 67 of file UParticle.h.

References fT.

Referenced by HalCbmUnigenEvent::Update().

◆ X()

Double_t UParticle::X ( ) const
inline

Definition at line 64 of file UParticle.h.

References fX.

Referenced by HalCbmUnigenEvent::Update().

◆ Y()

Double_t UParticle::Y ( ) const
inline

Definition at line 65 of file UParticle.h.

References fY.

Referenced by HalCbmUnigenEvent::Update().

◆ Z()

Double_t UParticle::Z ( ) const
inline

Definition at line 66 of file UParticle.h.

References fZ.

Referenced by HalCbmUnigenEvent::Update().

Member Data Documentation

◆ fChild

◆ fDecay

Int_t UParticle::fDecay
private

Definition at line 23 of file UParticle.h.

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

◆ fE

Double32_t UParticle::fE
private

◆ fIndex

Int_t UParticle::fIndex
private

Definition at line 17 of file UParticle.h.

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

◆ fMate

Int_t UParticle::fMate
private

Definition at line 22 of file UParticle.h.

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

◆ fParent

Int_t UParticle::fParent
private

Definition at line 20 of file UParticle.h.

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

◆ fParentDecay

Int_t UParticle::fParentDecay
private

Definition at line 21 of file UParticle.h.

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

◆ fPdg

Int_t UParticle::fPdg
private

Definition at line 18 of file UParticle.h.

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

◆ fPx

Double32_t UParticle::fPx
private

◆ fPy

Double32_t UParticle::fPy
private

◆ fPz

Double32_t UParticle::fPz
private

◆ fStatus

Int_t UParticle::fStatus
private

Definition at line 19 of file UParticle.h.

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

◆ fT

Double32_t UParticle::fT
private

◆ fWeight

Double32_t UParticle::fWeight
private

Definition at line 33 of file UParticle.h.

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

◆ fX

Double32_t UParticle::fX
private

◆ fY

Double32_t UParticle::fY
private

◆ fZ

Double32_t UParticle::fZ
private

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