virtual void FillESD(AliRawReader *, TTree *clusterTree, AliESDEvent *esd) const { FillESD((TTree * )NULL, clusterTree, esd); }
virtual void FillESD(TTree *digitsTree, TTree *clusterTree, AliESDEvent *esd) const;
- static TClonesArray* GetClusters() {return fgClusters;}
- static TClonesArray* GetTracklets() {return fgTracklets;}
- static Int_t GetNTimeBins() {return fgNTimeBins;}
+ static TClonesArray* GetClusters() {return fgClusters;}
+ static TClonesArray* GetTracklets() { return fgTracklets;}
+ static Int_t GetNTimeBins() { return fgNTimeBins;}
Int_t GetNdEdxSlices() const { return (Int_t)AliTRDpidUtil::GetNdEdxSlices(GetPIDMethod());}
AliTRDpidUtil::ETRDPIDMethod GetPIDMethod() const { return GetRecoParam()->IsPIDNeuralNetwork() ? AliTRDpidUtil::kNN : AliTRDpidUtil::kLQ;}
- static const AliTRDrecoParam* GetRecoParam() { return dynamic_cast<const AliTRDrecoParam*>(AliReconstructor::GetRecoParam(2)); }
+ static const AliTRDrecoParam* GetRecoParam() { return dynamic_cast<const AliTRDrecoParam*>(AliReconstructor::GetRecoParam(2)); }
+ static Float_t GetMinClustersInTrack() { return fgkMinClustersInTrack;}
+ static Float_t GetLabelFraction() { return fgkLabelFraction;}
+ static Double_t GetMaxChi2() { return fgkMaxChi2;}
+ static Double_t GetMaxSnp() { return fgkMaxSnp;}
+ static Double_t GetMaxStep() { return fgkMaxStep;}
+ static Double_t GetEpsilon() { return fgkEpsilon;}
virtual Bool_t HasDigitConversion() const { return fSteerParam&kDigitsConversion; };
- Bool_t IsCosmic() const { return GetRecoParam()->GetEventSpecie() & AliRecoParam::kCosmic;}
+ Bool_t IsCosmic() const { return GetRecoParam()->GetEventSpecie() & AliRecoParam::kCosmic;}
Bool_t IsWritingClusters() const { return fSteerParam&kWriteClusters;}
Bool_t IsWritingTracklets() const { return fSteerParam&kWriteTracklets;}
Bool_t IsHLT() const { return fSteerParam&kHLT;}
Bool_t IsSeeding() const { return fSteerParam&kSeeding;}
Bool_t IsProcessingTracklets() const { return fSteerParam&kProcTracklets;}
- Bool_t IsDebugStreaming() const { return fSteerParam&kDebug;}
+ Bool_t IsDebugStreaming() const { return fSteerParam&kDebug;}
Bool_t UseClusterRadialCorrection() const { return fSteerParam&kClRadialCorr;}
static void Options(UInt_t steer=0);
static Char_t const *fgTaskNames[AliTRDrecoParam::kTRDreconstructionTasks]; //! tasks names
static Char_t const *fgTaskFlags[AliTRDrecoParam::kTRDreconstructionTasks]; //! tasks flags
UInt_t fSteerParam; // steering bits
+ // configuration vars for tracking
+ static const Double_t fgkMaxChi2; // Max increment in track chi2
+ static const Float_t fgkMinClustersInTrack; // Min number of clusters in track
+ static const Float_t fgkLabelFraction; // Min fraction of same label
+ static const Double_t fgkMaxSnp; // Maximal snp for tracking
+ static const Double_t fgkMaxStep; // Maximal step for tracking
+ static const Double_t fgkEpsilon; // Precision of radial coordinate
+
TTreeSRedirector *fDebugStream[AliTRDrecoParam::kTRDreconstructionTasks];// Debug Streamer container;
static TClonesArray *fgClusters; // list of clusters for local reconstructor
ClassImp(AliTRDtrackerV1::AliTRDLeastSquare)
ClassImp(AliTRDtrackerV1::AliTRDtrackFitterRieman)
-const Float_t AliTRDtrackerV1::fgkMinClustersInTrack = 0.5; //
-const Float_t AliTRDtrackerV1::fgkLabelFraction = 0.8; //
-const Double_t AliTRDtrackerV1::fgkMaxChi2 = 12.0; //
-const Double_t AliTRDtrackerV1::fgkMaxSnp = 0.95; // Maximum local sine of the azimuthal angle
-const Double_t AliTRDtrackerV1::fgkMaxStep = 2.0; // Maximal step size in propagation
Double_t AliTRDtrackerV1::fgTopologicQA[kNConfigs] = {
0.5112, 0.5112, 0.5112, 0.0786, 0.0786,
0.0786, 0.0786, 0.0579, 0.0579, 0.0474,
};
const Double_t AliTRDtrackerV1::fgkX0[kNPlanes] = {
300.2, 312.8, 325.4, 338.0, 350.6, 363.2};
+// Number of Time Bins/chamber should be also stored independently by the traker
+// (also in AliTRDReconstructor) in oder to be able to run HLT. Fix TODO
Int_t AliTRDtrackerV1::fgNTimeBins = 0;
AliRieman* AliTRDtrackerV1::fgRieman = NULL;
TLinearFitter* AliTRDtrackerV1::fgTiltedRieman = NULL;
// Propagate to the entrance in the TRD mother volume
track.~AliTRDtrackV1();
new(&track) AliTRDtrackV1(*seed);
- if(AliTRDgeometry::GetXtrdBeg() > (fgkMaxStep + track.GetX()) && !PropagateToX(track, AliTRDgeometry::GetXtrdBeg(), fgkMaxStep)){
+ if(AliTRDgeometry::GetXtrdBeg() > (AliTRDReconstructor::GetMaxStep() + track.GetX()) && !PropagateToX(track, AliTRDgeometry::GetXtrdBeg(), AliTRDReconstructor::GetMaxStep())){
seed->UpdateTrackParams(&track, AliESDtrack::kTRDStop);
continue;
}
seed->UpdateTrackParams(&track, AliESDtrack::kTRDStop);
continue;
}
- if(TMath::Abs(track.GetSnp()) > fgkMaxSnp) {
+ if(TMath::Abs(track.GetSnp()) > AliTRDReconstructor::GetMaxSnp()) {
seed->UpdateTrackParams(&track, AliESDtrack::kTRDStop);
continue;
}
// Make backup for back propagation
Int_t foundClr = track.GetNumberOfClusters();
if (foundClr >= foundMin) {
- track.CookLabel(1. - fgkLabelFraction);
+ track.CookLabel(1. - AliTRDReconstructor::GetLabelFraction());
//if(track.GetBackupTrack()) UseClusters(track.GetBackupTrack());
// Sign only gold tracks
xtof = TMath::Sqrt(glob[0]*glob[0]+glob[1]*glob[1]);
}
}
- if(xtof > (fgkMaxStep + track.GetX()) && !PropagateToX(track, xtof, fgkMaxStep)){
+ if(xtof > (AliTRDReconstructor::GetMaxStep() + track.GetX()) && !PropagateToX(track, xtof, AliTRDReconstructor::GetMaxStep())){
seed->UpdateTrackParams(&track, AliESDtrack::kTRDStop);
continue;
}
seed->UpdateTrackParams(&track, AliESDtrack::kTRDStop);
continue;
}
- if(TMath::Abs(track.GetSnp()) > fgkMaxSnp){
+ if(TMath::Abs(track.GetSnp()) > AliTRDReconstructor::GetMaxSnp()){
seed->UpdateTrackParams(&track, AliESDtrack::kTRDStop);
continue;
}
}
// Prolongate to TPC
- if (PropagateToX(track, xTPC, fgkMaxStep)) { // -with update
+ if (PropagateToX(track, xTPC, AliTRDReconstructor::GetMaxStep())) { // -with update
seed->UpdateTrackParams(&track, AliESDtrack::kTRDrefit);
found++;
kUPDATE = kTRUE;
// Prolongate to TPC without update
if(!kUPDATE) {
AliTRDtrackV1 tt(*seed);
- if (PropagateToX(tt, xTPC, fgkMaxStep)) seed->UpdateTrackParams(&tt, AliESDtrack::kTRDbackup);
+ if (PropagateToX(tt, xTPC, AliTRDReconstructor::GetMaxStep())) seed->UpdateTrackParams(&tt, AliESDtrack::kTRDbackup);
}
}
AliInfo(Form("Number of seeds: TRDout[%d]", nseed));
}
Double_t x = tracklet->GetX();//GetX0();
// reject tracklets which are not considered for inward refit
- if(x > t.GetX()+fgkMaxStep) continue;
+ if(x > t.GetX()+AliTRDReconstructor::GetMaxStep()) continue;
// append tracklet to track
t.SetTracklet(tracklet, index);
- if (x < (t.GetX()-fgkMaxStep) && !PropagateToX(t, x+fgkMaxStep, fgkMaxStep)) break;
+ if (x < (t.GetX()-AliTRDReconstructor::GetMaxStep()) && !PropagateToX(t, x+AliTRDReconstructor::GetMaxStep(), AliTRDReconstructor::GetMaxStep())) break;
if (!AdjustSector(&t)) break;
// Start global position
!matrix ){
AliDebug(4, Form("Missing Geometry ly[%d]. Guess radial position", ily));
// propagate to the default radial position
- if(fR[ily] > (fgkMaxStep + t.GetX()) && !PropagateToX(t, fR[ily], fgkMaxStep)){
+ if(fR[ily] > (AliTRDReconstructor::GetMaxStep() + t.GetX()) && !PropagateToX(t, fR[ily], AliTRDReconstructor::GetMaxStep())){
n=-1;
t.SetStatus(AliTRDtrackV1::kPropagation);
AliDebug(4, "Failed Propagation [Missing Geometry]");
AliDebug(4, "Failed Adjust Sector [Missing Geometry]");
break;
}
- if(TMath::Abs(t.GetSnp()) > fgkMaxSnp){
+ if(TMath::Abs(t.GetSnp()) > AliTRDReconstructor::GetMaxSnp()){
n=-1;
t.SetStatus(AliTRDtrackV1::kSnp);
AliDebug(4, "Failed Max Snp [Missing Geometry]");
matrix->LocalToMaster(loc, glb);
// Propagate to the radial distance of the current layer
- x = glb[0] - fgkMaxStep;
- if(x > (fgkMaxStep + t.GetX()) && !PropagateToX(t, x, fgkMaxStep)){
+ x = glb[0] - AliTRDReconstructor::GetMaxStep();
+ if(x > (AliTRDReconstructor::GetMaxStep() + t.GetX()) && !PropagateToX(t, x, AliTRDReconstructor::GetMaxStep())){
n=-1;
t.SetStatus(AliTRDtrackV1::kPropagation);
AliDebug(4, Form("Failed Initial Propagation to x[%7.2f]", x));
AliDebug(4, "Failed Adjust Sector Start");
break;
}
- if(TMath::Abs(t.GetSnp()) > fgkMaxSnp) {
+ if(TMath::Abs(t.GetSnp()) > AliTRDReconstructor::GetMaxSnp()) {
n=-1;
t.SetStatus(AliTRDtrackV1::kSnp);
- AliDebug(4, Form("Failed Max Snp[%f] MaxSnp[%f]", t.GetSnp(), fgkMaxSnp));
+ AliDebug(4, Form("Failed Max Snp[%f] MaxSnp[%f]", t.GetSnp(), AliTRDReconstructor::GetMaxSnp()));
break;
}
Bool_t doRecalculate = kFALSE;
continue;
}
matrix->LocalToMaster(loc, glb);
- x = glb[0] - fgkMaxStep;
+ x = glb[0] - AliTRDReconstructor::GetMaxStep();
}
// check if track is well inside fiducial volume
- if (!t.GetProlongation(x+fgkMaxStep, y, z)) {
+ if (!t.GetProlongation(x+AliTRDReconstructor::GetMaxStep(), y, z)) {
n=-1;
t.SetStatus(AliTRDtrackV1::kProlongation);
- AliDebug(4, Form("Failed Prolongation to x[%7.2f] y[%7.2f] z[%7.2f]", x+fgkMaxStep, y, z));
+ AliDebug(4, Form("Failed Prolongation to x[%7.2f] y[%7.2f] z[%7.2f]", x+AliTRDReconstructor::GetMaxStep(), y, z));
break;
}
if(fGeom->IsOnBoundary(det, y, z, .5)){
continue;
}
x = ptrTracklet->GetX(); //GetX0();
- if(x > (fgkMaxStep + t.GetX()) && !PropagateToX(t, x, fgkMaxStep)) {
+ if(x > (AliTRDReconstructor::GetMaxStep() + t.GetX()) && !PropagateToX(t, x, AliTRDReconstructor::GetMaxStep())) {
n=-1;
t.SetStatus(AliTRDtrackV1::kPropagation);
AliDebug(4, Form("Failed Propagation to Tracklet x[%7.2f]", x));
AliDebug(4, "Failed Adjust Sector");
break;
}
- if(TMath::Abs(t.GetSnp()) > fgkMaxSnp) {
+ if(TMath::Abs(t.GetSnp()) > AliTRDReconstructor::GetMaxSnp()) {
n=-1;
t.SetStatus(AliTRDtrackV1::kSnp);
- AliDebug(4, Form("Failed Max Snp[%f] MaxSnp[%f]", t.GetSnp(), fgkMaxSnp));
+ AliDebug(4, Form("Failed Max Snp[%f] MaxSnp[%f]", t.GetSnp(), AliTRDReconstructor::GetMaxSnp()));
break;
}
Double_t cov[3]; ptrTracklet->GetCovAt(x, cov);
while(ip < np){
//don't do anything if next marker is after next update point.
- if((up?-1:1) * (points[ip].GetX() - x) - fgkMaxStep < 0) break;
- if(((up?-1:1) * (points[ip].GetX() - track->GetX()) < 0) && !PropagateToX(*track, points[ip].GetX(), fgkMaxStep)) return -1.;
+ if((up?-1:1) * (points[ip].GetX() - x) - AliTRDReconstructor::GetMaxStep() < 0) break;
+ if(((up?-1:1) * (points[ip].GetX() - track->GetX()) < 0) && !PropagateToX(*track, points[ip].GetX(), AliTRDReconstructor::GetMaxStep())) return -1.;
Double_t xyz[3]; // should also get the covariance
track->GetXYZ(xyz);
// printf("plane[%d] tracklet[%p] x[%f]\n", iplane, ptrTracklet, x);
// Propagate closer to the next update point
- if(((up?-1:1) * (x - track->GetX()) + fgkMaxStep < 0) && !PropagateToX(*track, x + (up?-1:1)*fgkMaxStep, fgkMaxStep)) return -1.;
+ if(((up?-1:1) * (x - track->GetX()) + AliTRDReconstructor::GetMaxStep() < 0) && !PropagateToX(*track, x + (up?-1:1)*AliTRDReconstructor::GetMaxStep(), AliTRDReconstructor::GetMaxStep())) return -1.;
if(!AdjustSector(track)) return -1;
- if(TMath::Abs(track->GetSnp()) > fgkMaxSnp) return -1;
+ if(TMath::Abs(track->GetSnp()) > AliTRDReconstructor::GetMaxSnp()) return -1;
//load tracklet to the tracker and the track
/* Int_t index;
// extrapolation
while(ip < np){
- if(((up?-1:1) * (points[ip].GetX() - track->GetX()) < 0) && !PropagateToX(*track, points[ip].GetX(), fgkMaxStep)) return -1.;
+ if(((up?-1:1) * (points[ip].GetX() - track->GetX()) < 0) && !PropagateToX(*track, points[ip].GetX(), AliTRDReconstructor::GetMaxStep())) return -1.;
Double_t xyz[3]; // should also get the covariance
track->GetXYZ(xyz);
// Returns 1 if track reaches the plane, and 0 otherwise
//
- const Double_t kEpsilon = 0.00001;
-
// Current track X-position
Double_t xpos = t.GetX();
// Direction: inward or outward
Double_t dir = (xpos < xToGo) ? 1.0 : -1.0;
- while (((xToGo - xpos) * dir) > kEpsilon) {
+ while (((xToGo - xpos) * dir) > AliTRDReconstructor::GetEpsilon()) {
Double_t xyz0[3];
Double_t xyz1[3];