fTRDsignal is added to AliAODPid class (copied from AliESDtrack).
[u/mrichter/AliRoot.git] / STEER / AOD / AliAODFmdCluster.cxx
1 /**************************************************************************
2  * Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
3  *                                                                        *
4  * Author: The ALICE Off-line Project.                                    *
5  * Contributors are mentioned in the code where appropriate.              *
6  *                                                                        *
7  * Permission to use, copy, modify and distribute this software and its   *
8  * documentation strictly for non-commercial purposes is hereby granted   *
9  * without fee, provided that the above copyright notice appears in all   *
10  * copies and that both the copyright notice and this permission notice   *
11  * appear in the supporting documentation. The authors make no claims     *
12  * about the suitability of this software for any purpose. It is          *
13  * provided "as is" without express or implied warranty.                  *
14  **************************************************************************/
15
16 /* $Id$ */
17
18 //-------------------------------------------------------------------------
19 //     AOD FMD cluster class
20 //     Author: Markus Oldenburg, CERN
21 //-------------------------------------------------------------------------
22
23 #include "AliAODFmdCluster.h"
24
25 ClassImp(AliAODFmdCluster)
26   
27 //______________________________________________________________________________
28 AliAODFmdCluster::AliAODFmdCluster() : 
29   AliAODCluster(),
30   fProdVertex(NULL),
31   fPrimTrack(NULL)
32 {
33   // default constructor
34 }
35
36 //______________________________________________________________________________
37 AliAODFmdCluster::AliAODFmdCluster(Int_t id,
38                                    Int_t nLabel,
39                                    Int_t *label, 
40                                    Double_t energy,
41                                    Double_t x[3],
42                                    Double_t pid[9],
43                                    Char_t ttype,
44                                    AliAODVertex *prodVertex,
45                                    AliAODTrack *primTrack) :
46   AliAODCluster(id, nLabel, label, energy, x, pid, ttype),
47   fProdVertex(prodVertex),
48   fPrimTrack(primTrack)
49 {
50   // constructor
51 }
52
53 //______________________________________________________________________________
54 AliAODFmdCluster::AliAODFmdCluster(Int_t id,
55                                    Int_t nLabel,
56                                    Int_t *label, 
57                                    Float_t energy,
58                                    Float_t x[3],
59                                    Float_t pid[9],
60                                    Char_t ttype,
61                                    AliAODVertex *prodVertex,
62                                    AliAODTrack *primTrack) :
63   AliAODCluster(id, nLabel, label, energy, x, pid, ttype),
64   fProdVertex(prodVertex),
65   fPrimTrack(primTrack)
66 {
67   // constructor
68 }
69
70
71 //______________________________________________________________________________
72 AliAODFmdCluster::~AliAODFmdCluster() 
73 {
74   // destructor
75 }
76
77
78 //______________________________________________________________________________
79 AliAODFmdCluster::AliAODFmdCluster(const AliAODFmdCluster& clus) :
80   AliAODCluster(clus),
81   fProdVertex(clus.fProdVertex),
82   fPrimTrack(clus.fPrimTrack)
83 {
84   // Copy constructor
85 }
86
87 //______________________________________________________________________________
88 AliAODFmdCluster& AliAODFmdCluster::operator=(const AliAODFmdCluster& clus)
89 {
90   // Assignment operator
91   if(this!=&clus) {
92
93     AliAODCluster::operator=(clus);
94
95     fProdVertex = clus.fProdVertex;
96     fPrimTrack = clus.fPrimTrack;
97   }
98
99   return *this;
100 }