1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
17 ///////////////////////////////////////////////////////////////////////////////
19 // Class with TOF reconstruction parameters //
22 ///////////////////////////////////////////////////////////////////////////////
25 #include "AliTOFRecoParam.h"
27 ClassImp(AliTOFRecoParam)
29 //_____________________________________________________________________________
30 AliTOFRecoParam::AliTOFRecoParam():
33 fTimeZerofromT0(kFALSE),
34 fTimeZerofromTOF(kFALSE),
35 fTimeWalkCorr(kFALSE),
36 fApplyPbPbCuts(kFALSE),
52 //_____________________________________________________________________________
53 AliTOFRecoParam::AliTOFRecoParam(const AliTOFRecoParam &p):
56 fTimeZerofromT0(kFALSE),
57 fTimeZerofromTOF(kFALSE),
58 fTimeWalkCorr(kFALSE),
59 fApplyPbPbCuts(kFALSE),
73 fTimeZero=p.fTimeZero;
74 fTimeZerofromT0=p.fTimeZerofromT0;
75 fTimeZerofromTOF=p.fTimeZerofromTOF;
76 fTimeWalkCorr=p.fTimeWalkCorr;
77 fApplyPbPbCuts=p.fApplyPbPbCuts;
78 fWindowSizeMaxY=p.fWindowSizeMaxY;
79 fWindowSizeMaxZ=p.fWindowSizeMaxZ;
80 fWindowScaleFact=p.fWindowScaleFact;
81 fDistanceCut=p.fDistanceCut;
82 fSensRadius=p.fSensRadius;
83 fStepSize=p.fStepSize;
85 fMaxChi2TRD=p.fMaxChi2TRD;
86 fTimeResolution=p.fTimeResolution;
87 fTimeNSigma=p.fTimeNSigma;
89 //_____________________________________________________________________________
90 AliTOFRecoParam& AliTOFRecoParam::operator=(const AliTOFRecoParam &p)
95 this->fTimeZero=p.fTimeZero;
96 this->fTimeZerofromT0=p.fTimeZerofromT0;
97 this->fTimeZerofromTOF=p.fTimeZerofromTOF;
98 this->fTimeWalkCorr=p.fTimeWalkCorr;
99 this->fApplyPbPbCuts=p.fApplyPbPbCuts;
100 this->fWindowSizeMaxY=p.fWindowSizeMaxY;
101 this->fWindowSizeMaxZ=p.fWindowSizeMaxZ;
102 this->fDistanceCut=p.fDistanceCut;
103 this->fWindowScaleFact=p.fWindowScaleFact;
104 this->fStepSize=p.fStepSize;
105 this->fSensRadius=p.fSensRadius;
106 this->fMaxChi2=p.fMaxChi2;
107 this->fMaxChi2TRD=p.fMaxChi2TRD;
108 this->fTimeResolution=p.fTimeResolution;
109 this->fTimeNSigma=p.fTimeNSigma;
112 //_____________________________________________________________________________
113 AliTOFRecoParam::~AliTOFRecoParam()
120 //_____________________________________________________________________________
121 AliTOFRecoParam *AliTOFRecoParam::GetPbPbparam(){
123 // set default reconstruction parameters for PbPb.
125 AliTOFRecoParam *param = new AliTOFRecoParam();
126 param->fApplyPbPbCuts = kTRUE;
127 param->fWindowScaleFact = 5.;
128 param->fDistanceCut = 3.;
132 //_____________________________________________________________________________
133 AliTOFRecoParam *AliTOFRecoParam::GetPPparam(){
135 // set default reconstruction parameters for PP.
137 AliTOFRecoParam *param = new AliTOFRecoParam();
138 param->fApplyPbPbCuts = kFALSE;
139 param->fWindowScaleFact = 5.;
140 param->fDistanceCut = 10.;