]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TRD/AliTRDparameter.cxx
Update of calibration classes by Jan Fiete
[u/mrichter/AliRoot.git] / TRD / AliTRDparameter.cxx
CommitLineData
17b26de4 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
88cb7938 16/* $Id$ */
17b26de4 17
18///////////////////////////////////////////////////////////////////////////////
19// //
20// TRD parameter class //
21// //
22///////////////////////////////////////////////////////////////////////////////
23
cc7cef99 24// WARNING: This class is obsolete. As soon as all function calls are replaced, the class will be removed.
25
3551db50 26#include <iostream>
bdbb05bb 27
17b26de4 28#include "AliRun.h"
17b26de4 29
17b26de4 30#include "AliTRDparameter.h"
17b26de4 31
32ClassImp(AliTRDparameter)
33
34//_____________________________________________________________________________
35AliTRDparameter::AliTRDparameter():TNamed()
36{
37 //
38 // AliTRDparameter default constructor
39 //
40
17b26de4 41 fDriftVelocity = 0.0;
ccb4315c 42
17b26de4 43}
44
45//_____________________________________________________________________________
46AliTRDparameter::AliTRDparameter(const Text_t *name, const Text_t *title)
47 :TNamed(name,title)
48{
49 //
50 // AliTRDparameter constructor
51 //
52
67689223 53 fDriftVelocity = 0.0;
3551db50 54
17b26de4 55 Init();
56
57}
58
59
60//_____________________________________________________________________________
73ae7b59 61AliTRDparameter::AliTRDparameter(const AliTRDparameter &p):TNamed(p)
17b26de4 62{
63 //
64 // AliTRDparameter copy constructor
65 //
66
67 ((AliTRDparameter &) p).Copy(*this);
68
69}
70
71///_____________________________________________________________________________
72AliTRDparameter::~AliTRDparameter()
73{
74 //
75 // AliTRDparameter destructor
76 //
17b26de4 77}
78
79//_____________________________________________________________________________
80AliTRDparameter &AliTRDparameter::operator=(const AliTRDparameter &p)
81{
82 //
83 // Assignment operator
84 //
85
86 if (this != &p) ((AliTRDparameter &) p).Copy(*this);
87 return *this;
88
89}
90
91//_____________________________________________________________________________
e0d47c25 92void AliTRDparameter::Copy(TObject &p) const
17b26de4 93{
94 //
95 // Copy function
96 //
97
3551db50 98 /*((AliTRDparameter &) p).fDiffusionT = fDiffusionT;
99 ((AliTRDparameter &) p).fDiffusionL = fDiffusionL;*/
100 //((AliTRDparameter &) p).fOmegaTau = fOmegaTau;
101 //((AliTRDparameter &) p).fLorentzFactor = fLorentzFactor;
17b26de4 102 ((AliTRDparameter &) p).fDriftVelocity = fDriftVelocity;
17b26de4 103
17b26de4 104
3551db50 105 /*((AliTRDparameter &) p).fTimeStructOn = fTimeStructOn;
ccb4315c 106 if (((AliTRDparameter &) p).fTimeStruct1)
107 delete [] ((AliTRDparameter &) p).fTimeStruct1;
108 ((AliTRDparameter &) p).fTimeStruct1 = new Float_t[38*11];
682619b9 109 for (Int_t i = 0; i < 38*11; i++) {
ccb4315c 110 ((AliTRDparameter &) p).fTimeStruct1[i] = fTimeStruct1[i];
111 }
112 if (((AliTRDparameter &) p).fTimeStruct2)
113 delete [] ((AliTRDparameter &) p).fTimeStruct2;
114 ((AliTRDparameter &) p).fTimeStruct2 = new Float_t[38*11];
115 for (Int_t i = 0; i < 38*11; i++) {
116 ((AliTRDparameter &) p).fTimeStruct2[i] = fTimeStruct2[i];
3551db50 117 }*/
a328fff9 118
17b26de4 119}
120
121//_____________________________________________________________________________
122void AliTRDparameter::Init()
123{
124 //
125 // Initializes the parameter
126 //
a5cadd36 127
17b26de4 128
17b26de4 129
130 //
131 // ----------------------------------------------------------------------------
ccb4315c 132 // The digitization parameters
17b26de4 133 // ----------------------------------------------------------------------------
134 //
135
ccb4315c 136 // The drift velocity (in drift region) and the time structure of the
137 // drift cells. Default is 1.5 cm/mus
3551db50 138 fDriftVelocity = 1.5;
ccb4315c 139
140 // Additional time bins before and after the drift region.
141 // Default is to only sample the drift region
3551db50 142 fTimeMax = 22;
ccb4315c 143 SetExpandTimeBin(0,0);
144
17b26de4 145 //
146 // ----------------------------------------------------------------------------
147 // The clusterization parameter
148 // ----------------------------------------------------------------------------
149 //
150
17b26de4 151 ReInit();
152
153}
154
155//_____________________________________________________________________________
156void AliTRDparameter::ReInit()
157{
158 //
159 // Reinitializes the parameter class after a change
160 //
a5cadd36 161}
17b26de4 162
17b26de4 163
a328fff9 164//_____________________________________________________________________________
ccb4315c 165void AliTRDparameter::PrintDriftVelocity()
166{
a5cadd36 167 //
168 // Prints the used drift velocity
169 //
170
171 printf("<AliTRDparameter::PrintDriftVelocity> Driftvelocity = %.3f\n"
172 ,fDriftVelocity);
173
ccb4315c 174}