Bug fix. Removed delete statement
[u/mrichter/AliRoot.git] / STEER / AliAODPid.h
1 #ifndef AliAODPid_H
2 #define AliAODPid_H
3 /* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $Id$ */
7
8 //-------------------------------------------------------------------------
9 //     AOD Pid object for additional pid information
10 //     Author: Annalisa Mastroserio, CERN
11 //-------------------------------------------------------------------------
12
13 #include <TObject.h>
14
15 class AliAODPid : public TObject {
16
17  public:
18   AliAODPid();
19   virtual ~AliAODPid();
20   AliAODPid(const AliAODPid& pid); 
21   AliAODPid& operator=(const AliAODPid& pid);
22   
23   enum{kSPECIES=5, kTRDnPlanes=6};
24
25  //setters
26   void      SetITSsignal(Double_t its)                         {fITSsignal=its;}
27   void      SetTPCsignal(Double_t tpc)                         {fTPCsignal=tpc;}
28   void      SetTRDsignal(Int_t nslices, Double_t* trdslices)   {fTRDnSlices = nslices; fTRDslices=trdslices;}
29   void      SetTOFsignal(Double_t tof)                         {fTOFesdsignal=tof;}
30   void      SetIntegratedTimes(Double_t timeint[5]);
31   void      SetHMPIDsignal(Double_t hmpid)                     {fHMPIDsignal=hmpid;}
32   void      SetEMCALPosition(Double_t emcalpos[3]);
33   void      SetEMCALMomentum(Double_t emcalmom[3]);
34
35   Double_t  GetITSsignal()       {return  fITSsignal;}
36   Double_t  GetTPCsignal()       {return  fTPCsignal;}
37   Int_t     GetTRDnSlices()      {return  fTRDnSlices;}
38   Double_t* GetTRDsignal()       {return  fTRDslices;}
39   Double_t  GetTOFsignal()       {return  fTOFesdsignal;} 
40   void      GetIntegratedTimes(Double_t timeint[5]); 
41   Double_t  GetHMPIDsignal()     {return  fHMPIDsignal;}
42   void      GetEMCALPosition(Double_t emcalpos[3]);
43   void      GetEMCALMomentum(Double_t emcalmom[3]);
44
45  private :
46   Double32_t fITSsignal;        //[0.,0.,10] detector raw signal
47   Double32_t fTPCsignal;        //[0.,0.,10] detector raw signal
48   Int_t      fTRDnSlices;       //N slices used for PID in the TRD
49   Double32_t* fTRDslices;       //[fTRDnSlices]
50   Double32_t fTOFesdsignal;     //TOF signal - t0 (T0 interaction time)
51   Double32_t fIntTime[5];       //track time hypothesis
52   Double32_t fHMPIDsignal;      //detector raw signal
53   Double32_t fEMCALPosition[3]; //global position of track
54                                 //extrapolated to EMCAL surface
55   Double32_t fEMCALMomentum[3]; //momentum of track
56                                 //extrapolated to EMCAL surface
57
58   ClassDef(AliAODPid,2);
59 };
60
61 #endif