2 // Original: AliL3VertexFinder.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()
44 // default constructor for the AliHLTTPCVertexFinder class.
59 AliHLTTPCVertexFinder::~AliHLTTPCVertexFinder()
66 void AliHLTTPCVertexFinder::Reset()
75 void AliHLTTPCVertexFinder::Read(Int_t ncluster, AliHLTTPCSpacePointData* hits )
81 const Int_t kseedRow = AliHLTTPCTransform::GetNRows() - 1;
82 const Int_t kfirstRow = kseedRow-32;
83 for(Int_t n=0;n<ncluster;n++){
84 if(hits[n].fPadRow==kseedRow)
85 FillSectorSeed3D(hits[n].fX,hits[n].fY,hits[n].fZ); //copy seeds in 3D
86 if(hits[n].fPadRow<=kseedRow && hits[n].fPadRow>=kfirstRow)
87 FillSector3D(hits[n].fX,hits[n].fY,hits[n].fZ); //copy data in 3D
91 void AliHLTTPCVertexFinder::Analyze()
98 SetZErr(GetZSectorErr());
99 LOG(AliHLTTPCLog::kInformational,"AliHLTTPCVertexFinder::Analyze","Result")
100 <<AliHLTTPCLog::kDec<<"Vertex: "<<GetZ()<<" RMS: "<<GetZErr()<<ENDLOG;
103 void AliHLTTPCVertexFinder::Write(AliHLTTPCVertex *vertex) const
108 vertex->SetX(GetX());
109 vertex->SetY(GetZ());
110 vertex->SetZ(GetZ());
111 vertex->SetXErr(GetXErr());
112 vertex->SetYErr(GetYErr());
113 vertex->SetZErr(GetZErr());
115 vertex->SetXYWeight(GetXYWeight());
118 void AliHLTTPCVertexFinder::Write(AliHLTTPCVertexData *vertex) const
126 vertex->fXErr=GetXErr();
127 vertex->fYErr=GetYErr();
128 vertex->fZErr=GetZErr();