]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TRD/Cal/AliTRDCalPIDLQ.h
Bug fix for the fitting at the SHUTTLE of the average pulse height
[u/mrichter/AliRoot.git] / TRD / Cal / AliTRDCalPIDLQ.h
CommitLineData
44dbae42 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
44dbae42 18#include "AliTRDCalPID.h"
44dbae42 19
e7d6a389 20class TDirectoryFile;
44dbae42 21class AliTRDCalPIDLQ : public AliTRDCalPID
22{
23
24 public:
25
26 enum {
27 kNLength = 4
28 };
29
30 AliTRDCalPIDLQ();
31 AliTRDCalPIDLQ(const Text_t *name, const Text_t *title);
32 virtual ~AliTRDCalPIDLQ();
33
e7d6a389 34 Bool_t LoadPDF(TDirectoryFile *);
44dbae42 35 Bool_t LoadReferences(Char_t* refFile);
36 TObject* GetModel(Int_t ip, Int_t iType, Int_t iPlane) const;
2e32a5ae 37 static Double_t GetLength(Int_t il) { return (il<0 || il>=kNLength) ? -1. : fgTrackSegLength[il]; }
1fcc78b7 38 Double_t GetProbability(Int_t spec, Float_t mom
39 , const Float_t * const dedx
44dbae42 40 , Float_t length, Int_t plane) const;
41
2e32a5ae 42 protected:
43
44 static Float_t fgTrackSegLength[kNLength]; // Track segment lengths
45
44dbae42 46 private:
47
48 AliTRDCalPIDLQ(const AliTRDCalPIDLQ& pd);
49 AliTRDCalPIDLQ& operator=(const AliTRDCalPIDLQ &c);
50
51 void Init();
2e32a5ae 52 Int_t GetModelID(Int_t mom, Int_t spec, Int_t ii) const;
44dbae42 53
2e32a5ae 54 ClassDef(AliTRDCalPIDLQ, 2) // LQ PID reference manager
44dbae42 55
56};
57#endif
58