]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/UPGRADE/v0/AliITSUPixelModule.cxx
Merge branch 'master' into dev
[u/mrichter/AliRoot.git] / ITS / UPGRADE / v0 / AliITSUPixelModule.cxx
CommitLineData
0ac80088 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// //
17// Base Class used to find //
18// the reconstructed points for ITS Upgrade //
19// //
20////////////////////////////////////////////////////////////////////////////
21
22
23#include "AliITSUPixelModule.h"
24
25
26AliITSUPixelModule::AliITSUPixelModule():
27 TObject(),
28 fCharge(0),
29 fModule(0),
30 fCol(0),
31 fRow(0)
32{
33 //
34 // Default constructor
35 //
9b615954 36 for(Int_t i=0;i<kMaxLab;i++)fLabels[i]=-1;
0ac80088 37}
38//_______________________________________________
9b615954 39AliITSUPixelModule::AliITSUPixelModule( UShort_t mod, UInt_t col, UInt_t row, UInt_t charge, Int_t lab[kMaxLab]):
0ac80088 40 TObject(),
41 fCharge(charge),
42 fModule(mod),
43 fCol(col),
44 fRow(row)
45{
46 //
47 // Constructor
48 //
9b615954 49 for(Int_t i=0;i<kMaxLab;i++)fLabels[i]=lab[i];
0ac80088 50}
51//____________________________________________
9b615954 52void AliITSUPixelModule::SetLabels(Int_t lab[kMaxLab]){
0ac80088 53 // Setter for cluster labels
9b615954 54 for(Int_t i=0;i<kMaxLab;i++)fLabels[i]=lab[i];
0ac80088 55}
56//_______________________________________________
57void AliITSUPixelModule::PrintInfo(){
58 //
59 // printout method for debugging
60 //
9b615954 61 printf(" module %d col %i row %i charge %i \n -> labels %i, %i, %i, ", fModule, fCol, fRow,fCharge, fLabels[0], fLabels[1], fLabels[2]);
62 for (Int_t i=3;i<kMaxLab;i++) printf("%i, ",fLabels[i]);
63 printf("\n");
64
0ac80088 65}
66
67
68