AliPhysics  9b6b435 (9b6b435)
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 AliTPCPIDResponse * GetTPCPID (Int_t hash)
 dummy value to save CPU - unfortunately PID object use AliVtrack - for the moment create global varaible t avoid object constructions More...
 
static Double_t BetheBlochAleph (Int_t hash, Double_t bg)
 
static Double_t GetExpectedTPCSignal (Int_t hash, Double_t p, AliPID::EParticleType particle)
 

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 29 of file AliPIDtools.h.

Member Function Documentation

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

Definition at line 19 of file AliPIDtools.cxx.

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

GetExpectedTPCSignal

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

Definition at line 29 of file AliPIDtools.cxx.

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

Definition at line 12 of file AliPIDtools.cxx.

Referenced by LoadPID().

AliTPCPIDResponse * AliPIDtools::GetTPCPID ( Int_t  hash)
static

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

Definition at line 11 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 46 of file AliPIDtools.cxx.

Member Data Documentation

AliESDtrack AliPIDtools::dummyTrack
staticprivate

we should use better hash map

Definition at line 39 of file AliPIDtools.h.

Referenced by GetExpectedTPCSignal().

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

we should use better hash map

Definition at line 37 of file AliPIDtools.h.

Referenced by LoadPID().

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

Definition at line 36 of file AliPIDtools.h.

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


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