include reconstruction parameters to be used by AliTOFtrackerV1
authorarcelli <arcelli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 3 Oct 2007 10:46:07 +0000 (10:46 +0000)
committerarcelli <arcelli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 3 Oct 2007 10:46:07 +0000 (10:46 +0000)
TOF/AliTOFRecoParam.cxx
TOF/AliTOFRecoParam.h
TOF/Calib/RecPar/Run0_0_v0_s0.root

index f4df71c907f4eebb5aa7459cfbe56ad5e2d0d321..dde8a13cdec39c865cdf18c7f9497287e5ea1e3c 100644 (file)
@@ -28,6 +28,7 @@ ClassImp(AliTOFRecoParam)
 
 //_____________________________________________________________________________
 AliTOFRecoParam::AliTOFRecoParam():
+  TObject(),       
   fTimeZero(kFALSE),       
   fTimeZerofromT0(kFALSE),       
   fTimeZerofromTOF(kFALSE),       
@@ -35,11 +36,12 @@ AliTOFRecoParam::AliTOFRecoParam():
   fApplyPbPbCuts(kFALSE),       
   fWindowSizeMaxY(50.),
   fWindowSizeMaxZ(35.),
-  fWindowScaleFact(3.),
+  fWindowScaleFact(5.),
   fDistanceCut(3.),
-  fSensRadius(378.),
+  fSensRadius(378.5),
   fStepSize(0.1),
-  fMaxChi2(150.),
+  fMaxChi2(10.),
+  fMaxChi2TRD(150.),
   fTimeResolution(80.),
   fTimeNSigma(5.)
 {
@@ -47,7 +49,66 @@ AliTOFRecoParam::AliTOFRecoParam():
   // constructor
   //
 }
+//_____________________________________________________________________________
+AliTOFRecoParam::AliTOFRecoParam(const AliTOFRecoParam &p):
+  TObject(),       
+  fTimeZero(kFALSE),       
+  fTimeZerofromT0(kFALSE),       
+  fTimeZerofromTOF(kFALSE),       
+  fTimeWalkCorr(kFALSE),       
+  fApplyPbPbCuts(kFALSE),       
+  fWindowSizeMaxY(50.),
+  fWindowSizeMaxZ(35.),
+  fWindowScaleFact(5.),
+  fDistanceCut(3.),
+  fSensRadius(378.5),
+  fStepSize(0.1),
+  fMaxChi2(10.),
+  fMaxChi2TRD(150.),
+  fTimeResolution(80.),
+  fTimeNSigma(5.)
+ { 
+  //copy Ctor
 
+   fTimeZero=p.fTimeZero;       
+   fTimeZerofromT0=p.fTimeZerofromT0;
+   fTimeZerofromTOF=p.fTimeZerofromTOF;       
+   fTimeWalkCorr=p.fTimeWalkCorr;       
+   fApplyPbPbCuts=p.fApplyPbPbCuts;       
+   fWindowSizeMaxY=p.fWindowSizeMaxY;
+   fWindowSizeMaxZ=p.fWindowSizeMaxZ;
+   fWindowScaleFact=p.fWindowScaleFact;
+   fDistanceCut=p.fDistanceCut;
+   fSensRadius=p.fSensRadius;
+   fStepSize=p.fStepSize;
+   fMaxChi2=p.fMaxChi2;
+   fMaxChi2TRD=p.fMaxChi2TRD;
+   fTimeResolution=p.fTimeResolution;
+   fTimeNSigma=p.fTimeNSigma;   
+}
+//_____________________________________________________________________________
+AliTOFRecoParam& AliTOFRecoParam::operator=(const AliTOFRecoParam &p)
+{
+  //
+  // assign. operator
+  //
+   this->fTimeZero=p.fTimeZero;       
+   this->fTimeZerofromT0=p.fTimeZerofromT0;
+   this->fTimeZerofromTOF=p.fTimeZerofromTOF;       
+   this->fTimeWalkCorr=p.fTimeWalkCorr;       
+   this->fApplyPbPbCuts=p.fApplyPbPbCuts;       
+   this->fWindowSizeMaxY=p.fWindowSizeMaxY;
+   this->fWindowSizeMaxZ=p.fWindowSizeMaxZ;
+   this->fDistanceCut=p.fDistanceCut;
+   this->fWindowScaleFact=p.fWindowScaleFact;
+   this->fStepSize=p.fStepSize;
+   this->fSensRadius=p.fSensRadius;
+   this->fMaxChi2=p.fMaxChi2;
+   this->fMaxChi2TRD=p.fMaxChi2TRD;
+   this->fTimeResolution=p.fTimeResolution;
+   this->fTimeNSigma=p.fTimeNSigma;   
+   return *this;
+}
 //_____________________________________________________________________________
 AliTOFRecoParam::~AliTOFRecoParam() 
 {
@@ -63,7 +124,7 @@ AliTOFRecoParam *AliTOFRecoParam::GetPbPbparam(){
   //
   AliTOFRecoParam *param = new AliTOFRecoParam();
   param->fApplyPbPbCuts = kTRUE;
-  param->fWindowScaleFact = 3.;
+  param->fWindowScaleFact = 5.;
   param->fDistanceCut = 3.;
   return param;
 }
index 12e18f5679d7652f0201e30c3e2abed9324833cd..f17fcbde436311aad07022eabb26cdea9cc14ac6 100644 (file)
@@ -16,6 +16,8 @@ class AliTOFRecoParam : public TObject
 {
  public: 
   AliTOFRecoParam();
+  AliTOFRecoParam(const AliTOFRecoParam &p); //Copy Ctor 
+  AliTOFRecoParam& operator=(const AliTOFRecoParam &p); // ass. op.
   virtual ~AliTOFRecoParam();
   //Getters
   Bool_t   UseTimeZero()           const  { return fTimeZero;}
@@ -31,6 +33,7 @@ class AliTOFRecoParam : public TObject
   Float_t  GetSensRadius()         const  { return fSensRadius;}
   Float_t  GetStepSize()           const  { return fStepSize;}
   Double_t  GetMaxChi2()           const  { return fMaxChi2;}
+  Double_t  GetMaxChi2TRD()           const  { return fMaxChi2TRD;}
   Double_t  GetTimeResolution()    const  { return fTimeResolution;}
   Double_t  GetTimeNSigma()        const  { return fTimeNSigma;}
 
@@ -49,6 +52,7 @@ class AliTOFRecoParam : public TObject
   void  SetSensRadius(Float_t in)  {fSensRadius=in;}
   void  SetStepSize(Float_t in)  {fStepSize=in;}
   void  SetMaxChi2(Double_t in)  {fMaxChi2=in;}
+  void  SetMaxChi2TRD(Double_t in)  {fMaxChi2TRD=in;}
   void  SetTimeResolution(Double_t in)  {fTimeResolution=in;}
   void  SetTimeNSigma(Double_t in)  {fTimeNSigma=in;}
 
@@ -68,7 +72,8 @@ class AliTOFRecoParam : public TObject
   Float_t fDistanceCut;  // cut on the closest approach distance
   Float_t fSensRadius;  // Average radius of sensitive volumes (cm)
   Float_t fStepSize;  // Propagation step size (cm)
-  Double_t fMaxChi2;  // maximum X2 out of the TRD
+  Double_t fMaxChi2;  // maximum X2 track-tof clusters
+  Double_t fMaxChi2TRD;  // maximum X2 track-tof clusters
   Double_t fTimeResolution;  // Time resolution for resp. function in PID (ps)
   Double_t fTimeNSigma;  // N-Sigma Range used for resp. function in PID 
 
index 922bcf3cc6c70a4e4993da022f79a8377c19595a..846957f5cea8a2e9f2d23bffbc9ea5863a22b3d1 100644 (file)
Binary files a/TOF/Calib/RecPar/Run0_0_v0_s0.root and b/TOF/Calib/RecPar/Run0_0_v0_s0.root differ