#include "AliL3DigitData.h"
#include "AliL3HoughEval.h"
#include "AliL3Transform.h"
-#include "AliL3Defs.h"
#include "AliL3TrackArray.h"
#include "AliL3HoughTrack.h"
void AliL3Hough::Init()
{
- fPeakThreshold = 0;
- fNPatches = NPatches;
AliL3Transform::Init(fPath);
+ fPeakThreshold = 0;
+ fNPatches = AliL3Transform::GetNPatches();
fHoughTransformer = new AliL3HoughBaseTransformer*[fNPatches];
#ifdef use_aliroot
fMemHandler = new AliL3FileHandler*[fNPatches];
else //read data from root file
{
#ifdef use_aliroot
- fMemHandler[i]->Init(slice,i,NRows[i]);
+ const Int_t rows[2] = {AliL3Transform::GetFirstRow(i),AliL3Transform::GetLastRow(i)};
+ fMemHandler[i]->Init(slice,i,rows);
digits=(AliL3DigitRowData *)fMemHandler[i]->AliDigits2Memory(ndigits);
#else
cerr<<"You cannot read from rootfile now"<<endl;
track->SetTrackParameters(x[k],y[k],weight[k]);
track->SetEtaIndex(j);
track->SetEta((Double_t)(j*eta_slice));
- track->SetRowRange(NRows[0][0],NRows[5][1]);
+ track->SetRowRange(AliL3Transform::GetFirstRow(0),AliL3Transform::GetLastRow(5));
}
}
fTracks[i]->QSort();
if(!fEval[i]->LookInsideRoad(track,track->GetEtaIndex()))
tracks->Remove(j);
if(fAddHistograms)
- track->SetRowRange(NRows[0][0],NRows[5][1]);//All rows included
+ track->SetRowRange(AliL3Transform::GetFirstRow(0),AliL3Transform::GetLastRow(5));//All rows included
}
tracks->Compress();
tracks->QSort(); //Sort the tracks according to weight
#include "AliL3MemHandler.h"
#include "AliL3Logging.h"
#include "AliL3HoughBaseTransformer.h"
-#include "AliL3Defs.h"
#include "AliL3DigitData.h"
#include "AliL3Histogram.h"
#include "AliL3Transform.h"
#include "AliL3Histogram.h"
#include "AliL3Histogram1D.h"
-#include "AliL3Defs.h"
//_____________________________________________________________
// AliL3HoughEval
fHoughTransformer = transformer;
fSlice = fHoughTransformer->GetSlice();
fPatch = fHoughTransformer->GetPatch();
- fNrows = NRows[fPatch][1] - NRows[fPatch][0] + 1;
+ fNrows = AliL3Transform::GetLastRow(fPatch) - AliL3Transform::GetFirstRow(fPatch) + 1;
fNEtaSegments = fHoughTransformer->GetNEtaSegments();
fEtaMin = fHoughTransformer->GetEtaMin();
fEtaMax = fHoughTransformer->GetEtaMax();
if(!tempPt)
printf("\nAliL3HoughEval::GenerateLUT : Zero data pointer\n");
- for(Int_t i=NRows[fPatch][0]; i<=NRows[fPatch][1]; i++)
+ for(Int_t i=AliL3Transform::GetFirstRow(fPatch); i<=AliL3Transform::GetLastRow(fPatch); i++)
{
- Int_t prow = i - NRows[fPatch][0];
+ Int_t prow = i - AliL3Transform::GetFirstRow(fPatch);
fRowPointers[prow] = tempPt;
AliL3MemHandler::UpdateRowPointer(tempPt);
}
//Check if the track is leaving the sector at some point
Float_t maxrow=300;
- Double_t angle=Pi/18;
+ Double_t angle=AliL3Transform::Pi()/18;
track->CalculateEdgePoint(angle);
if(!track->IsPoint())
{
else
maxrow = track->GetPointX();
- for(Int_t padrow = NRows[fPatch][0]; padrow <= NRows[fPatch][1]; padrow++)
+ for(Int_t padrow = AliL3Transform::GetFirstRow(fPatch); padrow <= AliL3Transform::GetLastRow(fPatch); padrow++)
{
if(AliL3Transform::Row2X(padrow) > maxrow) break;//The track has left this slice
rows_crossed++;
- Int_t prow = padrow - NRows[fPatch][0];
+ Int_t prow = padrow - AliL3Transform::GetFirstRow(fPatch);
if(!track->GetCrossingPoint(padrow,xyz))
{
//printf("AliL3HoughEval::LookInsideRoad : Track does not cross line!!; pt %f phi0 %f\n",track->GetPt(),track->GetPhi0());
track->SetEtaIndex(eta_index);
track->SetWeight(total_charge,kTRUE);
track->SetEta(eta_track);
- track->SetRowRange(NRows[fPatch][0],NRows[fPatch][1]);
+ track->SetRowRange(AliL3Transform::GetFirstRow(fPatch),AliL3Transform::GetLastRow(fPatch));
track->SetSlice(fSlice);
if(fRemoveFoundTracks)
LookInsideRoad(track,eta_index,kTRUE);
{
AliL3HoughTrack *track = (AliL3HoughTrack*)tracks->GetCheckedTrack(ntr);
if(!track) continue;
- for(Int_t padrow = NRows[fPatch][0]; padrow <= NRows[fPatch][1]; padrow++)
+ for(Int_t padrow = AliL3Transform::GetFirstRow(fPatch); padrow <= AliL3Transform::GetLastRow(fPatch); padrow++)
{
- Int_t prow = padrow - NRows[fPatch][0];
+ Int_t prow = padrow - AliL3Transform::GetFirstRow(fPatch);
if(!track->GetCrossingPoint(padrow,xyz))
{
}
Double_t etaslice = (fEtaMax - fEtaMin)/fNEtaSegments;
- for(Int_t padrow = NRows[fPatch][0]; padrow <= NRows[fPatch][1]; padrow++)
+ for(Int_t padrow = AliL3Transform::GetFirstRow(fPatch); padrow <= AliL3Transform::GetLastRow(fPatch); padrow++)
{
- Int_t prow = padrow - NRows[fPatch][0];
+ Int_t prow = padrow - AliL3Transform::GetFirstRow(fPatch);
AliL3DigitRowData *tempPt = fRowPointers[prow];
if(!tempPt)
#include <math.h>
#include <stdlib.h>
#include "AliL3Logging.h"
-#include "AliL3Defs.h"
#include "AliL3Transform.h"
#include "AliL3TrackArray.h"
#include "AliL3HoughTrack.h"
AliL3TrackArray *tout = GetOutTracks();
if(i==subsec) tout = GetInTracks(subsec+1);
AliL3TrackArray *tin = GetInTracks(i);
- Double_t xval = AliL3Transform::Row2X(NRows[i][1]);
- Double_t xmax = AliL3Transform::Row2X(NRows[i+1][1]);
+ Double_t xval = AliL3Transform::Row2X(AliL3Transform::GetLastRow(i));
+ Double_t xmax = AliL3Transform::Row2X(AliL3Transform::GetLastRow(i+1));
Double_t ymax = xval*tan(edge0);
for(Int_t out=0;out<tout->GetNTracks();out++){
AliL3Track *outtrack=tout->GetCheckedTrack(out);
#include <math.h>
#include "AliL3Logging.h"
-#include "AliL3Defs.h"
#include "AliL3HoughTrack.h"
#include "AliL3Transform.h"
fEta = f;
Double_t theta = 2*atan(exp(-1.*fEta));
- Double_t dipangle = Pi/2 - theta;
+ Double_t dipangle = AliL3Transform::Pi()/2 - theta;
Double_t tgl = tan(dipangle);
SetTgl(tgl);
}
Double_t charge = -1.*kappa;
SetCharge((Int_t)copysign(1.,charge));
- Double_t trackPhi0 = GetPsi() + charge*0.5*Pi/fabs(charge);
+ Double_t trackPhi0 = GetPsi() + charge*0.5*AliL3Transform::Pi()/fabs(charge);
Double_t xc = GetFirstPointX() - GetRadius() * cos(trackPhi0) ;
Double_t yc = GetFirstPointY() - GetRadius() * sin(trackPhi0) ;
SetCenterX(xc);
#include "AliL3MemHandler.h"
#include "AliL3Logging.h"
#include "AliL3HoughTransformer.h"
-#include "AliL3Defs.h"
#include "AliL3Transform.h"
#include "AliL3DigitData.h"
#include "AliL3Histogram.h"
Double_t bfact = 0.0029980;
Double_t bfield = 0.2;
Double_t x = bfact*bfield/pt_min;
- CreateHistograms(nxbin,-1.*x,x,nybin,phimin*ToRad,phimax*ToRad);
+ Double_t torad = AliL3Transform::Pi()/180;
+ CreateHistograms(nxbin,-1.*x,x,nybin,phimin*torad,phimax*torad);
}
void AliL3HoughTransformer::CreateHistograms(Int_t nxbin,Double_t xmin,Double_t xmax,
}
//Loop over the padrows:
- for(Int_t i=NRows[GetPatch()][0]; i<=NRows[GetPatch()][1]; i++)
+ for(Int_t i=AliL3Transform::GetFirstRow(GetPatch()); i<=AliL3Transform::GetLastRow(GetPatch()); i++)
{
//Get the data on this padrow:
AliL3DigitData *digPt = tempPt->fDigitData;
<<"No input data "<<ENDLOG;
Int_t counter=0;
- for(Int_t i=NRows[GetPatch()][0]; i<=NRows[GetPatch()][1]; i++)
+ for(Int_t i=AliL3Transform::GetFirstRow(GetPatch()); i<=AliL3Transform::GetLastRow(GetPatch()); i++)
{
counter += tempPt->fNDigit;
AliL3MemHandler::UpdateRowPointer(tempPt);
counter=0;
tempPt = GetDataPointer();
- for(Int_t i=NRows[GetPatch()][0]; i<=NRows[GetPatch()][1]; i++)
+ for(Int_t i=AliL3Transform::GetFirstRow(GetPatch()); i<=AliL3Transform::GetLastRow(GetPatch()); i++)
{
AliL3DigitData *digPt = tempPt->fDigitData;
for(UInt_t di=0; di<tempPt->fNDigit; di++)
<<"No input data "<<ENDLOG;
return;
}
-
- for(Int_t i=NRows[GetPatch()][0]; i<=NRows[GetPatch()][1]; i++)
+
+ for(Int_t i=AliL3Transform::GetFirstRow(GetPatch()); i<=AliL3Transform::GetLastRow(GetPatch()); i++)
{
AliL3DigitData *digPt = tempPt->fDigitData;
if(i != (Int_t)tempPt->fRow)
#include <math.h>
-#include "AliL3Defs.h"
#include "AliL3Logging.h"
#include "AliL3ConfMapFit.h"
#include "AliL3Vertex.h"
// Author: Anders Vestbo <mailto:vestbo@fi.uib.no>, Uli Frankenfeld <mailto:franken@fi.uib.no>
//*-- Copyright © ASV
-#include "AliL3Defs.h"
#include "AliL3RootTypes.h"
#include "AliL3Logging.h"
#include "AliL3Vertex.h"
#include <sys/time.h>
#include "AliL3ConfMapper.h"
-#include "AliL3Defs.h"
#include "AliL3Logging.h"
#include "AliL3Vertex.h"
#include "AliL3ConfMapTrack.h"
#include "AliTPCParam.h"
#include "AliComplexCluster.h"
-#include "AliL3Defs.h"
#include "AliL3Transform.h"
#include "AliL3SpacePointData.h"
#include "AliL3Track.h"
#include <math.h>
-#include "AliL3Defs.h"
#include "AliL3Logging.h"
#include "AliL3Fitter.h"
#include "AliL3Vertex.h"
#include "AliL3RootTypes.h"
-#include "AliL3Defs.h"
#include "AliL3Logging.h"
#include "AliL3Track.h"
#include "AliL3Transform.h"