// //
///////////////////////////////////////////////////////////////////////////////
+#include <TObjArray.h>
+
+#include "AliTracker.h"
#include "AliRun.h"
#include "AliTRDCommonParam.h"
#include "AliTRDpadPlane.h"
+
ClassImp(AliTRDCommonParam)
-AliTRDCommonParam* AliTRDCommonParam::fgInstance = 0;
+AliTRDCommonParam *AliTRDCommonParam::fgInstance = 0;
Bool_t AliTRDCommonParam::fgTerminated = kFALSE;
//_ singleton implementation __________________________________________________
// Returns an instance of this class, it is created if neccessary
//
- if (fgTerminated != kFALSE)
+ if (fgTerminated != kFALSE) {
return 0;
+ }
- if (fgInstance == 0)
+ if (fgInstance == 0) {
fgInstance = new AliTRDCommonParam();
-
+ }
+
return fgInstance;
}
{
//
// 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.
//
fgTerminated = kTRUE;
- if (fgInstance != 0)
- {
+ if (fgInstance != 0) {
delete fgInstance;
fgInstance = 0;
}
//_____________________________________________________________________________
AliTRDCommonParam::AliTRDCommonParam()
:TObject()
- ,fField(0)
,fExBOn(kFALSE)
+ ,fSamplingFrequency(0.0)
,fPadPlaneArray(0)
{
//
//
// E x B effects
- fExBOn = kTRUE;
+ fExBOn = kTRUE;
- // The magnetic field strength in Tesla
- 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
+ // Sampling Frequency in MHz
+ fSamplingFrequency = 10.0;
// ----------------------------------------------------------------------------
// The pad planes
//_____________________________________________________________________________
AliTRDCommonParam::AliTRDCommonParam(const AliTRDCommonParam &p)
:TObject(p)
- ,fField(p.fField)
,fExBOn(p.fExBOn)
+ ,fSamplingFrequency(p.fSamplingFrequency)
,fPadPlaneArray(0)
{
//
// Assignment operator
//
- if (this != &p) ((AliTRDCommonParam &) p).Copy(*this);
+ if (this != &p) {
+ ((AliTRDCommonParam &) p).Copy(*this);
+ }
+
return *this;
}
// Copy function
//
- AliTRDCommonParam* target = dynamic_cast<AliTRDCommonParam*> (&p);
+ AliTRDCommonParam *target = dynamic_cast<AliTRDCommonParam*> (&p);
if (!target) {
return;
}
- target->fExBOn = fExBOn;
- target->fField = fField;
+ target->fExBOn = fExBOn;
+ target->fSamplingFrequency = fSamplingFrequency;
}