AliPhysics  9b6b435 (9b6b435)
AliPIDtools.h
Go to the documentation of this file.
1 #ifndef ALIPIDTOOLS_H
2 #define ALIPIDTOOLS_H
3 
7 
21 
22 
23 #include "map"
24 #include "AliESDtrack.h"
25 class AliPIDResponse;
26 class AliTPCPIDResponse;
27 
28 
29 class AliPIDtools {
30 public:
31  static Int_t GetHash(Int_t run, Int_t passNumber, TString recoPass, Bool_t isMC);
32  static Int_t LoadPID(Int_t run, Int_t passNumber, TString recoPass, Bool_t isMC);
33  static AliTPCPIDResponse *GetTPCPID(Int_t hash);
34  static Double_t BetheBlochAleph(Int_t hash, Double_t bg);
35  static Double_t GetExpectedTPCSignal(Int_t hash, Double_t p, AliPID::EParticleType particle);
36  static std::map<Int_t, AliTPCPIDResponse *> pidTPC;
37  static std::map<Int_t, AliPIDResponse *> pidAll;
38 private:
39  static AliESDtrack dummyTrack;
40 };
41 
42 #endif //ALIPIDTOOLS_H
double Double_t
Definition: External.C:58
static AliESDtrack dummyTrack
we should use better hash map
Definition: AliPIDtools.h:39
static AliTPCPIDResponse * GetTPCPID(Int_t hash)
dummy value to save CPU - unfortunately PID object use AliVtrack - for the moment create global varai...
Definition: AliPIDtools.cxx:11
static std::map< Int_t, AliTPCPIDResponse * > pidTPC
Definition: AliPIDtools.h:36
static Int_t LoadPID(Int_t run, Int_t passNumber, TString recoPass, Bool_t isMC)
Definition: AliPIDtools.cxx:46
Wrapper for the AliPID classes - enable to use function in TFormula, TTreeFormula and Python...
Definition: AliPIDtools.h:29
static std::map< Int_t, AliPIDResponse * > pidAll
we should use better hash map
Definition: AliPIDtools.h:37
int Int_t
Definition: External.C:63
static Int_t GetHash(Int_t run, Int_t passNumber, TString recoPass, Bool_t isMC)
Definition: AliPIDtools.cxx:12
Bool_t isMC
static Double_t BetheBlochAleph(Int_t hash, Double_t bg)
Definition: AliPIDtools.cxx:19
bool Bool_t
Definition: External.C:53
static Double_t GetExpectedTPCSignal(Int_t hash, Double_t p, AliPID::EParticleType particle)
Definition: AliPIDtools.cxx:29