3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 ///////////////////////////////////////////////////////////////////////////////
12 // Alex Bercuci <A.Bercuci@gsi.de> //
13 // Alex Wilk <wilka@uni-muenster.de> //
14 // Prashant Shukla <shukla@pi0.physi.uni-heidelberg.de> //
16 ///////////////////////////////////////////////////////////////////////////////
22 class AliTRDCalPID : public TNamed
33 AliTRDCalPID(const Text_t *name, const Text_t *title);
34 virtual ~AliTRDCalPID();
36 virtual Bool_t LoadReferences(Char_t *refFile) = 0;
37 static Double_t GetMomentum(Int_t ip)
38 { return (ip<0 || ip>=kNMom)
42 virtual TObject *GetModel(Int_t ip, Int_t iType, Int_t iPlane) const = 0;
43 virtual Double_t GetProbability(Int_t spec, Float_t mom, Float_t *dedx
44 , Float_t length, Int_t plane) const = 0;
45 static Char_t *GetPartName(Int_t i) { return fPartName[i]; }
46 static Char_t *GetPartSymb(Int_t i) { return fPartSymb[i]; }
48 void SetPartName(Int_t i, Char_t *name) { fPartName[i] = name; }
49 void SetPartSymb(Int_t i, Char_t *symb) { fPartSymb[i] = symb; }
53 virtual void Init() = 0;
54 virtual Int_t GetModelID(Int_t mom, Int_t spec, Int_t plane) const = 0;
58 AliTRDCalPID(const AliTRDCalPID& pd);
59 AliTRDCalPID &operator=(const AliTRDCalPID &c);
63 static Char_t *fPartName[5]; //! Names of particle species
64 static Char_t *fPartSymb[5]; //! Symbols of particle species
66 static Float_t fTrackMomentum[kNMom]; // Track momenta for which response functions are available
67 TObjArray *fModel; // Model for probability estimate
69 ClassDef(AliTRDCalPID, 3) // Base class for TRD PID methods