AliRoot Core  v5-06-15 (45dab64)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONTrackLight Class Reference

Compact information for the muon generated tracks. More...

#include <AliMUONTrackLight.h>

Inheritance diagram for AliMUONTrackLight:

Public Member Functions

 AliMUONTrackLight ()
 
 AliMUONTrackLight (AliESDMuonTrack *muonTrack)
 
 AliMUONTrackLight (const AliMUONTrackLight &muonCopy)
 
AliMUONTrackLightoperator= (const AliMUONTrackLight &)
 
virtual ~AliMUONTrackLight ()
 
void SetPGen (TLorentzVector pgen)
 Set 4-momentum of the generated particle. More...
 
TLorentzVector GetPGen () const
 Return 4-momentum of the generated particle. More...
 
void SetPRec (TLorentzVector prec)
 Set reconstructed 4-momentum. More...
 
TLorentzVector GetPRec () const
 Return reconstructed 4-momentum. More...
 
void SetVertex (Double_t *xyz)
 Set primary vertex position from the ITS. More...
 
Double_t GetX () const
 Return primary vertex x position from the ITS. More...
 
Double_t GetY () const
 Return primary vertex y position from the ITS. More...
 
Double_t GetZ () const
 Return primary vertex z position from the ITS. More...
 
Double_t * GetVertex ()
 Return primary vertex position from the ITS. More...
 
void SetChi2 (Double_t chi2)
 Set chi2 / ndf in the MUON track fit. More...
 
Double_t GetChi2 () const
 Return chi2 / ndf in the MUON track fit. More...
 
void SetWeight (Double_t w)
 Set weight assigned to the muon. More...
 
Double_t GetWeight () const
 Return weight assigned to the muon. More...
 
void SetCharge (Int_t charge)
 Set muon charge. More...
 
Int_t GetCharge () const
 Return muon charge. More...
 
Int_t GetParentPDGCode (Int_t index=0) const
 Return hadronised parents and grandparents. More...
 
Int_t GetParentPythiaLine (Int_t index=0) const
 Return line of Pythia output for hadronised parents & grandparents. More...
 
Int_t GetQuarkPDGCode (Int_t index=0) const
 Return pdg of the string [0], quarks/gluons [1,2], sometimes proton [3]. More...
 
Int_t GetQuarkPythiaLine (Int_t index=0) const
 Return line of Pythia output for string [0] and quarks [1,2], sometimes proton [3]. More...
 
Int_t GetTrackPythiaLine () const
 Return line of Pythia output for string [0] and quarks [1,2], sometimes proton [3]. More...
 
Int_t GetTrackPDGCode () const
 Return pdg code of the rec. track (in general will be a muon) More...
 
void SetTrackPythiaLine (Int_t trackLine)
 Set line of kin. stack where rec. track (in general, the muon) is stored. More...
 
void SetTrackPDGCode (Int_t trackPdg)
 Set pdg code of the rec. track (in general will be a muon) More...
 
void FillFromESD (AliESDMuonTrack *muonTrack, Double_t zvert=-9999)
 
void FillFromAliMUONTrack (AliMUONTrack *trackReco, Double_t zvert=-9999)
 
Bool_t IsAMuon () const
 Return info if is a muon. More...
 
Bool_t IsParentPionOrKaon (Int_t idParent=0)
 
void SetPxPyPz (Double_t px, Double_t py, Double_t pz)
 
void SetTriggered (Bool_t isTriggered)
 Set flag for trigger. More...
 
Bool_t IsTriggered () const
 Return flag for trigger. More...
 
Int_t GetNParents () const
 Return acually filled no. of fragmented parents. More...
 
void FillMuonHistory (AliStack *stack, TParticle *part)
 
Bool_t IsB0 (Int_t intTest) const
 
Bool_t IsMotherAResonance (Int_t index=0) const
 
Bool_t GetOscillation () const
 Return flag for oscillation. More...
 
virtual void PrintInfo (const Option_t *opt)
 
Int_t GetParentFlavour (Int_t idParent=0) const
 
Bool_t IsDiquark (Int_t pdg) const
 

Protected Member Functions

void SetOscillation (Bool_t oscillation)
 Set flag for oscillation. More...
 
void SetParentPDGCode (Int_t index, Int_t pdg)
 Set hadronised parents and grandparents. More...
 
void SetParentPythiaLine (Int_t index, Int_t line)
 Set line of Pythia output for hadronised parents & grandparents. More...
 
void SetQuarkPDGCode (Int_t index, Int_t pdg)
 Set pdg of the string [0], quarks/gluons [1,2], sometimes proton [3]. More...
 
void SetQuarkPythiaLine (Int_t index, Int_t line)
 Set line of Pythia output for string [0] and quarks [1,2], sometimes proton [3]. More...
 
void ResetQuarkInfo ()
 

Protected Attributes

TLorentzVector fPrec
 reconstructed 4-momentum More...
 
Double_t fXYZ [3]
 primary vertex position from the ITS More...
 
Bool_t fIsTriggered
 flag for trigger More...
 
Int_t fCharge
 muon charge More...
 
Double_t fChi2
 chi2 / ndf in the MUON track fit More...
 
Float_t fCentr
 centrality More...
 
TLorentzVector fPgen
 4-momentum of the generated particle More...
 
Int_t fTrackPythiaLine
 line of kin. stack where rec. track (in general, the muon) is stored More...
 
Int_t fTrackPDGCode
 pdg code of the rec. track (in general will be a muon) More...
 
Int_t fParentPDGCode [fgkNParentsMax]
 hadronised parents and grandparents More...
 
Int_t fParentPythiaLine [fgkNParentsMax]
 line of Pythia output for hadronised parents & grandparents More...
 
Int_t fQuarkPDGCode [4]
 pdg of the string [0], quarks/gluons [1,2], sometimes proton [3] More...
 
Int_t fQuarkPythiaLine [4]
 line of Pythia output for string [0] and quarks [1,2], sometimes proton [3] More...
 
Bool_t fOscillation
 flag for oscillation More...
 
Int_t fNParents
 acually filled no. of fragmented parents More...
 
Double_t fWeight
 

Static Protected Attributes

static const Int_t fgkNParentsMax = 5
 maximum number of parents More...
 

Detailed Description

Compact information for the muon generated tracks.

Compact information for the muon generated tracks in the MUON arm useful at the last stage of the analysis chain provides a link between the reconstructed track and the generated particle stores kinematical information at gen. and rec. level and the decay history of the muon, allowing the identification of the mother process

To be used together with AliMUONPairLight

Author
This class was prepared by INFN Cagliari, July 2006 (authors: H.Woehri, A.de Falco)

Definition at line 34 of file AliMUONTrackLight.h.

Constructor & Destructor Documentation

AliMUONTrackLight::AliMUONTrackLight ( )
AliMUONTrackLight::AliMUONTrackLight ( AliESDMuonTrack *  muonTrack)

constructor

Definition at line 116 of file AliMUONTrackLight.cxx.

AliMUONTrackLight::AliMUONTrackLight ( const AliMUONTrackLight muonCopy)

copy constructor

Definition at line 89 of file AliMUONTrackLight.cxx.

AliMUONTrackLight::~AliMUONTrackLight ( )
virtual

Destructor

Definition at line 144 of file AliMUONTrackLight.cxx.

Member Function Documentation

void AliMUONTrackLight::FillFromAliMUONTrack ( AliMUONTrack trackReco,
Double_t  zvert = -9999 
)

this method sets the muon reconstructed momentum according to the value given by AliMUONTrack

Definition at line 186 of file AliMUONTrackLight.cxx.

void AliMUONTrackLight::FillFromESD ( AliESDMuonTrack *  muonTrack,
Double_t  zvert = -9999 
)

computes prec and charge from ESD track

Definition at line 205 of file AliMUONTrackLight.cxx.

Referenced by AliMUONTrackLight(), and DecodeRecoCocktail().

void AliMUONTrackLight::FillMuonHistory ( AliStack *  stack,
TParticle *  part 
)

scans the muon history to determine parents pdg code and pythia line

Definition at line 238 of file AliMUONTrackLight.cxx.

Referenced by DecodeRecoCocktail(), and fastMUONSim().

Int_t AliMUONTrackLight::GetCharge ( ) const
inline

Return muon charge.

Definition at line 72 of file AliMUONTrackLight.h.

Referenced by AliMUONPairLight::GetCharge(), and PrintInfo().

Double_t AliMUONTrackLight::GetChi2 ( ) const
inline

Return chi2 / ndf in the MUON track fit.

Definition at line 63 of file AliMUONTrackLight.h.

Int_t AliMUONTrackLight::GetNParents ( ) const
inline

Return acually filled no. of fragmented parents.

Definition at line 100 of file AliMUONTrackLight.h.

Referenced by AliMUONPairLight::IsAResonance(), AliMUONPairLight::PrintInfo(), and AliMUONPairLight::SetProcess().

Bool_t AliMUONTrackLight::GetOscillation ( ) const
inline

Return flag for oscillation.

Definition at line 105 of file AliMUONTrackLight.h.

Int_t AliMUONTrackLight::GetParentFlavour ( Int_t  idParent = 0) const

returns the flavour of parent idParent (idParent=0 is the oldest hadronized parent)

Definition at line 346 of file AliMUONTrackLight.cxx.

Referenced by FillMuonHistory(), AliMUONPairLight::IsOpenBeauty(), AliMUONPairLight::IsOpenCharm(), and AliMUONPairLight::SetProcess().

Int_t AliMUONTrackLight::GetParentPDGCode ( Int_t  index = 0) const
inline

Return hadronised parents and grandparents.

Definition at line 74 of file AliMUONTrackLight.h.

Referenced by AliMUONPairLight::GetMuonMotherPDG(), GetParentFlavour(), IsMotherAResonance(), IsParentPionOrKaon(), PrintInfo(), and AliMUONPairLight::SetProcess().

Int_t AliMUONTrackLight::GetParentPythiaLine ( Int_t  index = 0) const
inline

Return line of Pythia output for hadronised parents & grandparents.

Definition at line 76 of file AliMUONTrackLight.h.

Referenced by fastMUONSim(), AliMUONPairLight::IsAResonance(), PrintInfo(), and AliMUONPairLight::SetProcess().

TLorentzVector AliMUONTrackLight::GetPGen ( ) const
inline

Return 4-momentum of the generated particle.

Definition at line 45 of file AliMUONTrackLight.h.

Referenced by AliMUONPairLight::GetPGen(), and PrintInfo().

TLorentzVector AliMUONTrackLight::GetPRec ( ) const
inline

Return reconstructed 4-momentum.

Definition at line 49 of file AliMUONTrackLight.h.

Referenced by AliMUONPairLight::GetOpeningAngle(), AliMUONPairLight::GetPRec(), and PrintInfo().

Int_t AliMUONTrackLight::GetQuarkPDGCode ( Int_t  index = 0) const
inline

Return pdg of the string [0], quarks/gluons [1,2], sometimes proton [3].

Definition at line 78 of file AliMUONTrackLight.h.

Referenced by FillMuonHistory(), PrintInfo(), and AliMUONPairLight::SetProcess().

Int_t AliMUONTrackLight::GetQuarkPythiaLine ( Int_t  index = 0) const
inline

Return line of Pythia output for string [0] and quarks [1,2], sometimes proton [3].

Definition at line 80 of file AliMUONTrackLight.h.

Referenced by FillMuonHistory(), AliMUONPairLight::IsDimuonFromCorrPiK(), PrintInfo(), and AliMUONPairLight::SetProcess().

Int_t AliMUONTrackLight::GetTrackPDGCode ( ) const
inline

Return pdg code of the rec. track (in general will be a muon)

Definition at line 84 of file AliMUONTrackLight.h.

Referenced by PrintInfo().

Int_t AliMUONTrackLight::GetTrackPythiaLine ( ) const
inline

Return line of Pythia output for string [0] and quarks [1,2], sometimes proton [3].

Definition at line 82 of file AliMUONTrackLight.h.

Referenced by PrintInfo().

Double_t* AliMUONTrackLight::GetVertex ( )
inline

Return primary vertex position from the ITS.

Definition at line 59 of file AliMUONTrackLight.h.

Referenced by AliMUONPairLight::PrintInfo(), and PrintInfo().

Double_t AliMUONTrackLight::GetWeight ( ) const
inline

Return weight assigned to the muon.

Definition at line 67 of file AliMUONTrackLight.h.

Double_t AliMUONTrackLight::GetX ( ) const
inline

Return primary vertex x position from the ITS.

Definition at line 53 of file AliMUONTrackLight.h.

Double_t AliMUONTrackLight::GetY ( ) const
inline

Return primary vertex y position from the ITS.

Definition at line 55 of file AliMUONTrackLight.h.

Double_t AliMUONTrackLight::GetZ ( ) const
inline

Return primary vertex z position from the ITS.

Definition at line 57 of file AliMUONTrackLight.h.

Bool_t AliMUONTrackLight::IsAMuon ( ) const
inline

Return info if is a muon.

Definition at line 92 of file AliMUONTrackLight.h.

Referenced by AliMUONPairLight::IsOneTrackNotAMuon().

Bool_t AliMUONTrackLight::IsB0 ( Int_t  intTest) const

checks if the particle is a B0

Definition at line 324 of file AliMUONTrackLight.cxx.

Referenced by FillMuonHistory().

Bool_t AliMUONTrackLight::IsDiquark ( Int_t  pdg) const

check if the provided pdg code corresponds to a diquark

Definition at line 421 of file AliMUONTrackLight.cxx.

Referenced by FillMuonHistory(), and AliMUONPairLight::SetProcess().

Bool_t AliMUONTrackLight::IsMotherAResonance ( Int_t  index = 0) const

checks if mother is a resonance

Definition at line 337 of file AliMUONTrackLight.cxx.

Referenced by AliMUONPairLight::IsAResonance().

Bool_t AliMUONTrackLight::IsParentPionOrKaon ( Int_t  idParent = 0)

checks if a muon comes from a pion or kaon or a particle that decays into one of these two

Definition at line 406 of file AliMUONTrackLight.cxx.

Referenced by AliMUONPairLight::IsDimuonFromCorrPiK(), and AliMUONPairLight::IsOneMuonFromPionOrKaon().

Bool_t AliMUONTrackLight::IsTriggered ( ) const
inline

Return flag for trigger.

Definition at line 98 of file AliMUONTrackLight.h.

AliMUONTrackLight & AliMUONTrackLight::operator= ( const AliMUONTrackLight muonCopy)

Definition at line 150 of file AliMUONTrackLight.cxx.

void AliMUONTrackLight::PrintInfo ( const Option_t *  opt)
virtual

prints information about the track:

  • "H" muon's decay history
  • "K" muon kinematics
  • "A" all variables

Definition at line 356 of file AliMUONTrackLight.cxx.

Referenced by FillMuonHistory(), and AliMUONPairLight::PrintInfo().

void AliMUONTrackLight::ResetQuarkInfo ( )
protected

resets parton information

Definition at line 315 of file AliMUONTrackLight.cxx.

Referenced by FillMuonHistory().

void AliMUONTrackLight::SetCharge ( Int_t  charge)
inline

Set muon charge.

Definition at line 70 of file AliMUONTrackLight.h.

Referenced by fastMUONSim(), and FillFromAliMUONTrack().

void AliMUONTrackLight::SetChi2 ( Double_t  chi2)
inline

Set chi2 / ndf in the MUON track fit.

Definition at line 61 of file AliMUONTrackLight.h.

void AliMUONTrackLight::SetOscillation ( Bool_t  oscillation)
inlineprotected

Set flag for oscillation.

Definition at line 130 of file AliMUONTrackLight.h.

Referenced by FillMuonHistory().

void AliMUONTrackLight::SetParentPDGCode ( Int_t  index,
Int_t  pdg 
)
protected

Set hadronised parents and grandparents.

Set hadronised parents and grandparents

Definition at line 428 of file AliMUONTrackLight.cxx.

Referenced by FillMuonHistory().

void AliMUONTrackLight::SetParentPythiaLine ( Int_t  index,
Int_t  line 
)
protected

Set line of Pythia output for hadronised parents & grandparents.

Set line of Pythia output for hadronised parents & grandparents

Definition at line 437 of file AliMUONTrackLight.cxx.

Referenced by FillMuonHistory().

void AliMUONTrackLight::SetPGen ( TLorentzVector  pgen)
inline

Set 4-momentum of the generated particle.

Definition at line 43 of file AliMUONTrackLight.h.

Referenced by DecodeRecoCocktail(), and fastMUONSim().

void AliMUONTrackLight::SetPRec ( TLorentzVector  prec)
inline

Set reconstructed 4-momentum.

Definition at line 47 of file AliMUONTrackLight.h.

void AliMUONTrackLight::SetPxPyPz ( Double_t  px,
Double_t  py,
Double_t  pz 
)

set the reconstructed 4-momentum, assuming the particle is a muon

Definition at line 230 of file AliMUONTrackLight.cxx.

Referenced by fastMUONSim(), and FillFromAliMUONTrack().

void AliMUONTrackLight::SetQuarkPDGCode ( Int_t  index,
Int_t  pdg 
)
protected

Set pdg of the string [0], quarks/gluons [1,2], sometimes proton [3].

Set pdg of the string [0], quarks/gluons [1,2], sometimes proton [3]

Definition at line 446 of file AliMUONTrackLight.cxx.

Referenced by FillMuonHistory(), and ResetQuarkInfo().

void AliMUONTrackLight::SetQuarkPythiaLine ( Int_t  index,
Int_t  line 
)
protected

Set line of Pythia output for string [0] and quarks [1,2], sometimes proton [3].

Set line of Pythia output for string [0] and quarks [1,2], sometimes proton [3]

Definition at line 455 of file AliMUONTrackLight.cxx.

Referenced by FillMuonHistory(), and ResetQuarkInfo().

void AliMUONTrackLight::SetTrackPDGCode ( Int_t  trackPdg)
inline

Set pdg code of the rec. track (in general will be a muon)

Definition at line 88 of file AliMUONTrackLight.h.

Referenced by DecodeRecoCocktail(), and fastMUONSim().

void AliMUONTrackLight::SetTrackPythiaLine ( Int_t  trackLine)
inline

Set line of kin. stack where rec. track (in general, the muon) is stored.

Definition at line 86 of file AliMUONTrackLight.h.

Referenced by DecodeRecoCocktail(), and fastMUONSim().

void AliMUONTrackLight::SetTriggered ( Bool_t  isTriggered)
inline

Set flag for trigger.

Definition at line 96 of file AliMUONTrackLight.h.

Referenced by fastMUONSim(), and FillFromAliMUONTrack().

void AliMUONTrackLight::SetVertex ( Double_t *  xyz)
inline

Set primary vertex position from the ITS.

Definition at line 51 of file AliMUONTrackLight.h.

Referenced by fastMUONSim(), and FillFromAliMUONTrack().

void AliMUONTrackLight::SetWeight ( Double_t  w)
inline

Set weight assigned to the muon.

Definition at line 65 of file AliMUONTrackLight.h.

Member Data Documentation

Float_t AliMUONTrackLight::fCentr
protected

centrality

Definition at line 118 of file AliMUONTrackLight.h.

Referenced by operator=().

Int_t AliMUONTrackLight::fCharge
protected

muon charge

Definition at line 116 of file AliMUONTrackLight.h.

Referenced by FillFromESD(), GetCharge(), operator=(), and SetCharge().

Double_t AliMUONTrackLight::fChi2
protected

chi2 / ndf in the MUON track fit

Definition at line 117 of file AliMUONTrackLight.h.

Referenced by FillFromESD(), GetChi2(), operator=(), and SetChi2().

const Int_t AliMUONTrackLight::fgkNParentsMax = 5
staticprotected

maximum number of parents

Definition at line 112 of file AliMUONTrackLight.h.

Referenced by AliMUONTrackLight(), operator=(), SetParentPDGCode(), and SetParentPythiaLine().

Bool_t AliMUONTrackLight::fIsTriggered
protected

flag for trigger

Definition at line 115 of file AliMUONTrackLight.h.

Referenced by FillFromESD(), IsTriggered(), operator=(), and SetTriggered().

Int_t AliMUONTrackLight::fNParents
protected

acually filled no. of fragmented parents

Definition at line 127 of file AliMUONTrackLight.h.

Referenced by FillMuonHistory(), GetNParents(), operator=(), and PrintInfo().

Bool_t AliMUONTrackLight::fOscillation
protected

flag for oscillation

Definition at line 126 of file AliMUONTrackLight.h.

Referenced by GetOscillation(), and operator=().

Int_t AliMUONTrackLight::fParentPDGCode[fgkNParentsMax]
protected

hadronised parents and grandparents

Definition at line 122 of file AliMUONTrackLight.h.

Referenced by AliMUONTrackLight(), GetParentPDGCode(), operator=(), and SetParentPDGCode().

Int_t AliMUONTrackLight::fParentPythiaLine[fgkNParentsMax]
protected

line of Pythia output for hadronised parents & grandparents

Definition at line 123 of file AliMUONTrackLight.h.

Referenced by AliMUONTrackLight(), GetParentPythiaLine(), operator=(), and SetParentPythiaLine().

TLorentzVector AliMUONTrackLight::fPgen
protected

4-momentum of the generated particle

Definition at line 119 of file AliMUONTrackLight.h.

Referenced by AliMUONTrackLight(), GetPGen(), operator=(), and SetPGen().

TLorentzVector AliMUONTrackLight::fPrec
protected

reconstructed 4-momentum

Definition at line 113 of file AliMUONTrackLight.h.

Referenced by FillFromESD(), GetPRec(), operator=(), SetPRec(), and SetPxPyPz().

Int_t AliMUONTrackLight::fQuarkPDGCode[4]
protected

pdg of the string [0], quarks/gluons [1,2], sometimes proton [3]

Definition at line 124 of file AliMUONTrackLight.h.

Referenced by AliMUONTrackLight(), GetQuarkPDGCode(), operator=(), and SetQuarkPDGCode().

Int_t AliMUONTrackLight::fQuarkPythiaLine[4]
protected

line of Pythia output for string [0] and quarks [1,2], sometimes proton [3]

Definition at line 125 of file AliMUONTrackLight.h.

Referenced by AliMUONTrackLight(), GetQuarkPythiaLine(), operator=(), and SetQuarkPythiaLine().

Int_t AliMUONTrackLight::fTrackPDGCode
protected

pdg code of the rec. track (in general will be a muon)

Definition at line 121 of file AliMUONTrackLight.h.

Referenced by GetTrackPDGCode(), IsAMuon(), operator=(), and SetTrackPDGCode().

Int_t AliMUONTrackLight::fTrackPythiaLine
protected

line of kin. stack where rec. track (in general, the muon) is stored

Definition at line 120 of file AliMUONTrackLight.h.

Referenced by GetTrackPythiaLine(), operator=(), and SetTrackPythiaLine().

Double_t AliMUONTrackLight::fWeight
protected

weight assigned to the muon

Definition at line 128 of file AliMUONTrackLight.h.

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

Double_t AliMUONTrackLight::fXYZ[3]
protected

primary vertex position from the ITS

Definition at line 114 of file AliMUONTrackLight.h.

Referenced by AliMUONTrackLight(), FillFromESD(), GetVertex(), GetX(), GetY(), GetZ(), operator=(), and SetVertex().


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