]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/UPGRADE/AliITSUpgradeClusterListNode.cxx
track labels added
[u/mrichter/AliRoot.git] / ITS / UPGRADE / AliITSUpgradeClusterListNode.cxx
1 /**************************************************************************
2  * Copyright(c) 2004-2006, 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 // Author:A.Mastroserio C.Terrevoli                                 //
20 //        annalisa.mastroserio@cern.ch                              //
21 //        cristina.terrevoli@ba.infn.it                             //
22 //                                                                  //
23 // Implementation of the nodes to put in the cluster list           //
24 //                                                                  //
25 //////////////////////////////////////////////////////////////////////   
26
27 #include "AliITSUpgradeClusterListNode.h"
28
29 AliITSUpgradeClusterListNode::AliITSUpgradeClusterListNode():
30   fCol(0),
31   fRow(0),
32   fSize(0),
33   fWidthZ(0),
34   fWidthPhi(0),
35   fType(0),
36   fCharge(0),
37   fLastDigitLabel(0),
38   fNext(NULL)
39 {
40 for(Int_t i=0; i < 10; i++) fDigitLabel[i]=-2;
41 }
42
43 AliITSUpgradeClusterListNode::AliITSUpgradeClusterListNode(Float_t col, Float_t row, UShort_t size, UShort_t widthZ, UShort_t widthPhi, UShort_t type, UShort_t charge, AliITSUpgradeClusterListNode* next):
44   fCol(col),
45   fRow(row),
46   fSize(size),
47   fWidthZ(widthZ),
48   fWidthPhi(widthPhi),
49   fType(type),
50   fCharge(charge),
51   fLastDigitLabel(0),
52   fNext(next)
53 {
54 for(Int_t i=0; i < 10; i++) fDigitLabel[i]=-2;
55
56 }
57
58 AliITSUpgradeClusterListNode::AliITSUpgradeClusterListNode(const AliITSUpgradeClusterListNode& obj):
59   fCol(obj.fCol),
60   fRow(obj.fRow),
61   fSize(obj.fSize),
62   fWidthZ(obj.fWidthZ),
63   fWidthPhi(obj.fWidthPhi),
64   fType(obj.fType),
65   fCharge(obj.fCharge),
66   fLastDigitLabel(obj.fLastDigitLabel),
67   fNext(obj.fNext)
68 {
69   // copy constructor
70 for(Int_t i=0; i> 1000; i++) fDigitLabel[i]=obj.fDigitLabel[i];
71 }
72
73 AliITSUpgradeClusterListNode::~AliITSUpgradeClusterListNode() 
74 {}
75
76 AliITSUpgradeClusterListNode& AliITSUpgradeClusterListNode::operator=(const AliITSUpgradeClusterListNode& obj) 
77 {
78   // assignment operator
79   if (this!=&obj) {
80     fCol = obj.fCol;
81     fRow = obj.fRow;
82     fSize = obj.fSize;
83     fWidthZ = obj.fWidthZ;
84     fWidthPhi = obj.fWidthPhi;
85     fType = obj.fType;
86     fCharge = obj.fCharge;
87     fNext = obj.fNext;
88   }
89   return *this;
90 }
91