3 // Author: Uli Frankenfeld <mailto:franken@fi.uib.no>
4 //*-- Copyright © ALICE HLT Group
6 #include "AliL3StandardIncludes.h"
8 #include "AliL3Logging.h"
9 #include "AliL3VertexArray.h"
10 #include "AliL3Vertex.h"
11 #include "AliL3VertexFinder.h"
12 #include "AliL3SpacePointData.h"
13 #include "AliL3Transform.h"
15 /** \class AliL3VertexFinder
17 //_____________________________________________________________
20 // Implementation of AliL3Array
24 // for(n=0;n<NMEMSEC;n++)
26 // FindSectorVertex();
27 // SetZ(GetZSector());
28 // SetZErr(GetZErrSector());
34 ClassImp(AliL3VertexFinder)
35 AliL3VertexFinder::AliL3VertexFinder(){
37 // default constructor for the AliL3VertexFinder class.
54 AliL3VertexFinder::~AliL3VertexFinder(){
60 void AliL3VertexFinder::Reset(){
65 void AliL3VertexFinder::Read(Int_t ncluster, AliL3SpacePointData* hits ){
70 const Int_t seedRow = AliL3Transform::GetNRows() - 1;
71 const Int_t firstRow = seedRow-32;
72 for(Int_t n=0;n<ncluster;n++){
73 if(hits[n].fPadRow==seedRow)
74 FillSectorSeed3D(hits[n].fX,hits[n].fY,hits[n].fZ); //copy seeds in 3D
75 if(hits[n].fPadRow<=seedRow && hits[n].fPadRow>=firstRow)
76 FillSector3D(hits[n].fX,hits[n].fY,hits[n].fZ); //copy data in 3D
80 void AliL3VertexFinder::Analyze(){
83 SetZErr(GetZSectorErr());
84 LOG(AliL3Log::kInformational,"AliL3VertexFinder::Analyze","Result")
85 <<AliL3Log::kDec<<"Vertex: "<<GetZ()<<" RMS: "<<GetZErr()<<ENDLOG;
88 void AliL3VertexFinder::Write(AliL3Vertex *vertex){
92 vertex->SetXErr(GetXErr());
93 vertex->SetYErr(GetYErr());
94 vertex->SetZErr(GetZErr());
96 vertex->SetXYWeight(GetXYWeight());
99 void AliL3VertexFinder::Write(AliL3VertexData *vertex){
103 vertex->fXErr=GetXErr();
104 vertex->fYErr=GetYErr();
105 vertex->fZErr=GetZErr();