/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors are mentioned in the code where appropriate. * * * * Permission to use, copy, modify and distribute this software and its * * documentation strictly for non-commercial purposes is hereby granted * * without fee, provided that the above copyright notice appears in all * * copies and that both the copyright notice and this permission notice * * appear in the supporting documentation. The authors make no claims * * about the suitability of this software for any purpose. It is * * provided "as is" without express or implied warranty. * **************************************************************************/ /* $Id$ */ /////////////////////////////////////////////////////////////////////////////// // // // Parameter class for the TRD reconstruction // // // // Authors: // // Alex Bercuci // // Markus Fasel // // // /////////////////////////////////////////////////////////////////////////////// #include "AliTRDrecoParam.h" #include "AliTRDrawStreamBase.h" ClassImp(AliTRDrecoParam) //______________________________________________________________ AliTRDrecoParam::AliTRDrecoParam() :AliDetectorRecoParam() ,fkMaxTheta(1.0) ,fkMaxPhi(2.0) ,fkRoad0y(6.0) ,fkRoad0z(8.5) ,fkRoad1y(2.0) ,fkRoad1z(20.0) ,fkRoad2y(3.0) ,fkRoad2z(20.0) ,fkPlaneQualityThreshold(5.0)// 4.2? under Investigation ,fkFindable(.333) ,fkChi2Z(30./*14.*//*12.5*/) ,fkChi2Y(.25) ,fkChi2YCut(7.73) ,fkChi2ZCut(0.069) ,fkPhiCut(10.6) ,fkMeanNclusters(72) ,fkSigmaNclusters(5.2632) ,fkTrackLikelihood(-15.) ,fMinMaxCutSigma(4.) ,fMinLeftRightCutSigma(8.) ,fClusMaxThresh(4.5) ,fClusSigThresh(3.5) ,fTCnexp(2) ,fNumberOfPresamples(0) ,fNumberOfPostsamples(0) { // // Default constructor // SetTailCancelation(); SetLUT(); SetClusterSharing(kFALSE); SetVertexConstrained(); SetImproveTracklets(kFALSE); fSysCovMatrix[0] = 1.; // y direction (1 cm) fSysCovMatrix[1] = 1.; // z direction (1 cm) fSysCovMatrix[2] = 0.; // snp fSysCovMatrix[3] = 0.; // tgl fSysCovMatrix[4] = 0.; // 1/pt } //______________________________________________________________ AliTRDrecoParam::AliTRDrecoParam(const AliTRDrecoParam &ref) :AliDetectorRecoParam(ref) ,fkMaxTheta(ref.fkMaxTheta) ,fkMaxPhi(ref.fkMaxPhi) ,fkRoad0y(ref.fkRoad0y) ,fkRoad0z(ref.fkRoad0z) ,fkRoad1y(ref.fkRoad1y) ,fkRoad1z(ref.fkRoad1z) ,fkRoad2y(ref.fkRoad2y) ,fkRoad2z(ref.fkRoad2z) ,fkPlaneQualityThreshold(ref.fkPlaneQualityThreshold) ,fkFindable(ref.fkFindable) ,fkChi2Z(ref.fkChi2Z) ,fkChi2Y(ref.fkChi2Y) ,fkChi2YCut(ref.fkChi2YCut) ,fkPhiCut(ref.fkPhiCut) ,fkMeanNclusters(ref.fkMeanNclusters) ,fkSigmaNclusters(ref.fkSigmaNclusters) ,fkTrackLikelihood(ref.fkTrackLikelihood) ,fMinMaxCutSigma(ref.fMinMaxCutSigma) ,fMinLeftRightCutSigma(ref.fMinLeftRightCutSigma) ,fClusMaxThresh(ref.fClusMaxThresh) ,fClusSigThresh(ref.fClusSigThresh) ,fTCnexp(ref.fTCnexp) ,fNumberOfPresamples(ref.fNumberOfPresamples) ,fNumberOfPostsamples(ref.fNumberOfPostsamples) { // // Copy constructor // SetClusterSharing(ref.IsClusterSharing()); SetVertexConstrained(ref.IsVertexConstrained()); SetLUT(ref.IsLUT()); SetTailCancelation(ref.IsTailCancelation()); SetImproveTracklets(ref.HasImproveTracklets()); memcpy(fSysCovMatrix, ref.fSysCovMatrix, 5*sizeof(Double_t)); } //______________________________________________________________ AliTRDrecoParam *AliTRDrecoParam::GetLowFluxParam() { // // Parameters for the low flux environment // return new AliTRDrecoParam(); } //______________________________________________________________ AliTRDrecoParam *AliTRDrecoParam::GetHighFluxParam() { // // Parameters for the high flux environment // AliTRDrecoParam *rec = new AliTRDrecoParam(); rec->SetImproveTracklets(kTRUE); return rec; } //______________________________________________________________ AliTRDrecoParam *AliTRDrecoParam::GetCosmicTestParam() { // // Parameters for the cosmics data // AliTRDrawStreamBase::SetRawStreamVersion("TB"); AliTRDrecoParam *par = new AliTRDrecoParam(); par->SetVertexConstrained(kFALSE); par->SetChi2YCut(1.136); par->SetChi2ZCut(0.069); par->SetMaxTheta(2.1445); par->SetMaxPhi(2.7475); par->SetMeanNclusters(48.1197); par->SetSigmaNclusters(8.59347); return par; }