add un-use functionality to clusters
[u/mrichter/AliRoot.git] / TOF / AliTOFRecoParam.cxx
CommitLineData
52ffea62 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
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 **************************************************************************/
15
16
17///////////////////////////////////////////////////////////////////////////////
18// //
19// Class with TOF reconstruction parameters //
90b234fe 20// //
52ffea62 21// //
22///////////////////////////////////////////////////////////////////////////////
23
24
90b234fe 25#include "AliLog.h"
26
52ffea62 27#include "AliTOFRecoParam.h"
28
29ClassImp(AliTOFRecoParam)
30
31//_____________________________________________________________________________
32AliTOFRecoParam::AliTOFRecoParam():
93ed261e 33 AliDetectorRecoParam(),
52ffea62 34 fTimeZero(kFALSE),
35 fTimeZerofromT0(kFALSE),
36 fTimeZerofromTOF(kFALSE),
37 fTimeWalkCorr(kFALSE),
38 fApplyPbPbCuts(kFALSE),
39 fWindowSizeMaxY(50.),
40 fWindowSizeMaxZ(35.),
15ed3d4f 41 fWindowScaleFact(5.),
52ffea62 42 fDistanceCut(3.),
8dacd1bb 43 fSensRadius(379.5),
52ffea62 44 fStepSize(0.1),
15ed3d4f 45 fMaxChi2(10.),
46 fMaxChi2TRD(150.),
52ffea62 47 fTimeResolution(80.),
bfdbf8ca 48 fTimeNSigma(5.)
52ffea62 49{
50 //
51 // constructor
52 //
93ed261e 53 SetNameTitle("TOF","TOF");
52ffea62 54}
15ed3d4f 55//_____________________________________________________________________________
56AliTOFRecoParam::AliTOFRecoParam(const AliTOFRecoParam &p):
8a190ba2 57 AliDetectorRecoParam(p),
58 fTimeZero(p.fTimeZero),
59 fTimeZerofromT0(p.fTimeZerofromT0),
60 fTimeZerofromTOF(p.fTimeZerofromTOF),
61 fTimeWalkCorr(p.fTimeWalkCorr),
62 fApplyPbPbCuts(p.fApplyPbPbCuts),
63 fWindowSizeMaxY(p.fWindowSizeMaxY),
64 fWindowSizeMaxZ(p.fWindowSizeMaxZ),
65 fWindowScaleFact(p.fWindowScaleFact),
66 fDistanceCut(p.fDistanceCut),
67 fSensRadius(p.fSensRadius),
68 fStepSize(p.fStepSize),
69 fMaxChi2(p.fMaxChi2),
70 fMaxChi2TRD(p.fMaxChi2TRD),
71 fTimeResolution(p.fTimeResolution),
72 fTimeNSigma(p.fTimeNSigma)
15ed3d4f 73 {
74 //copy Ctor
52ffea62 75
8a190ba2 76
77}
78//_____________________________________________________________________________
79AliTOFRecoParam& AliTOFRecoParam::operator=(const AliTOFRecoParam &p)
80{
81 //
82 // assign. operator
83 //
84
85 if (this == &p)
86 return *this;
87
88 AliDetectorRecoParam::operator=(p);
89 fTimeZero=p.fTimeZero;
15ed3d4f 90 fTimeZerofromT0=p.fTimeZerofromT0;
91 fTimeZerofromTOF=p.fTimeZerofromTOF;
92 fTimeWalkCorr=p.fTimeWalkCorr;
93 fApplyPbPbCuts=p.fApplyPbPbCuts;
94 fWindowSizeMaxY=p.fWindowSizeMaxY;
95 fWindowSizeMaxZ=p.fWindowSizeMaxZ;
15ed3d4f 96 fDistanceCut=p.fDistanceCut;
8a190ba2 97 fWindowScaleFact=p.fWindowScaleFact;
15ed3d4f 98 fStepSize=p.fStepSize;
8a190ba2 99 fSensRadius=p.fSensRadius;
15ed3d4f 100 fMaxChi2=p.fMaxChi2;
101 fMaxChi2TRD=p.fMaxChi2TRD;
102 fTimeResolution=p.fTimeResolution;
103 fTimeNSigma=p.fTimeNSigma;
15ed3d4f 104 return *this;
105}
52ffea62 106//_____________________________________________________________________________
107AliTOFRecoParam::~AliTOFRecoParam()
108{
109 //
110 // destructor
111 //
112}
113
114//_____________________________________________________________________________
115AliTOFRecoParam *AliTOFRecoParam::GetPbPbparam(){
116 //
117 // set default reconstruction parameters for PbPb.
118 //
119 AliTOFRecoParam *param = new AliTOFRecoParam();
120 param->fApplyPbPbCuts = kTRUE;
15ed3d4f 121 param->fWindowScaleFact = 5.;
52ffea62 122 param->fDistanceCut = 3.;
123 return param;
124}
125
126//_____________________________________________________________________________
127AliTOFRecoParam *AliTOFRecoParam::GetPPparam(){
128 //
129 // set default reconstruction parameters for PP.
130 //
131 AliTOFRecoParam *param = new AliTOFRecoParam();
132 param->fApplyPbPbCuts = kFALSE;
133 param->fWindowScaleFact = 5.;
134 param->fDistanceCut = 10.;
135 return param;
136}
90b234fe 137
138//_____________________________________________________________________________
139AliTOFRecoParam *AliTOFRecoParam::GetCosmicMuonParam(){
140 //
141 // set default reconstruction parameters for cosmic muon run
142 //
143 AliTOFRecoParam *param = new AliTOFRecoParam();
144 param->fApplyPbPbCuts = kFALSE;
145 param->fWindowScaleFact = 5.;
146 param->fDistanceCut = 10.;
147 return param;
148}
149
150//_____________________________________________________________________________
151void AliTOFRecoParam::PrintParameters() const
152{
153 //
154 // Printing of the used TOF reconstruction parameters
155 //
156
157 AliInfo(Form(" Use Time Zero info in Pid: %i", fTimeZero));
158 AliInfo(Form(" Use Time Zero as determined by T0: %i", fTimeZerofromT0));
159 AliInfo(Form(" Use Time Zero as determined from TOF: %i",
160 fTimeZerofromTOF));
161 AliInfo(Form(" Correct for signal time walk in z: %i", fTimeWalkCorr));
162 AliInfo(Form(" Apply high flux cuts: %i", fApplyPbPbCuts));
163
164 AliInfo(Form(" Cluster search window - size, Y: %f cm", fWindowSizeMaxY));
165 AliInfo(Form(" Cluster search window - size, Z: %f cm", fWindowSizeMaxZ));
166 AliInfo(Form(" Cluster search window - scale factor: %f",
167 fWindowScaleFact));
168
169 AliInfo(Form(" Cut on the closest approach distance: %f", fDistanceCut));
170 AliInfo(Form(" Average radius of sensitive volumes: %f cm", fSensRadius));
171 AliInfo(Form(" Propagation step size: %f cm", fStepSize));
172 AliInfo(Form(" Maximum X2 track-tof clusters: %f", fMaxChi2));
173
174 AliInfo(Form(" Maximum X2 track-tof clusters (TRD): %f", fMaxChi2TRD));
175 AliInfo(Form(" Time resolution for responce function in PID: %f ps",
176 fTimeResolution));
177 AliInfo(Form(" N-Sigma Range used for responce function in PID: %f",
178 fTimeNSigma));
179
180}