2 // Original: AliHLTVertexFinder.cxx,v 1.9 2005/06/14 10:55:21 cvetan
4 // Author: Uli Frankenfeld <mailto:franken@fi.uib.no>
5 //*-- Copyright © ALICE HLT Group
7 #include "AliHLTTPCSpacePointData.h"
8 #include "AliHLTTPCVertexData.h"
9 #include "AliHLTTPCLogging.h"
10 #include "AliHLTTPCVertexArray.h"
11 #include "AliHLTTPCVertex.h"
12 #include "AliHLTTPCVertexFinder.h"
13 #include "AliHLTTPCSpacePointData.h"
14 #include "AliHLTTPCTransform.h"
16 /** \class AliHLTTPCVertexFinder
18 //_____________________________________________________________
19 // AliHLTTPCVertexFinder
21 // Implementation of AliHLTTPCArray
25 // for(n=0;n<NMEMSEC;n++)
27 // FindSectorVertex();
28 // SetZ(GetZSector());
29 // SetZErr(GetZErrSector());
39 ClassImp(AliHLTTPCVertexFinder)
41 AliHLTTPCVertexFinder::AliHLTTPCVertexFinder()
54 // default constructor for the AliHLTTPCVertexFinder class.
60 AliHLTTPCVertexFinder::AliHLTTPCVertexFinder(AliHLTTPCVertexFinder &vf)
62 AliHLTTPCVertexArray(vf),
75 AliHLTTPCVertexFinder::~AliHLTTPCVertexFinder()
82 void AliHLTTPCVertexFinder::Reset()
91 void AliHLTTPCVertexFinder::Read(Int_t ncluster, AliHLTTPCSpacePointData* hits )
97 const Int_t kseedRow = AliHLTTPCTransform::GetNRows() - 1;
98 const Int_t kfirstRow = kseedRow-32;
99 for(Int_t n=0;n<ncluster;n++){
100 if(hits[n].fPadRow==kseedRow)
101 FillSectorSeed3D(hits[n].fX,hits[n].fY,hits[n].fZ); //copy seeds in 3D
102 if(hits[n].fPadRow<=kseedRow && hits[n].fPadRow>=kfirstRow)
103 FillSector3D(hits[n].fX,hits[n].fY,hits[n].fZ); //copy data in 3D
107 void AliHLTTPCVertexFinder::Analyze()
114 SetZErr(GetZSectorErr());
115 LOG(AliHLTTPCLog::kInformational,"AliHLTTPCVertexFinder::Analyze","Result")
116 <<AliHLTTPCLog::kDec<<"Vertex: "<<GetZ()<<" RMS: "<<GetZErr()<<ENDLOG;
119 void AliHLTTPCVertexFinder::Write(AliHLTTPCVertex *vertex) const
124 vertex->SetX(GetX());
125 vertex->SetY(GetZ());
126 vertex->SetZ(GetZ());
127 vertex->SetXErr(GetXErr());
128 vertex->SetYErr(GetYErr());
129 vertex->SetZErr(GetZErr());
131 vertex->SetXYWeight(GetXYWeight());
134 void AliHLTTPCVertexFinder::Write(AliHLTTPCVertexData *vertex) const
142 vertex->fXErr=GetXErr();
143 vertex->fYErr=GetYErr();
144 vertex->fZErr=GetZErr();