// Author: Anders Vestbo <mailto:vestbo$fi.uib.no>, Uli Frankenfeld <mailto:franken@fi.uib.no>
//*-- Copyright © ASV
+#include "AliL3StandardIncludes.h"
#include "AliL3RootTypes.h"
-
#include "AliL3Logging.h"
#include "AliL3Track.h"
#include "AliL3Transform.h"
#include "AliL3Vertex.h"
-#include <math.h>
+
//_____________________________________________________________
// AliL3Track
fIsLocal=true;
fRowRange[0]=0;
fRowRange[1]=0;
- memset(fHitNumbers,0,176*sizeof(UInt_t));
+ memset(fHitNumbers,0,159*sizeof(UInt_t));
}
void AliL3Track::Set(AliL3Track *tpt){
SetTgl(tpt->GetTgl());
SetCharge(tpt->GetCharge());
SetHits(tpt->GetNHits(),(UInt_t *)tpt->GetHitNumbers());
+#ifdef do_mc
+ SetMCid(tpt->GetMCid());
+#endif
}
Int_t AliL3Track::Compare(const AliL3Track *track) const
tangent[1] = (xyz[0] - GetCenterX())/GetRadius();
Double_t perp_padrow[2] = {1,0}; //locally in slice
-
+
Double_t cos_beta = fabs(tangent[0]*perp_padrow[0] + tangent[1]*perp_padrow[1]);
+ if(cos_beta > 1) cos_beta=1;
return acos(cos_beta);
}
Bool_t AliL3Track::CalculateEdgePoint(Double_t angle){
// Global coordinate: crossing point with y = ax; a=tan(angle);
//
- Double_t rmin=80; //min Radius of TPC
- Double_t rmax=260; //max Radius of TPC
+ Double_t rmin=AliL3Transform::Row2X(AliL3Transform::GetFirstRow(-1)); //min Radius of TPC
+ Double_t rmax=AliL3Transform::Row2X(AliL3Transform::GetLastRow(-1)); //max Radius of TPC
Double_t a = tan(angle);
Double_t pp=(fCenterX+a*fCenterY)/(1+pow(a,2));