]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TPC/TPCbase/AliComplexCluster.cxx
Update timestamps for new AMANDA simulation (17/02/2015)
[u/mrichter/AliRoot.git] / TPC / TPCbase / AliComplexCluster.cxx
1 /**************************************************************************
2  * Copyright(c) 1998-1999, 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 /// \class AliComplexCluster
17 ///
18 /// Time Projection Chamber clusters objects
19 ///
20 /// \author Marian Ivanov, GSI Darmstadt
21 ///
22 /// * Revision 1.9  2006/11/06 16:07:15  kowal2
23 /// Eff C++
24 ///
25 /// * Revision 1.8  2004/03/30 14:09:22  kowal2
26 /// Changes due to the coding conventions
27 ///
28 /// * Revision 1.7  2003/11/24 09:48:28  kowal2
29 /// Changes to obey the coding conventions
30 ///
31 /// * Revision 1.6  2003/11/24 09:43:03  kowal2
32 /// Obsolete - removed
33 ///
34 /// * Revision 1.5  2003/09/29 11:27:39  kowal2
35 /// new classes added
36 ///
37 /// * Revision 1.3  2002/11/15 14:27:45  hristov
38 /// First version of the parallel TPC tracking (M.Ivanov)
39 ///
40 /// * Revision 1.2  2001/02/05 14:43:13  hristov
41 /// Compare() declared const
42 ///
43 /// * Revision 1.1  2000/10/05 16:17:27  kowal2
44 /// New class replacing AliCluster
45
46 #include "AliComplexCluster.h"
47
48 /// \cond CLASSIMP
49 ClassImp(AliComplexCluster)
50 /// \endcond
51
52   AliComplexCluster::AliComplexCluster()
53                     :TObject(),
54                      fX(0.),
55                      fY(0.),
56                      fQ(0.),
57                      fSigmaX2(0.),
58                      fSigmaY2(0.),
59                      fSigmaXY(0.),
60                      fArea(0.),
61                      fMax(0.)
62 {
63   /// default constructor
64    fTracks[0]=fTracks[1]=fTracks[2]=0;
65 }
66 //_____________________________________________________________________________
67 Int_t AliComplexCluster::Compare(const TObject * o) const
68 {
69   /// compare two clusters according y coordinata
70
71   AliComplexCluster *cl= (AliComplexCluster *)o;
72   if (fY<cl->fY) return -1;
73   if (fY==cl->fY) return 0;
74   return 1;
75 }
76
77 Bool_t AliComplexCluster::IsSortable() const
78 {
79   /// make AliComplexCluster sortabale
80
81   return kTRUE;
82 }
83
84 ClassImp(AliTPCExactPoint)
85 ClassImp(AliTPCClusterPoint)
86 ClassImp(AliTPCTrackerPoint)
87
88 AliTPCTrackerPoint& AliTPCTrackerPoint::operator=(const AliTPCTrackerPoint& o){
89   if(this!=&o){
90     fTX = o.fTX;
91     fTY = o.fTY;
92     fTZ = o.fTZ;
93     fTAngleZ = o.fTAngleZ;
94     fTAngleY = o.fTAngleY;
95     fSigmaZ = o.fSigmaZ;
96     fSigmaY = o.fSigmaY;
97     fErrZ   = o.fErrZ;
98     fErrY   = o.fErrY;
99     fIsShared = o.fIsShared;
100   }
101   return *this;
102 }
103
104 /// \cond CLASSIMP
105 ClassImp(AliTPCTrackPoint)
106 ClassImp(AliTPCTrackPoint2)
107 /// \endcond