]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliCluster.cxx
Taking into account the dE/dx crossing points in the TPC (Yu.Belikov)
[u/mrichter/AliRoot.git] / STEER / AliCluster.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 /* $Id$ */
17
18 //-------------------------------------------------------------------------
19 //               Implementation of the Cluster class
20 // that is the base for AliTPCcluster, AliITSclusterV2 and AliTRDcluster
21 //      Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch
22 //-------------------------------------------------------------------------
23
24 #include "AliCluster.h"
25
26 ClassImp(AliCluster)
27  
28 //_____________________________________________________________________________
29 AliCluster::AliCluster(): 
30   fY(0), fZ(0), fSigmaY2(0), fSigmaZ2(0) 
31 {
32   //
33   //default constructor
34   //
35   fTracks[0]=fTracks[1]=fTracks[2]=-3141593; 
36 }
37
38 //_____________________________________________________________________________
39 AliCluster::AliCluster(Int_t *lab, Float_t *hit): 
40   fY(hit[0]), fZ(hit[1]), fSigmaY2(hit[2]), fSigmaZ2(hit[3]) 
41 {
42   //
43   // Creates a simulated cluster
44   //
45   fTracks[0]  = lab[0];
46   fTracks[1]  = lab[1];
47   fTracks[2]  = lab[2];
48 }