]>
Commit | Line | Data |
---|---|---|
b9d9108c | 1 | #ifndef ALITOFPIDESD_H |
2 | #define ALITOFPIDESD_H | |
3 | ||
8c6a71ab | 4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7 | //------------------------------------------------------- | |
b9d9108c | 8 | // TOF PID class |
8c6a71ab | 9 | // Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch |
10 | //------------------------------------------------------- | |
8c6a71ab | 11 | |
b9d9108c | 12 | #include "TObject.h" |
aea7a46d | 13 | #include "AliPID.h" |
14 | ||
af885e0f | 15 | class AliESDEvent; |
aea7a46d | 16 | class AliESDtrack; |
8c6a71ab | 17 | |
b9d9108c | 18 | class AliTOFpidESD : public TObject { |
8c6a71ab | 19 | public: |
b9d9108c | 20 | AliTOFpidESD(); |
21 | AliTOFpidESD(Double_t *param); | |
22 | ~AliTOFpidESD(){} | |
23 | ||
24 | void SetTimeZero(Double_t t0) { fTime0=t0; } | |
25 | Double_t GetTimeZero() const { return fTime0; } | |
26 | ||
27 | void SetMaxMismatchProbability(Double_t p) {fPmax=p;} | |
28 | Double_t GetMaxMismatchProbability() const {return fPmax;} | |
29 | ||
af885e0f | 30 | Int_t MakePID(AliESDEvent *event); |
b9d9108c | 31 | Int_t MakePID(AliESDEvent *event, Double_t timeZero); |
aea7a46d | 32 | |
33 | Bool_t ExpectedSignals(const AliESDtrack *t, | |
34 | Double_t s[], | |
35 | Int_t n=AliPID::kSPECIES) const; | |
36 | Bool_t ExpectedSigmas(const AliESDtrack *t, | |
37 | Double_t s[], | |
38 | Int_t n=AliPID::kSPECIES) const; | |
39 | Bool_t NumberOfSigmas(const AliESDtrack *t, | |
40 | Double_t s[], | |
41 | Int_t n=AliPID::kSPECIES) const; | |
42 | ||
43 | Double_t GetExpectedSignal(const AliESDtrack *t, | |
44 | AliPID::EParticleType n=AliPID::kKaon) const; | |
45 | Double_t GetExpectedSigma(const AliESDtrack *t, | |
46 | AliPID::EParticleType n=AliPID::kKaon) const; | |
47 | Double_t GetNumberOfSigmas(const AliESDtrack *t, | |
48 | AliPID::EParticleType n=AliPID::kKaon) const; | |
49 | ||
8c6a71ab | 50 | private: |
b9d9108c | 51 | Double_t GetMismatchProbability(Double_t p,Double_t mass) const; |
aea7a46d | 52 | |
b9d9108c | 53 | Double_t fSigma; // intrinsic TOF resolution |
54 | Double_t fRange; // one particle type PID range (in sigmas) | |
55 | Double_t fPmax; // "maximal" probability of mismathing (at ~0.5 GeV/c) | |
56 | Double_t fTime0; // time zero | |
aea7a46d | 57 | |
b9d9108c | 58 | ClassDef(AliTOFpidESD,3) // TOF PID class |
8c6a71ab | 59 | }; |
60 | ||
61 | #endif |