AliPhysics  master (3d17d9d)
AliPIDtools Class Reference

Wrapper for the AliPID classes - enable to use function in TFormula, TTreeFormula and Python. More...

#include <AliPIDtools.h>

Static Public Member Functions

static Int_t GetHash (Int_t run, Int_t passNumber, TString recoPass, Bool_t isMC)
 
static Int_t LoadPID (Int_t run, Int_t passNumber, TString recoPass, Bool_t isMC)
 
static AliPIDResponse * GetPID (Int_t hash)
 dummy value to save CPU - unfortunately PID object use AliVtrack - for the moment create global variable t avoid object constructions More...
 
static AliTPCPIDResponse & GetTPCPID (Int_t hash)
 
static AliTOFPIDResponse & GetTOFPID (Int_t hash)
 
static AliITSPIDResponse & GetITSPID (Int_t hash)
 
static Double_t BetheBlochAleph (Int_t hash, Double_t bg)
 
static Double_t BetheBlochITS (Int_t hash, Double_t p, Double_t mass)
 
static Double_t GetExpectedTPCSignal (Int_t hash, Double_t p, Int_t particle)
 
static Double_t GetExpectedITSSignal (Int_t hash, Double_t p, Int_t particle)
 
static Double_t GetExpectedTOFSigma (Int_t hash, Float_t mom, Int_t type)
 
static Double_t GetExpectedTOFSignal (Int_t hash, const AliVTrack *track, Int_t type)
 

Static Public Attributes

static std::map< Int_t, AliTPCPIDResponse * > pidTPC
 
static std::map< Int_t, AliPIDResponse * > pidAll
 we should use better hash map More...
 

Static Private Attributes

static AliESDtrack dummyTrack
 we should use better hash map More...
 

Detailed Description

Wrapper for the AliPID classes - enable to use function in TFormula, TTreeFormula and Python.

Definition at line 32 of file AliPIDtools.h.

Member Function Documentation

Double_t AliPIDtools::BetheBlochAleph ( Int_t  hash,
Double_t  bg 
)
static

Definition at line 25 of file AliPIDtools.cxx.

Double_t AliPIDtools::BetheBlochITS ( Int_t  hash,
Double_t  p,
Double_t  mass 
)
static

AliPIDtools::BetheBlochITS

Parameters
hash- hash value
p- momentum (where?)
mass- mass
Returns

Definition at line 36 of file AliPIDtools.cxx.

Double_t AliPIDtools::GetExpectedITSSignal ( Int_t  hash,
Double_t  p,
Int_t  particle 
)
static

AliPIDtools::GetExpectedITSSignal(

Parameters
hash- hash value
p- momentum (where?)
Returns

Definition at line 46 of file AliPIDtools.cxx.

Double_t AliPIDtools::GetExpectedTOFSigma ( Int_t  hash,
Float_t  mom,
Int_t  type 
)
static

Definition at line 90 of file AliPIDtools.cxx.

Double_t AliPIDtools::GetExpectedTOFSignal ( Int_t  hash,
const AliVTrack *  track,
Int_t  type 
)
static

Definition at line 97 of file AliPIDtools.cxx.

Double_t AliPIDtools::GetExpectedTPCSignal ( Int_t  hash,
Double_t  p,
Int_t  particle 
)
static

GetExpectedTPCSignal

Parameters
hash- hash value of the PID version
p- momenta
particle- particle type
Returns
- mean TPCdedx

Definition at line 58 of file AliPIDtools.cxx.

Int_t AliPIDtools::GetHash ( Int_t  run,
Int_t  passNumber,
TString  recoPass,
Bool_t  isMC 
)
static

Definition at line 18 of file AliPIDtools.cxx.

Referenced by LoadPID().

AliITSPIDResponse & AliPIDtools::GetITSPID ( Int_t  hash)
static

Definition at line 15 of file AliPIDtools.cxx.

Referenced by BetheBlochITS(), and GetExpectedITSSignal().

AliPIDResponse * AliPIDtools::GetPID ( Int_t  hash)
static

dummy value to save CPU - unfortunately PID object use AliVtrack - for the moment create global variable t avoid object constructions

Definition at line 13 of file AliPIDtools.cxx.

AliTOFPIDResponse & AliPIDtools::GetTOFPID ( Int_t  hash)
static

Definition at line 16 of file AliPIDtools.cxx.

Referenced by GetExpectedTOFSigma(), and GetExpectedTOFSignal().

AliTPCPIDResponse & AliPIDtools::GetTPCPID ( Int_t  hash)
static

Definition at line 14 of file AliPIDtools.cxx.

Int_t AliPIDtools::LoadPID ( Int_t  run,
Int_t  passNumber,
TString  recoPass,
Bool_t  isMC 
)
static

Load and reguster PID objects in hash maps

Parameters
run
passNumber
recoPass
isMC
Returns
- hash value of PID

we should clone them

Definition at line 75 of file AliPIDtools.cxx.

Member Data Documentation

AliESDtrack AliPIDtools::dummyTrack
staticprivate

we should use better hash map

Definition at line 51 of file AliPIDtools.h.

Referenced by GetExpectedTPCSignal().

std::map< Int_t, AliPIDResponse * > AliPIDtools::pidAll
static

we should use better hash map

Definition at line 49 of file AliPIDtools.h.

Referenced by BetheBlochITS(), GetExpectedITSSignal(), GetExpectedTOFSigma(), GetExpectedTOFSignal(), GetITSPID(), GetPID(), GetTOFPID(), GetTPCPID(), and LoadPID().

std::map< Int_t, AliTPCPIDResponse * > AliPIDtools::pidTPC
static

Definition at line 48 of file AliPIDtools.h.

Referenced by BetheBlochAleph(), GetExpectedTPCSignal(), and LoadPID().


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