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 */
8 //-------------------------------------------------------
9 // ITS PID response class
12 //-------------------------------------------------------
17 class AliITSPIDResponse : public TObject {
20 AliITSPIDResponse(Bool_t isMC=kFALSE);
21 AliITSPIDResponse(Double_t *param);
22 ~AliITSPIDResponse() {}
23 Double_t BetheAleph(Double_t p,Double_t mass) const;
24 Double_t Bethe(Double_t p, Double_t mass, Bool_t iSA=kFALSE) const;
25 Double_t GetResolution(Double_t bethe, Int_t nPtsForPid=4, Bool_t isSA=kFALSE) const;
26 void GetITSProbabilities(Float_t mom, Double_t qclu[4], Double_t condprobfun[AliPID::kSPECIES]) const;
27 Float_t GetNumberOfSigmas(Float_t mom, Float_t signal, AliPID::EParticleType type, Int_t nPtsForPid=4, Bool_t isSA=kFALSE) const {
28 Float_t bethe = Bethe(mom,AliPID::ParticleMass(type),isSA);
29 return (signal - bethe)/GetResolution(bethe,nPtsForPid,isSA);
35 // Data members for truncated mean method
36 Float_t fRes; // relative dEdx resolution
37 Double_t fKp1; // ALEPH BB param 1
38 Double_t fKp2; // ALEPH BB param 2
39 Double_t fKp3; // ALEPH BB param 3
40 Double_t fKp4; // ALEPH BB param 4
41 Double_t fKp5; // ALEPH BB param
42 Double_t fBBsa[5]; // parameters of BB for SA tracks
43 Double_t fBBtpcits[5]; // parameters of BB for TPC+ITS tracks
44 Float_t fResolSA[5]; // resolutions vs. n. of SDD/SSD points
45 Float_t fResolTPCITS[5]; // resolutions vs. n. of SDD/SSD points
47 ClassDef(AliITSPIDResponse,2) // ITS PID class