]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/Cal/AliTRDCalPIDLQ.h
introduce tracking efficiency for each species
[u/mrichter/AliRoot.git] / TRD / Cal / AliTRDCalPIDLQ.h
1 #ifndef ALITRDCALPIDLQ_H
2 #define ALITRDCALPIDLQ_H
3
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice                               */
6
7 /* $Id$ */
8
9 ////////////////////////////////////////////////////////////////////////////
10 //                                                                        //
11 // PID distributions for the LQ method                                    //
12 //                                                                        //
13 // Author:                                                                //
14 // Alex Bercuci <A.Bercuci@gsi.de>                                        //
15 //                                                                        //          
16 ////////////////////////////////////////////////////////////////////////////
17
18 #ifndef ALITRDCALPID_H
19 #include "AliTRDCalPID.h"
20 #endif
21
22 class AliTRDCalPIDLQ : public AliTRDCalPID
23 {
24
25  public:
26
27   enum {
28     kNLength = 4
29   };
30         
31   AliTRDCalPIDLQ();
32   AliTRDCalPIDLQ(const Text_t *name, const Text_t *title);
33   virtual        ~AliTRDCalPIDLQ();
34
35   Bool_t          LoadReferences(Char_t* refFile);
36   TObject*        GetModel(Int_t ip, Int_t iType, Int_t iPlane) const;
37   static Double_t GetLength(Int_t il) { return (il<0 || il>=kNLength) ? -1. : fTrackSegLength[il]; }
38          Double_t GetProbability(Int_t spec, Float_t mom, Float_t *dedx
39                                , Float_t length, Int_t plane) const;
40
41  private:
42
43   AliTRDCalPIDLQ(const AliTRDCalPIDLQ& pd);
44   AliTRDCalPIDLQ&   operator=(const AliTRDCalPIDLQ &c);
45
46   void     Init();
47   Int_t    GetModelID(Int_t mom, Int_t , Int_t) const;
48
49  protected:
50
51   static Float_t  fTrackSegLength[kNLength];  // Track segment lengths
52
53   ClassDef(AliTRDCalPIDLQ, 1)                 // LQ PID reference manager
54
55 };
56 #endif
57