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 T0 reconstruction parameters //
21 // for low flux time-amplitude correction equalize time to amplitude 1 MIP;
22 // for high flux - to 15MIP
23 // To have nice time spectra after reconstruction we need to know
24 // reference point to write t(i) - RefPoint.
25 // It can be apparatus RefPoint or one of PMT //
26 // fRefPoint - number of channel with RF
28 // Alla.Maevskaya@cern.ch
29 /////////////////////////////////////////////////////////////////////////
33 #include "AliT0RecoParam.h"
34 #include "Riostream.h"
36 ClassImp(AliT0RecoParam)
41 //_____________________________________________________________________________
42 AliT0RecoParam::AliT0RecoParam():
43 AliDetectorRecoParam(),
54 //_____________________________________________________________________________
55 AliT0RecoParam::~AliT0RecoParam()
62 //_____________________________________________________________________________
64 AliT0RecoParam::AliT0RecoParam(const AliT0RecoParam &p):
65 AliDetectorRecoParam(p),
67 fRefPoint(p.fRefPoint)
73 //_____________________________________________________________________________
75 AliT0RecoParam& AliT0RecoParam:: operator=(const AliT0RecoParam &p)
84 AliDetectorRecoParam::operator=(p);
86 fRefPoint = p.fRefPoint;
90 //_____________________________________________________________________________
92 AliT0RecoParam *AliT0RecoParam::GetLowFluxParam()
95 // make default reconstruction parameters for low flux env.
97 AliT0RecoParam *param = new AliT0RecoParam();
100 for (Int_t i=0; i<500; i++)
103 param-> fHigh[i]=10000.;
105 param->SetName("Low Flux");
106 param->SetTitle("Low Flux");
110 //_____________________________________________________________________________
112 AliT0RecoParam *AliT0RecoParam::GetHighFluxParam()
115 // make reco parameters for high flux env.
118 AliT0RecoParam *param = new AliT0RecoParam();
120 param->fRefPoint = 0;
121 for (Int_t i=0; i<500; i++)
124 param-> fHigh[i]=20000.;
127 param->SetName("High Flux");
128 param->SetTitle("High Flux");
133 //_____________________________________________________________________________
135 AliT0RecoParam *AliT0RecoParam::GetLaserTestParam()
138 // special setting for laser
140 AliT0RecoParam *param = new AliT0RecoParam();
142 param->fRefPoint = 1;
143 for (Int_t i=0; i<500; i++)
146 param-> fHigh[i]=12000.;
149 param->SetName("Laser Flux");
150 param->SetTitle("Laser Flux");
153 //_____________________________________________________________________________
155 void AliT0RecoParam::PrintParameters() const
158 // Printing of the used T0 reconstruction parameters
160 AliInfo(Form(" Reference amplitude for walk corerection : %f", fRefAmp));
161 AliInfo(Form(" Reference point in channel : %i", fRefPoint));
162 cout<<" AliT0RecoParam::PrintParameters() "<<endl;
163 for (Int_t i=0; i<500; i++) cout<<i<<" "<<fLow[i]<<" "<<fHigh[i]<<endl;