]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TOF/AliTOFRecoParam.cxx
Updated alignment objects (Raffaele)
[u/mrichter/AliRoot.git] / TOF / AliTOFRecoParam.cxx
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                                  //
20 //                                                                           //  
21 //                                                                           //
22 ///////////////////////////////////////////////////////////////////////////////
23
24
25 #include "AliTOFRecoParam.h"
26
27 ClassImp(AliTOFRecoParam)
28
29 //_____________________________________________________________________________
30 AliTOFRecoParam::AliTOFRecoParam():
31   AliDetectorRecoParam(),       
32   fTimeZero(kFALSE),       
33   fTimeZerofromT0(kFALSE),       
34   fTimeZerofromTOF(kFALSE),       
35   fTimeWalkCorr(kFALSE),       
36   fApplyPbPbCuts(kFALSE),       
37   fWindowSizeMaxY(50.),
38   fWindowSizeMaxZ(35.),
39   fWindowScaleFact(5.),
40   fDistanceCut(3.),
41   fSensRadius(379.5),
42   fStepSize(0.1),
43   fMaxChi2(10.),
44   fMaxChi2TRD(150.),
45   fTimeResolution(80.),
46   fTimeNSigma(5.)
47 {
48   //
49   // constructor
50   //
51   SetNameTitle("TOF","TOF");
52 }
53 //_____________________________________________________________________________
54 AliTOFRecoParam::AliTOFRecoParam(const AliTOFRecoParam &p):
55   AliDetectorRecoParam(),       
56   fTimeZero(kFALSE),       
57   fTimeZerofromT0(kFALSE),       
58   fTimeZerofromTOF(kFALSE),       
59   fTimeWalkCorr(kFALSE),       
60   fApplyPbPbCuts(kFALSE),       
61   fWindowSizeMaxY(50.),
62   fWindowSizeMaxZ(35.),
63   fWindowScaleFact(5.),
64   fDistanceCut(3.),
65   fSensRadius(379.5),
66   fStepSize(0.1),
67   fMaxChi2(10.),
68   fMaxChi2TRD(150.),
69   fTimeResolution(80.),
70   fTimeNSigma(5.)
71  { 
72   //copy Ctor
73
74    fName = p.fName;
75    fTitle = p.fTitle;
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;
87    fMaxChi2=p.fMaxChi2;
88    fMaxChi2TRD=p.fMaxChi2TRD;
89    fTimeResolution=p.fTimeResolution;
90    fTimeNSigma=p.fTimeNSigma;   
91
92 }
93 //_____________________________________________________________________________
94 AliTOFRecoParam& AliTOFRecoParam::operator=(const AliTOFRecoParam &p)
95 {
96   //
97   // assign. operator
98   //
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;   
114    return *this;
115 }
116 //_____________________________________________________________________________
117 AliTOFRecoParam::~AliTOFRecoParam() 
118 {
119   //
120   // destructor
121   //  
122 }
123
124 //_____________________________________________________________________________
125 AliTOFRecoParam *AliTOFRecoParam::GetPbPbparam(){
126   //
127   // set default reconstruction parameters for PbPb.
128   //
129   AliTOFRecoParam *param = new AliTOFRecoParam();
130   param->fApplyPbPbCuts = kTRUE;
131   param->fWindowScaleFact = 5.;
132   param->fDistanceCut = 3.;
133   return param;
134 }
135
136 //_____________________________________________________________________________
137 AliTOFRecoParam *AliTOFRecoParam::GetPPparam(){
138   //
139   // set default reconstruction parameters for PP.
140   //
141   AliTOFRecoParam *param = new AliTOFRecoParam();
142   param->fApplyPbPbCuts = kFALSE;
143   param->fWindowScaleFact = 5.;
144   param->fDistanceCut = 10.;
145   return param;
146 }