AliRoot Core  edcc906 (edcc906)
AliPID Class Reference

#include <AliPID.h>

Inheritance diagram for AliPID:

Public Types

enum  { kSPECIES = 5, kSPECIESC = 9, kSPECIESCN = 14, kCharges = 3 }
 
enum  EParticleType {
  kElectron = 0, kMuon = 1, kPion = 2, kKaon = 3,
  kProton = 4, kDeuteron = 5, kTriton = 6, kHe3 = 7,
  kAlpha = 8, kPhoton = 9, kPi0 = 10, kNeutron = 11,
  kKaon0 = 12, kEleCon = 13, kUnknown = 14
}
 
enum  eTRDparticleCharge { kNoCharge = 0, kPosCharge = 1, kNegCharge = 2 }
 

Public Member Functions

 AliPID ()
 
 AliPID (const Double_t *probDensity, Bool_t charged=kTRUE)
 
 AliPID (const Float_t *probDensity, Bool_t charged=kTRUE)
 
 AliPID (const AliPID &pid)
 
AliPIDoperator= (const AliPID &pid)
 
Double_t GetProbability (EParticleType iType, const Double_t *prior) const
 
Double_t GetProbability (EParticleType iType) const
 
void GetProbabilities (Double_t *probabilities, const Double_t *prior) const
 
void GetProbabilities (Double_t *probabilities) const
 
EParticleType GetMostProbable (const Double_t *prior) const
 
EParticleType GetMostProbable () const
 
void SetProbabilities (const Double_t *probabilities, Bool_t charged=kTRUE)
 
AliPIDoperator*= (const AliPID &pid)
 

Static Public Member Functions

static Int_t ParticleCharge (Int_t iType)
 
static Float_t ParticleMass (Int_t iType)
 
static Float_t ParticleMassZ (Int_t iType)
 
static const char * ParticleName (Int_t iType)
 
static const char * ParticleShortName (Int_t iType)
 
static const char * ParticleLatexName (Int_t iType)
 
static Int_t ParticleCode (Int_t iType)
 
static void SetPriors (const Double_t *prior, Bool_t charged=kTRUE)
 
static void SetPrior (EParticleType iType, Double_t prior)
 

Static Private Member Functions

static void Init ()
 

Private Attributes

Bool_t fCharged
 
Double_t fProbDensity [kSPECIESCN]
 

Static Private Attributes

static Double_t fgPrior [kSPECIESCN] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
 
static Float_t fgkParticleMass [kSPECIESCN+1]
 
static Float_t fgkParticleMassZ [kSPECIESCN+1]
 
static Char_t fgkParticleCharge [kSPECIESCN+1] = { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }
 
static const char * fgkParticleName [kSPECIESCN+1]
 
static const char * fgkParticleShortName [kSPECIESCN+1]
 
static const char * fgkParticleLatexName [kSPECIESCN+1]
 
static const Int_t fgkParticleCode [kSPECIESCN+1]
 

Detailed Description

// particle id probability densities // //

Definition at line 19 of file AliPID.h.

Member Enumeration Documentation

anonymous enum
Enumerator
kSPECIES 
kSPECIESC 
kSPECIESCN 
kCharges 

Definition at line 21 of file AliPID.h.

Enumerator
kElectron 
kMuon 
kPion 
kKaon 
kProton 
kDeuteron 
kTriton 
kHe3 
kAlpha 
kPhoton 
kPi0 
kNeutron 
kKaon0 
kEleCon 
kUnknown 

Definition at line 27 of file AliPID.h.

Enumerator
kNoCharge 
kPosCharge 
kNegCharge 

Definition at line 47 of file AliPID.h.

Constructor & Destructor Documentation

AliPID::AliPID ( )

Definition at line 183 of file AliPID.cxx.

Referenced by ParticleCode().

AliPID::AliPID ( const Double_t *  probDensity,
Bool_t  charged = kTRUE 
)

Definition at line 197 of file AliPID.cxx.

AliPID::AliPID ( const Float_t *  probDensity,
Bool_t  charged = kTRUE 
)

Definition at line 214 of file AliPID.cxx.

AliPID::AliPID ( const AliPID pid)

Definition at line 231 of file AliPID.cxx.

Member Function Documentation

AliPID::EParticleType AliPID::GetMostProbable ( const Double_t *  prior) const

Definition at line 354 of file AliPID.cxx.

AliPID::EParticleType AliPID::GetMostProbable ( ) const

Definition at line 376 of file AliPID.cxx.

Referenced by ParticleCode().

void AliPID::GetProbabilities ( Double_t *  probabilities,
const Double_t *  prior 
) const

Definition at line 323 of file AliPID.cxx.

Referenced by GetProbabilities(), and ParticleCode().

void AliPID::GetProbabilities ( Double_t *  probabilities) const

Definition at line 345 of file AliPID.cxx.

Double_t AliPID::GetProbability ( EParticleType  iType,
const Double_t *  prior 
) const

Definition at line 294 of file AliPID.cxx.

Referenced by GetProbability(), and ParticleCode().

Double_t AliPID::GetProbability ( EParticleType  iType) const

Definition at line 314 of file AliPID.cxx.

void AliPID::Init ( void  )
staticprivate

Definition at line 271 of file AliPID.cxx.

Referenced by AliPID(), ParticleCharge(), ParticleCode(), ParticleMass(), and ParticleMassZ().

AliPID & AliPID::operator*= ( const AliPID pid)

Definition at line 427 of file AliPID.cxx.

Referenced by ParticleCode().

AliPID & AliPID::operator= ( const AliPID pid)

Definition at line 257 of file AliPID.cxx.

Referenced by ParticleCode().

static Int_t AliPID::ParticleCharge ( Int_t  iType)
inlinestatic
static Int_t AliPID::ParticleCode ( Int_t  iType)
inlinestatic
static const char* AliPID::ParticleLatexName ( Int_t  iType)
inlinestatic

Definition at line 68 of file AliPID.h.

static const char* AliPID::ParticleName ( Int_t  iType)
inlinestatic
static const char* AliPID::ParticleShortName ( Int_t  iType)
inlinestatic

Definition at line 66 of file AliPID.h.

void AliPID::SetPrior ( EParticleType  iType,
Double_t  prior 
)
static

Definition at line 412 of file AliPID.cxx.

Referenced by ParticleCode().

void AliPID::SetPriors ( const Double_t *  prior,
Bool_t  charged = kTRUE 
)
static

Definition at line 386 of file AliPID.cxx.

Referenced by ParticleCode().

void AliPID::SetProbabilities ( const Double_t *  probabilities,
Bool_t  charged = kTRUE 
)

Definition at line 244 of file AliPID.cxx.

Referenced by ParticleCode().

Member Data Documentation

Bool_t AliPID::fCharged
private

Definition at line 101 of file AliPID.h.

Referenced by GetMostProbable(), GetProbabilities(), GetProbability(), and operator=().

Char_t AliPID::fgkParticleCharge = { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }
staticprivate

Definition at line 107 of file AliPID.h.

Referenced by Init(), and ParticleCharge().

const Int_t AliPID::fgkParticleCode
staticprivate
Initial value:
= {
::kMuonMinus,
::kPiPlus,
::kKPlus,
1000010020,
1000010030,
1000020030,
1000020040,
::kGamma,
::kK0,
0
}

Definition at line 111 of file AliPID.h.

Referenced by ParticleCode().

const char * AliPID::fgkParticleLatexName
staticprivate
Initial value:
= {
"e",
"#mu",
"#pi",
"K",
"p",
"d",
"t",
"^{3}He",
"#alpha",
"#gamma",
"#pi_{0}",
"n",
"K_{0}",
"eleCon",
"unknown"
}

Definition at line 110 of file AliPID.h.

Referenced by ParticleLatexName().

Float_t AliPID::fgkParticleMass
staticprivate
Initial value:
= {
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
}

Definition at line 105 of file AliPID.h.

Referenced by Init(), ParticleCharge(), ParticleMass(), and ParticleMassZ().

Float_t AliPID::fgkParticleMassZ
staticprivate
Initial value:
= {
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
}

Definition at line 106 of file AliPID.h.

Referenced by Init(), and ParticleMassZ().

const char * AliPID::fgkParticleName
staticprivate
Initial value:
= {
"electron",
"muon",
"pion",
"kaon",
"proton",
"deuteron",
"triton",
"helium-3",
"alpha",
"photon",
"pi0",
"neutron",
"kaon0",
"eleCon",
"unknown"
}

Definition at line 108 of file AliPID.h.

Referenced by ParticleName(), SetPrior(), and SetPriors().

const char * AliPID::fgkParticleShortName
staticprivate
Initial value:
= {
"e",
"mu",
"pi",
"K",
"p",
"d",
"t",
"he3",
"alpha",
"photon",
"pi0",
"n",
"K0",
"eleCon",
"unknown"
}

Definition at line 109 of file AliPID.h.

Referenced by ParticleShortName().

Double_t AliPID::fgPrior = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
staticprivate

Definition at line 103 of file AliPID.h.

Referenced by GetMostProbable(), GetProbabilities(), GetProbability(), SetPrior(), and SetPriors().

Double_t AliPID::fProbDensity[kSPECIESCN]
private

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