Update of combined PID (T.Kuhr)
[u/mrichter/AliRoot.git] / TRD / AliTRDPartID.h
CommitLineData
79e94bf8 1#ifndef ALITRDPARTID_H
2#define ALITRDPARTID_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6#include <TObject.h>
7
8class AliESDtrack;
9class TProfile;
10class TF1;
11
12
13class AliTRDPartID: public TObject {
14 public:
15 AliTRDPartID();
16 AliTRDPartID(TF1* betheBloch, Double_t res, Double_t range);
17 virtual ~AliTRDPartID();
18
19 Bool_t MakePID(AliESDtrack* track);
20
21 void FitBetheBloch(TProfile* dEdxVsBetaGamma);
22 inline TF1* GetBetheBloch() {return fBetheBloch;};
23 TF1* CreateBetheBloch(Double_t mass);
24
4db7f8b6 25 static AliTRDPartID* GetFromFile(const char* fileName = "pid.root");
26
79e94bf8 27 private:
28 static Double_t fcnBetheBloch(Double_t* xx, Double_t* par);
29 static Double_t fcnBetheBlochMass(Double_t* xx, Double_t* par);
30
31 TF1* fBetheBloch; // parametrized bethe bloch function
32 Double_t fRes; // relative dE/dx resolution
33 Double_t fRange; // cut off in standard deviations
34
35 ClassDef(AliTRDPartID,1) // TRD PID class
36};
37
38#endif
39
40