X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=TRD%2FAliTRDCommonParam.cxx;h=aa025f39305d1f95a1d12c98faf6e2659b27e868;hb=b43a3e179472b2e50be8fb654722a2dcab543b32;hp=7b3c68bec2c09e7685bc89f777213e8a38c361ab;hpb=5f5f7b5ef0e612f33c328505cf86c6a49d4ecbd4;p=u%2Fmrichter%2FAliRoot.git diff --git a/TRD/AliTRDCommonParam.cxx b/TRD/AliTRDCommonParam.cxx index 7b3c68bec2c..aa025f39305 100644 --- a/TRD/AliTRDCommonParam.cxx +++ b/TRD/AliTRDCommonParam.cxx @@ -63,7 +63,8 @@ void AliTRDCommonParam::Terminate() { // // Singleton implementation - // Deletes the instance of this class and sets the terminated flag, instances cannot be requested anymore + // Deletes the instance of this class and sets the terminated flag, + // instances cannot be requested anymore // This function can be called several times. // @@ -79,8 +80,8 @@ void AliTRDCommonParam::Terminate() //_____________________________________________________________________________ AliTRDCommonParam::AliTRDCommonParam() :TObject() - ,fField(0) ,fExBOn(kFALSE) + ,fSamplingFrequency(0.0) ,fPadPlaneArray(0) { // @@ -99,19 +100,10 @@ void AliTRDCommonParam::Init() // // E x B effects - fExBOn = kTRUE; - - // The magnetic field strength in Tesla - fField = AliTracker::GetBz() * 0.1; - - if (TMath::Abs(fField) < 1e-5) { - Info("Init", "MC B field ... "); - Double_t x[3] = { 0.0, 0.0, 0.0 }; - Double_t b[3]; - gAlice->Field(x,b); // b[] is in kilo Gauss - fField = b[2] * 0.1; // Tesla - } + fExBOn = kTRUE; + // Sampling Frequency in MHz + fSamplingFrequency = 10.0; // ---------------------------------------------------------------------------- // The pad planes @@ -146,8 +138,8 @@ AliTRDCommonParam::~AliTRDCommonParam() //_____________________________________________________________________________ AliTRDCommonParam::AliTRDCommonParam(const AliTRDCommonParam &p) :TObject(p) - ,fField(p.fField) ,fExBOn(p.fExBOn) + ,fSamplingFrequency(p.fSamplingFrequency) ,fPadPlaneArray(0) { // @@ -183,8 +175,8 @@ void AliTRDCommonParam::Copy(TObject &p) const return; } - target->fExBOn = fExBOn; - target->fField = fField; + target->fExBOn = fExBOn; + target->fSamplingFrequency = fSamplingFrequency; }