New class AliESDEvent, backward compatibility with the old AliESD (Christian)
[u/mrichter/AliRoot.git] / TRD / AliTRDpidESD.h
CommitLineData
b0f03c34 1#ifndef ALITRDPIDESD_H
2#define ALITRDPIDESD_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
b52cb1b6 6/* $Id$ */
7
8////////////////////////////////////////////////////////////////////////////
9// //
10// Assigns the PID probabilities based on TRD information to the ESDs //
11// //
12////////////////////////////////////////////////////////////////////////////
13
b0f03c34 14#include <Rtypes.h>
15
b52cb1b6 16#include <TObject.h>
17
af885e0f 18class AliESDEvent;
dab811d0 19class AliESDtrack;
c6011b06 20class AliExternalTrackParam;
b52cb1b6 21class AliTRDpidESD : public TObject {
22
23 public:
24
25 AliTRDpidESD();
26 AliTRDpidESD(const AliTRDpidESD &p);
c6011b06 27 virtual ~AliTRDpidESD();
b52cb1b6 28 AliTRDpidESD &operator=(const AliTRDpidESD &p);
29
30 virtual void Copy(TObject &p) const;
dab811d0 31 static Bool_t CheckTrack(AliESDtrack *t);
af885e0f 32 Int_t MakePID(AliESDEvent *event);
b52cb1b6 33
34 void SetCheckTrackStatus(Bool_t status = kTRUE) { fCheckTrackStatus = status; };
35 void SetCheckKinkStatus(Bool_t status = kTRUE) { fCheckKinkStatus = status; };
36 void SetMinPlane(Int_t plane) { fMinPlane = plane; };
37
38 Bool_t GetCheckTrackStatus() { return fCheckTrackStatus; };
39 Bool_t GetCheckKinkStatus() { return fCheckKinkStatus; };
40 Int_t GetMinPlane() { return fMinPlane; };
c6011b06 41
42private:
43 Bool_t RecalculateTrackSegmentKine(AliESDtrack *t, Int_t plan, Float_t &mom, Float_t &length);
44
45private:
b52cb1b6 46
47 static Bool_t fCheckTrackStatus; // Enable check on ESD track status
48 static Bool_t fCheckKinkStatus; // Enable check on ESD kink track
49 static Int_t fMinPlane; // Minimum number of planes
50
c6011b06 51 AliExternalTrackParam *fTrack; //! Memory holder for Track segment calculations
52
b52cb1b6 53 ClassDef(AliTRDpidESD,2) // TRD PID class
54
b0f03c34 55};
56
57#endif
58
59