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 **************************************************************************/
18 ///////////////////////////////////////////////////////////////////////////////
20 // TRD parameter class //
22 ///////////////////////////////////////////////////////////////////////////////
24 // WARNING: This class is obsolete. As soon as all function calls are replaced, the class will be removed.
30 #include "AliTRDparameter.h"
32 ClassImp(AliTRDparameter)
34 //_____________________________________________________________________________
35 AliTRDparameter::AliTRDparameter():TNamed()
38 // AliTRDparameter default constructor
45 //_____________________________________________________________________________
46 AliTRDparameter::AliTRDparameter(const Text_t *name, const Text_t *title)
50 // AliTRDparameter constructor
60 //_____________________________________________________________________________
61 AliTRDparameter::AliTRDparameter(const AliTRDparameter &p):TNamed(p)
64 // AliTRDparameter copy constructor
67 ((AliTRDparameter &) p).Copy(*this);
71 ///_____________________________________________________________________________
72 AliTRDparameter::~AliTRDparameter()
75 // AliTRDparameter destructor
79 //_____________________________________________________________________________
80 AliTRDparameter &AliTRDparameter::operator=(const AliTRDparameter &p)
83 // Assignment operator
86 if (this != &p) ((AliTRDparameter &) p).Copy(*this);
91 //_____________________________________________________________________________
92 void AliTRDparameter::Copy(TObject &p) const
98 /*((AliTRDparameter &) p).fDiffusionT = fDiffusionT;
99 ((AliTRDparameter &) p).fDiffusionL = fDiffusionL;*/
100 //((AliTRDparameter &) p).fOmegaTau = fOmegaTau;
101 //((AliTRDparameter &) p).fLorentzFactor = fLorentzFactor;
102 ((AliTRDparameter &) p).fDriftVelocity = fDriftVelocity;
105 /*((AliTRDparameter &) p).fTimeStructOn = fTimeStructOn;
106 if (((AliTRDparameter &) p).fTimeStruct1)
107 delete [] ((AliTRDparameter &) p).fTimeStruct1;
108 ((AliTRDparameter &) p).fTimeStruct1 = new Float_t[38*11];
109 for (Int_t i = 0; i < 38*11; i++) {
110 ((AliTRDparameter &) p).fTimeStruct1[i] = fTimeStruct1[i];
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];
121 //_____________________________________________________________________________
122 void AliTRDparameter::Init()
125 // Initializes the parameter
131 // ----------------------------------------------------------------------------
132 // The digitization parameters
133 // ----------------------------------------------------------------------------
136 // The drift velocity (in drift region) and the time structure of the
137 // drift cells. Default is 1.5 cm/mus
138 fDriftVelocity = 1.5;
140 // Additional time bins before and after the drift region.
141 // Default is to only sample the drift region
143 SetExpandTimeBin(0,0);
146 // ----------------------------------------------------------------------------
147 // The clusterization parameter
148 // ----------------------------------------------------------------------------
155 //_____________________________________________________________________________
156 void AliTRDparameter::ReInit()
159 // Reinitializes the parameter class after a change
164 //_____________________________________________________________________________
165 void AliTRDparameter::PrintDriftVelocity()
168 // Prints the used drift velocity
171 printf("<AliTRDparameter::PrintDriftVelocity> Driftvelocity = %.3f\n"