1 // Author: Uli Frankenfeld <mailto:franken@fi.uib.no>
2 //*-- Copyright © Uli
5 #include "AliL3Logging.h"
6 #include "AliL3VertexArray.h"
7 #include "AliL3Vertex.h"
8 #include "AliL3VertexFinder.h"
9 #include "AliL3SpacePointData.h"
11 //_____________________________________________________________
14 // Implementation of AliL3Array
18 // for(n=0;n<NMEMSEC;n++)
20 // FindSectorVertex();
21 // SetZ(GetZSector());
22 // SetZErr(GetZErrSector());
26 ClassImp(AliL3VertexFinder)
27 AliL3VertexFinder::AliL3VertexFinder(){
29 // default constructor for the AliL3VertexFinder class.
46 AliL3VertexFinder::~AliL3VertexFinder(){
52 void AliL3VertexFinder::Reset(){
57 void AliL3VertexFinder::Read(Int_t ncluster, AliL3SpacePointData* hits ){
62 const Int_t seedRow = 175;
63 const Int_t firstRow = seedRow-32;
64 for(Int_t n=0;n<ncluster;n++){
65 if(hits[n].fPadRow==seedRow)
66 FillSectorSeed3D(hits[n].fX,hits[n].fY,hits[n].fZ); //copy seeds in 3D
67 if(hits[n].fPadRow<=seedRow && hits[n].fPadRow>=firstRow)
68 FillSector3D(hits[n].fX,hits[n].fY,hits[n].fZ); //copy data in 3D
72 void AliL3VertexFinder::Analyze(){
75 SetZErr(GetZSectorErr());
76 LOG(AliL3Log::kInformational,"AliL3VertexFinder::Analyze","Result")
77 <<AliL3Log::kDec<<"Vertex: "<<GetZ()<<" RMS: "<<GetZErr()<<ENDLOG;
80 void AliL3VertexFinder::Write(AliL3Vertex *vertex){
84 vertex->SetXErr(GetXErr());
85 vertex->SetYErr(GetYErr());
86 vertex->SetZErr(GetZErr());
88 vertex->SetXYWeight(GetXYWeight());
91 void AliL3VertexFinder::Write(AliL3VertexData *vertex){
95 vertex->fXErr=GetXErr();
96 vertex->fYErr=GetYErr();
97 vertex->fZErr=GetZErr();