Added charge to the clusters tree
[u/mrichter/AliRoot.git] / ITS / UPGRADE / AliITSURecoSens.cxx
CommitLineData
a11ef2e4 1#include "AliITSURecoSens.h"
2#include "AliITSUGeomTGeo.h"
3#include "AliITSsegmentation.h"
c61e50c3 4#include "AliExternalTrackParam.h"
a11ef2e4 5
6ClassImp(AliITSURecoSens)
7
8//______________________________________________________
9AliITSURecoSens::AliITSURecoSens(Int_t id)
32d38de2 10: fNClusters(0)
11 ,fFirstClusterId(-1)
12 ,fXTF(0)
a11ef2e4 13 ,fPhiTF(0)
14 ,fPhiMin(0)
15 ,fPhiMax(0)
16 ,fZMin(0)
17 ,fZMax(0)
18{
19 // def. c-tor
20 SetID(id);
21 for (int i=kNNeighbors;i--;) fNeighbors[i] = -1;
22}
23
24//______________________________________________________
25AliITSURecoSens::AliITSURecoSens(const AliITSURecoSens &source)
26 :TObject(source)
32d38de2 27 ,fNClusters(source.fNClusters)
28 ,fFirstClusterId(source.fFirstClusterId)
a11ef2e4 29 ,fXTF(source.fXTF)
30 ,fPhiTF(source.fPhiTF)
31 ,fPhiMin(source.fPhiMin)
32 ,fPhiMax(source.fPhiMax)
33 ,fZMin(source.fZMin)
34 ,fZMax(source.fZMax)
35{
36 // copy c-tor
37 for (int i=kNNeighbors;i--;) fNeighbors[i] = source.fNeighbors[i];
38}
39
40//______________________________________________________
41AliITSURecoSens& AliITSURecoSens::operator=(const AliITSURecoSens &source)
42{
43 // = operator
44 if (&source==this) return *this;
45 TObject::operator=(source);
32d38de2 46 fNClusters = source.fNClusters;
47 fFirstClusterId = source.fFirstClusterId;
a11ef2e4 48 fXTF = source.fXTF;
49 fPhiTF = source.fPhiTF;
50 fPhiMin = source.fPhiMin;
51 fPhiMax = source.fPhiMax;
52 fZMin = source.fZMin;
53 fZMax = source.fZMax;
54 //
55 for (int i=kNNeighbors;i--;) fNeighbors[i] = source.fNeighbors[i];
56 return *this;
57}
58
59//______________________________________________________
60void AliITSURecoSens::SetBoundaries(double phiMn,double phiMx, double zMn, double zMx)
61{
62 // set phi,z limits
63 fPhiMin = phiMn;
64 fPhiMax = phiMx;
65 fZMin = zMn;
66 fZMax = zMx;
67}
68
69//______________________________________________________
70void AliITSURecoSens::Print(Option_t*) const
71{
72 //print
73 printf("Sensor%4d xTF=%+.3e phiTF=%+.3e | Phi:[%5.3f:%5.3f] Z:[%+7.3f:%+7.3f]| Neighb.:",
74 GetID(),GetXTF(),GetPhiTF(), fPhiMin,fPhiMax, fZMin,fZMax);
75 for (int i=0;i<kNNeighbors;i++) printf(" %4d",fNeighbors[i]); printf("\n");
76}
77
32d38de2 78//______________________________________________________
79void AliITSURecoSens::ResetClusters()
80{
81 // discard old clusters
82 fNClusters = 0;
83 fFirstClusterId = -1;
84}
85
86//______________________________________________________
87void AliITSURecoSens::ProcessClusters(Int_t)
88{
89 // create structures for fast finding
90 //
91 // to do
92}