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():
31 AliDetectorRecoParam(),
33 fTimeZerofromT0(kFALSE),
34 fTimeZerofromTOF(kFALSE),
35 fTimeWalkCorr(kFALSE),
36 fApplyPbPbCuts(kFALSE),
51 SetNameTitle("TOF","TOF");
53 //_____________________________________________________________________________
54 AliTOFRecoParam::AliTOFRecoParam(const AliTOFRecoParam &p):
55 AliDetectorRecoParam(),
57 fTimeZerofromT0(kFALSE),
58 fTimeZerofromTOF(kFALSE),
59 fTimeWalkCorr(kFALSE),
60 fApplyPbPbCuts(kFALSE),
76 fTimeZero=p.fTimeZero;
77 fTimeZerofromT0=p.fTimeZerofromT0;
78 fTimeZerofromTOF=p.fTimeZerofromTOF;
79 fTimeWalkCorr=p.fTimeWalkCorr;
80 fApplyPbPbCuts=p.fApplyPbPbCuts;
81 fWindowSizeMaxY=p.fWindowSizeMaxY;
82 fWindowSizeMaxZ=p.fWindowSizeMaxZ;
83 fWindowScaleFact=p.fWindowScaleFact;
84 fDistanceCut=p.fDistanceCut;
85 fSensRadius=p.fSensRadius;
86 fStepSize=p.fStepSize;
88 fMaxChi2TRD=p.fMaxChi2TRD;
89 fTimeResolution=p.fTimeResolution;
90 fTimeNSigma=p.fTimeNSigma;
93 //_____________________________________________________________________________
94 AliTOFRecoParam& AliTOFRecoParam::operator=(const AliTOFRecoParam &p)
99 this->fTimeZero=p.fTimeZero;
100 this->fTimeZerofromT0=p.fTimeZerofromT0;
101 this->fTimeZerofromTOF=p.fTimeZerofromTOF;
102 this->fTimeWalkCorr=p.fTimeWalkCorr;
103 this->fApplyPbPbCuts=p.fApplyPbPbCuts;
104 this->fWindowSizeMaxY=p.fWindowSizeMaxY;
105 this->fWindowSizeMaxZ=p.fWindowSizeMaxZ;
106 this->fDistanceCut=p.fDistanceCut;
107 this->fWindowScaleFact=p.fWindowScaleFact;
108 this->fStepSize=p.fStepSize;
109 this->fSensRadius=p.fSensRadius;
110 this->fMaxChi2=p.fMaxChi2;
111 this->fMaxChi2TRD=p.fMaxChi2TRD;
112 this->fTimeResolution=p.fTimeResolution;
113 this->fTimeNSigma=p.fTimeNSigma;
116 //_____________________________________________________________________________
117 AliTOFRecoParam::~AliTOFRecoParam()
124 //_____________________________________________________________________________
125 AliTOFRecoParam *AliTOFRecoParam::GetPbPbparam(){
127 // set default reconstruction parameters for PbPb.
129 AliTOFRecoParam *param = new AliTOFRecoParam();
130 param->fApplyPbPbCuts = kTRUE;
131 param->fWindowScaleFact = 5.;
132 param->fDistanceCut = 3.;
136 //_____________________________________________________________________________
137 AliTOFRecoParam *AliTOFRecoParam::GetPPparam(){
139 // set default reconstruction parameters for PP.
141 AliTOFRecoParam *param = new AliTOFRecoParam();
142 param->fApplyPbPbCuts = kFALSE;
143 param->fWindowScaleFact = 5.;
144 param->fDistanceCut = 10.;