#include "AliL3Vertex.h"
#include "AliL3ConfMapTrack.h"
#include "AliL3ConfMapPoint.h"
+#include "AliL3Transform.h"
//_____________________________________________________________
// AliL3ConfMapFit
psi = psi + q * 0.5F * pi ;
if ( psi < 0 ) psi = psi + 2*pi;
- pt = (Double_t)(BFACT * BField * radius ) ;
+ pt = (Double_t)(BFACT * AliL3Transform::GetBField() * radius ) ;
fTrack->SetPsi(psi);
fTrack->SetPt(pt);
//find sum , sums ,sumz, sumss
//
Double_t dx, dy ;
- Double_t radius = (Double_t)(fTrack->GetPt() / ( BFACT * BField ) ) ;
+ Double_t radius = (Double_t)(fTrack->GetPt() / ( BFACT * AliL3Transform::GetBField() ) ) ;
//TObjArray *hits = fTrack->GetHits();
//Int_t num_of_hits = fTrack->GetNumberOfPoints();
#include "AliL3ConfMapPoint.h"
#include "AliL3ConfMapFit.h"
#include "AliL3ConfMapTrack.h"
+#include "AliL3Transform.h"
#include <math.h>
//_____________________________________________________________
Double_t radius = sqrt(a2Xy*a2Xy+1)/(2*fabs(a1Xy));
SetRadius(radius);
- //fPt = (Double_t)(BFACT * BField * fRadius);
- Double_t pt = (Double_t)(BFACT * BField * GetRadius());
+ //fPt = (Double_t)(BFACT * AliL3Transform::GetBField() * fRadius);
+ Double_t pt = (Double_t)(BFACT * AliL3Transform::GetBField() * GetRadius());
SetPt(pt);
if(GetPt() > max_Dca) //go for fit of helix in real space
Double_t tPhi0 = GetPsi() + GetCharge() * 0.5 * pi / fabs(GetCharge()) ;
Double_t x0 = GetR0() * cos(GetPhi0()) ;
Double_t y0 = GetR0() * sin(GetPhi0()) ;
- Double_t rc = fabs(GetPt()) / ( BFACT * BField ) ;
+ Double_t rc = fabs(GetPt()) / ( BFACT * AliL3Transform::GetBField() ) ;
Double_t xc = x0 - rc * cos(tPhi0) ;
Double_t yc = y0 - rc * sin(tPhi0) ;
#include "AliL3ConfMapTrack.h"
#include "AliL3ConfMapPoint.h"
#include "AliL3TrackArray.h"
+#include "AliL3Transform.h"
//_____________________________________________________________
// AliL3ConfMapper
fNumRowSegment = fRowMax - fRowMin; //number of rows to be considered by tracker
LOG(AliL3Log::kInformational,"AliL3ConfMapper::InitSector","B-field")
- <<"Tracker initializing assuming magnetic field of "<<BField<<ENDLOG;
+ <<"Tracker initializing assuming magnetic field of "<<AliL3Transform::GetBField()<<ENDLOG;
fTrack->Reset();
}
const Double_t ToRad = Pi/180.;
const Int_t MaxNPads = 256;
const Int_t MaxNTimeBins = 512;
-const Double_t BField = 0.2;
#endif /* _ALIL3DEFS_H_ */
{
//Read in the hit and track information from produced files.
+ AliL3Transform::Init(path);
Char_t fname[256];
AliL3MemHandler *clusterfile[36][6];
for(Int_t s=fMinSlice; s<=fMaxSlice; s++)
//Calculate Radius, CenterX and Centery from Psi, X0, Y0
//
- fRadius = fPt / (BFACT*BField);
+ fRadius = fPt / (BFACT*AliL3Transform::GetBField());
if(fRadius) fKappa = -fQ*1./fRadius;
else fRadius = 999999; //just zero
Double_t trackPhi0 = fPsi + fQ *0.5 * pi;
ClassImp(AliL3Transform)
+Double_t AliL3Transform::fBField = 0.2;
Int_t AliL3Transform::fVersion = 0;
Int_t AliL3Transform::fNTimeBins = 446 ;
Int_t AliL3Transform::fNRowLow = 64 ;
private:
+ static Double_t fBField;
static Int_t fNTimeBins;
static Int_t fNRowLow;
static Int_t fNRowUp;
static void Init(const Char_t* path); //new init for all AliRoot versions
+ static void SetBField(Double_t f) {fBField = f;}
+ static Double_t GetBField() {return fBField;}
static Int_t GetVersion(){return fVersion;}
static Double_t GetPadPitchWidthLow() {return fPadPitchWidthLow;}
static Double_t GetPadPitchWidthUp() {return fPadPitchWidthUp;}