Bug fix. Removed delete statement
[u/mrichter/AliRoot.git] / STEER / AliAODFmdCluster.h
1 #ifndef AliAODFmdCluster_H
2 #define AliAODFmdCluster_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 FMD cluster class
10 //     Author: Markus Oldenburg, CERN
11 //-------------------------------------------------------------------------
12
13 #include <TRef.h>
14
15 #include "AliAODCluster.h"
16 #include "AliAODTrack.h"
17
18 class AliAODFmdCluster : public AliAODCluster {
19
20  public:
21   
22   AliAODFmdCluster();
23   AliAODFmdCluster(Int_t id,
24                    Int_t nLabel,
25                    Int_t *label,
26                    Double_t energy,
27                    Double_t x[3],
28                    Double_t pid[9],
29                    Char_t ttype=kUndef,
30                    AliAODVertex *prodVertex=NULL,
31                    AliAODTrack *primTrack=NULL);
32
33    AliAODFmdCluster(Int_t id,
34                     Int_t nLabel,
35                     Int_t *label,
36                     Float_t energy,
37                     Float_t x[3],
38                     Float_t pid[9],
39                     Char_t ttype=kUndef,
40                     AliAODVertex *prodVertex=NULL,
41                     AliAODTrack *primTrack=NULL);
42
43   virtual ~AliAODFmdCluster();
44   AliAODFmdCluster(const AliAODFmdCluster& trk); 
45   AliAODFmdCluster& operator=(const AliAODFmdCluster& trk);
46
47   AliAODVertex *GetProdVertex() const { return (AliAODVertex*)fProdVertex.GetObject(); }
48   AliAODTrack *GetPrimTrack() const { return (AliAODTrack*)fPrimTrack.GetObject(); }
49   
50   void SetProdVertex(AliAODVertex *vertex) { fProdVertex = vertex; }
51   void SetPrimTrack(AliAODTrack *ptrack) { fPrimTrack = ptrack; }
52
53
54  private :
55
56   TRef fProdVertex;     // vertex of origin
57   TRef fPrimTrack;      // primary track associated with this cluster
58
59   ClassDef(AliAODFmdCluster,1);
60 };
61
62 #endif