]>
Commit | Line | Data |
---|---|---|
1 | #ifndef ALITOFPIDESD_H | |
2 | #define ALITOFPIDESD_H | |
3 | ||
4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7 | //------------------------------------------------------- | |
8 | // TOF PID class | |
9 | // Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch | |
10 | //------------------------------------------------------- | |
11 | ||
12 | #include "TObject.h" | |
13 | #include "AliPID.h" | |
14 | ||
15 | class AliESDEvent; | |
16 | class AliESDtrack; | |
17 | ||
18 | class AliTOFpidESD : public TObject { | |
19 | public: | |
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 | ||
30 | Int_t MakePID(AliESDEvent *event); | |
31 | Int_t MakePID(AliESDEvent *event, Double_t timeZero); | |
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 | ||
50 | private: | |
51 | Double_t GetMismatchProbability(Double_t p,Double_t mass) const; | |
52 | ||
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 | |
57 | ||
58 | ClassDef(AliTOFpidESD,3) // TOF PID class | |
59 | }; | |
60 | ||
61 | #endif |