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 ///////////////////////////////////////////////////////////////////////////////
27 #include "AliTOFRecoParam.h"
29 ClassImp(AliTOFRecoParam)
31 //_____________________________________________________________________________
32 AliTOFRecoParam::AliTOFRecoParam():
33 AliDetectorRecoParam(),
35 fTimeZerofromT0(kFALSE),
36 fTimeZerofromTOF(kFALSE),
37 fTimeWalkCorr(kFALSE),
38 fApplyPbPbCuts(kFALSE),
50 fStartTimeType(1)// 1 -> AliESDpid::kTOF_T0
55 SetNameTitle("TOF","TOF");
57 //_____________________________________________________________________________
58 AliTOFRecoParam::AliTOFRecoParam(const AliTOFRecoParam &p):
59 AliDetectorRecoParam(p),
60 fTimeZero(p.fTimeZero),
61 fTimeZerofromT0(p.fTimeZerofromT0),
62 fTimeZerofromTOF(p.fTimeZerofromTOF),
63 fTimeWalkCorr(p.fTimeWalkCorr),
64 fApplyPbPbCuts(p.fApplyPbPbCuts),
65 fWindowSizeMaxY(p.fWindowSizeMaxY),
66 fWindowSizeMaxZ(p.fWindowSizeMaxZ),
67 fWindowScaleFact(p.fWindowScaleFact),
68 fDistanceCut(p.fDistanceCut),
69 fSensRadius(p.fSensRadius),
70 fStepSize(p.fStepSize),
72 fMaxChi2TRD(p.fMaxChi2TRD),
73 fTimeResolution(p.fTimeResolution),
74 fTimeNSigma(p.fTimeNSigma),
75 fMaxDeltaTime(p.fMaxDeltaTime),
76 fStartTimeType(p.fStartTimeType)
82 //_____________________________________________________________________________
83 AliTOFRecoParam& AliTOFRecoParam::operator=(const AliTOFRecoParam &p)
92 AliDetectorRecoParam::operator=(p);
93 fTimeZero=p.fTimeZero;
94 fTimeZerofromT0=p.fTimeZerofromT0;
95 fTimeZerofromTOF=p.fTimeZerofromTOF;
96 fTimeWalkCorr=p.fTimeWalkCorr;
97 fApplyPbPbCuts=p.fApplyPbPbCuts;
98 fWindowSizeMaxY=p.fWindowSizeMaxY;
99 fWindowSizeMaxZ=p.fWindowSizeMaxZ;
100 fDistanceCut=p.fDistanceCut;
101 fWindowScaleFact=p.fWindowScaleFact;
102 fStepSize=p.fStepSize;
103 fSensRadius=p.fSensRadius;
105 fMaxChi2TRD=p.fMaxChi2TRD;
106 fTimeResolution=p.fTimeResolution;
107 fTimeNSigma=p.fTimeNSigma;
108 fMaxDeltaTime=p.fMaxDeltaTime;
109 fStartTimeType=p.fStartTimeType;
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.;
129 param->fMaxDeltaTime = 2;
133 //_____________________________________________________________________________
134 AliTOFRecoParam *AliTOFRecoParam::GetPPparam(){
136 // set default reconstruction parameters for PP.
138 AliTOFRecoParam *param = new AliTOFRecoParam();
139 param->fApplyPbPbCuts = kFALSE;
140 param->fWindowScaleFact = 5.;
141 param->fDistanceCut = 10.;
142 param->fMaxDeltaTime = 2;
146 //_____________________________________________________________________________
147 void AliTOFRecoParam::PrintParameters() const
150 // Printing of the used TOF reconstruction parameters
153 AliInfo(Form(" Use Time Zero info in Pid: %i", fTimeZero));
154 AliInfo(Form(" Use Time Zero as determined by T0: %i", fTimeZerofromT0));
155 AliInfo(Form(" Use Time Zero as determined from TOF: %i",
157 AliInfo(Form(" Correct for signal time walk in z: %i", fTimeWalkCorr));
158 AliInfo(Form(" Apply high flux cuts: %i", fApplyPbPbCuts));
160 AliInfo(Form(" Cluster search window - size, Y: %f cm", fWindowSizeMaxY));
161 AliInfo(Form(" Cluster search window - size, Z: %f cm", fWindowSizeMaxZ));
162 AliInfo(Form(" Cluster search window - scale factor: %f",
165 AliInfo(Form(" Cut on the closest approach distance: %f", fDistanceCut));
166 AliInfo(Form(" Average radius of sensitive volumes: %f cm", fSensRadius));
167 AliInfo(Form(" Propagation step size: %f cm", fStepSize));
168 AliInfo(Form(" Maximum X2 track-tof clusters: %f", fMaxChi2));
170 AliInfo(Form(" Maximum X2 track-tof clusters (TRD): %f", fMaxChi2TRD));
171 AliInfo(Form(" Time resolution for responce function in PID: %f ps",
173 AliInfo(Form(" N-Sigma Range used for responce function in PID: %f",
175 AliInfo(Form(" Max time difference between two (or more) time measurements"
176 " coming from two (or more) neighbouring pads"
177 " to define if they are coming from the same ionization event"
178 " or not: %2d bins -> %f ps",
179 fMaxDeltaTime, fMaxDeltaTime*AliTOFGeometry::TdcBinWidth()));