]>
Commit | Line | Data |
---|---|---|
10d100d4 | 1 | #ifndef ALIITSPIDRESPONSE_H |
2 | #define ALIITSPIDRESPONSE_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
7 | ||
8 | //------------------------------------------------------- | |
9 | // ITS PID response class | |
10 | // | |
11 | // | |
12 | //------------------------------------------------------- | |
13 | //#include <Rtypes.h> | |
14 | #include <TObject.h> | |
10d100d4 | 15 | #include "AliPID.h" |
16 | ||
567624b5 | 17 | class AliVTrack; |
18 | ||
10d100d4 | 19 | class AliITSPIDResponse : public TObject { |
20 | ||
21 | public: | |
15e979c9 | 22 | AliITSPIDResponse(Bool_t isMC=kFALSE); |
56576f1e | 23 | //AliITSPIDResponse(Double_t *param); |
10d100d4 | 24 | ~AliITSPIDResponse() {} |
99daa709 | 25 | |
26 | void SetBetheBlochParamsITSTPC(Double_t* param){ | |
27 | for(Int_t iPar=0; iPar<5; iPar++) fBBtpcits[iPar]=param[iPar]; | |
28 | } | |
29 | void SetBetheBlochParamsITSsa(Double_t* param){ | |
30 | for(Int_t iPar=0; iPar<5; iPar++) fBBsa[iPar]=param[iPar]; | |
31 | } | |
62ccfebf | 32 | |
33 | void SetBetheBlochHybridParamsITSsa(Double_t* param){ | |
34 | for(Int_t iPar=0; iPar<9; iPar++) fBBsaHybrid[iPar]=param[iPar]; | |
35 | } | |
88f46717 | 36 | void SetElectronBetheBlochParamsITSsa(Double_t* param){ |
37 | for(Int_t iPar=0; iPar<5; iPar++) fBBsaElectron[iPar]=param[iPar]; | |
38 | } | |
99daa709 | 39 | |
15e979c9 | 40 | Double_t BetheAleph(Double_t p,Double_t mass) const; |
41 | Double_t Bethe(Double_t p, Double_t mass, Bool_t iSA=kFALSE) const; | |
62ccfebf | 42 | Double_t BetheITSsaHybrid(Double_t p, Double_t mass) const; |
15e979c9 | 43 | Double_t GetResolution(Double_t bethe, Int_t nPtsForPid=4, Bool_t isSA=kFALSE) const; |
b52bfc67 | 44 | void GetITSProbabilities(Float_t mom, Double_t qclu[4], Double_t condprobfun[AliPID::kSPECIES],Bool_t isMC=kFALSE) const; |
567624b5 | 45 | |
46 | Double_t GetNumberOfSigmas( const AliVTrack* track, AliPID::EParticleType species) const; | |
47 | ||
1d59271b | 48 | Double_t GetSignalDelta( const AliVTrack* track, AliPID::EParticleType species, Bool_t ratio=kFALSE) const; |
567624b5 | 49 | |
15e979c9 | 50 | Float_t GetNumberOfSigmas(Float_t mom, Float_t signal, AliPID::EParticleType type, Int_t nPtsForPid=4, Bool_t isSA=kFALSE) const { |
00a38d07 | 51 | const Double_t chargeFactor = TMath::Power(AliPID::ParticleCharge(type),2.); |
52 | Float_t bethe = Bethe(mom,AliPID::ParticleMassZ(type),isSA)*chargeFactor; | |
15e979c9 | 53 | return (signal - bethe)/GetResolution(bethe,nPtsForPid,isSA); |
54 | } | |
8abeb05b | 55 | Int_t GetParticleIdFromdEdxVsP(Float_t mom, Float_t signal, Bool_t isSA=kFALSE) const; |
10d100d4 | 56 | |
57 | private: | |
58 | ||
15e979c9 | 59 | |
10d100d4 | 60 | // Data members for truncated mean method |
15e979c9 | 61 | Float_t fRes; // relative dEdx resolution |
10d100d4 | 62 | Double_t fKp1; // ALEPH BB param 1 |
63 | Double_t fKp2; // ALEPH BB param 2 | |
64 | Double_t fKp3; // ALEPH BB param 3 | |
65 | Double_t fKp4; // ALEPH BB param 4 | |
15e979c9 | 66 | Double_t fKp5; // ALEPH BB param |
62ccfebf | 67 | Double_t fBBsa[5]; // parameters of BB for SA tracks |
68 | Double_t fBBsaHybrid[9]; // parameters of Hybrid BB for SA tracks, PHOB + Polinomial al low beta*gamma | |
69 | Double_t fBBsaElectron[5];// parameters of electron BB for SA tracks | |
15e979c9 | 70 | Double_t fBBtpcits[5]; // parameters of BB for TPC+ITS tracks |
71 | Float_t fResolSA[5]; // resolutions vs. n. of SDD/SSD points | |
72 | Float_t fResolTPCITS[5]; // resolutions vs. n. of SDD/SSD points | |
10d100d4 | 73 | |
62ccfebf | 74 | ClassDef(AliITSPIDResponse,4) // ITS PID class |
10d100d4 | 75 | }; |
76 | ||
77 | #endif | |
78 | ||
79 |