// Author: Anders Vestbo <mailto:vestbo@fi.uib.no>
//*-- Copyright © ASV
-#include <iostream.h>
-#include <time.h>
-#include <math.h>
+#include "AliL3StandardIncludes.h"
#include <sys/time.h>
-#include "AliL3ConfMapper.h"
-#include "AliL3Defs.h"
+#include "AliL3ConfMapper.h"
#include "AliL3Logging.h"
#include "AliL3Vertex.h"
#include "AliL3ConfMapTrack.h"
//Should be done after setting the track parameters
- fNumRowSegmentPlusOne = 176;//NumRows[0]; //Maximum 32.
+ fNumRowSegmentPlusOne = AliL3Transform::GetNRows();//NumRows[0]; //Maximum 32.
fNumPhiSegmentPlusOne = fNumPhiSegment+1;
fNumEtaSegmentPlusOne = fNumEtaSegment+1;
fNumPhiEtaSegmentPlusOne = fNumPhiSegmentPlusOne*fNumEtaSegmentPlusOne;
else //complete sector
{
fRowMin = 0;
- fRowMax = 175;
+ fRowMax = AliL3Transform::GetNRows() - 1;
}
if(etarange)
{
nTracks=0;
fMainVertexTracks = 0;
fClustersUnused = 0;
+ fEtaHitsOutOfRange=0;
+ fPhiHitsOutOfRange=0;
fNumRowSegment = fRowMax - fRowMin; //number of rows to be considered by tracker
LOG(AliL3Log::kInformational,"AliL3ConfMapper::InitSector","B-field")
- <<"Tracker initializing assuming magnetic field of "<<AliL3Transform::GetBField()<<ENDLOG;
+ <<"Tracker initializing with a magnetic field of "<<AliL3Transform::GetBField()<<ENDLOG;
fTrack->Reset();
}
Double_t phi_diff = fabs( hit1->GetPhi() - hit2->GetPhi() );
if (phi_diff > pi) phi_diff = twopi - phi_diff;
- return todeg*fabs(hit1->GetPadRow() - hit2->GetPadRow()) * (phi_diff + fabs( hit1->GetEta() - hit2->GetEta() ));
+ return todeg*fabs((Float_t)((hit1->GetPadRow() - hit2->GetPadRow()) * (phi_diff + fabs( hit1->GetEta() - hit2->GetEta()))));
}
Bool_t AliL3ConfMapper::VerifyRange(const AliL3ConfMapPoint *hit1,const AliL3ConfMapPoint *hit2) const