]>
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> | |
15 | ||
16 | #include "AliPID.h" | |
17 | ||
18 | class AliITSPIDResponse : public TObject { | |
19 | ||
20 | public: | |
21 | AliITSPIDResponse(); | |
22 | AliITSPIDResponse(Double_t *param); | |
23 | ~AliITSPIDResponse() {} | |
24 | Double_t Bethe(Double_t p,Double_t mass) const; | |
25 | Double_t GetResolution(Double_t bethe) 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) const { | |
28 | Float_t bethe = Bethe(mom,AliPID::ParticleMass(type)); | |
29 | return (signal - bethe)/GetResolution(bethe); | |
30 | } | |
31 | ||
32 | private: | |
33 | ||
34 | // Data members for truncated mean method | |
10d100d4 | 35 | Float_t fRes; // relative dEdx resolution |
36 | Double_t fKp1; // ALEPH BB param 1 | |
37 | Double_t fKp2; // ALEPH BB param 2 | |
38 | Double_t fKp3; // ALEPH BB param 3 | |
39 | Double_t fKp4; // ALEPH BB param 4 | |
40 | Double_t fKp5; // ALEPH BB param 5 | |
41 | ||
42 | ClassDef(AliITSPIDResponse,1) // ITS PID class | |
43 | }; | |
44 | ||
45 | #endif | |
46 | ||
47 |