1 //Author: Uli Frankenfeld
2 //Last Modified: 07.11.2000
5 #include "AliL3Logging.h"
6 #include "AliL3VertexArray.h"
7 #include "AliL3Vertex.h"
8 #include "AliL3VertexFinder.h"
9 #include "AliL3SpacePointData.h"
11 //_____________________________________________________________
15 // Implementation of AliL3Array
19 // for(n=0;n<NMEMSEC;n++)
21 // FindSectorVertex();
22 // SetZ(GetZSector());
23 // SetZErr(GetZErrSector());
24 // // do somethink with z, zerr
27 ClassImp(AliL3VertexFinder)
28 AliL3VertexFinder::AliL3VertexFinder(){
30 // default constructor for the AliL3VertexFinder class.
47 AliL3VertexFinder::~AliL3VertexFinder(){
53 void AliL3VertexFinder::Reset(){
58 void AliL3VertexFinder::Read(Int_t ncluster, AliL3SpacePointData* hits ){
63 const Int_t seedRow = 173;
64 const Int_t firstRow = seedRow-32;
65 for(Int_t n=0;n<ncluster;n++){
66 if(hits[n].fPadRow==seedRow)
67 FillSectorSeed3D(hits[n].fX,hits[n].fY,hits[n].fZ); //copy seeds in 3D
68 if(hits[n].fPadRow<=seedRow && hits[n].fPadRow>=firstRow)
69 FillSector3D(hits[n].fX,hits[n].fY,hits[n].fZ); //copy data in 3D
73 void AliL3VertexFinder::Analyze(){
76 SetZErr(GetZSectorErr());
77 LOG(AliL3Log::kInformational,"AliL3VertexFinder::Analyze","Result")
78 <<AliL3Log::kDec<<"Vertex: "<<GetZ()<<" Error: "<<GetZErr()<<ENDLOG;
81 void AliL3VertexFinder::Write(AliL3Vertex *vertex){
85 vertex->SetXErr(GetXErr());
86 vertex->SetYErr(GetYErr());
87 vertex->SetZErr(GetZErr());
89 vertex->SetXYWeight(GetXYWeight());
92 void AliL3VertexFinder::Write(AliL3VertexData *vertex){
96 vertex->fXErr=GetXErr();
97 vertex->fYErr=GetYErr();
98 vertex->fZErr=GetZErr();