]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSetfSDD.cxx
Bug fix: adding SHLIB to SYSLIBS (C.Holm)
[u/mrichter/AliRoot.git] / ITS / AliITSetfSDD.cxx
index dd966286bd52b24d0a4d6b3b39f14d0856a9b87a..8e26a3cd2e7ac08cd80c41fc74eba3e77e2c03c3 100644 (file)
@@ -33,31 +33,41 @@ ClassImp(AliITSetfSDD)
 const Int_t AliITSetfSDD::AliITSetfSDDparam::fgkMaxNofPoles = 5;
 const Int_t AliITSetfSDD::AliITSetfSDDparam::fgkMaxNofSamples = 1024;
 
-Int_t ppower(Int_t b, Int_t e) {
-  Int_t power = 1;
-  for(Int_t i=0; i<e; i++) power *= b;
-  return power;
-}
-
-AliITSetfSDD::AliITSetfSDD() {
+AliITSetfSDD::AliITSetfSDD():
+fTimeDelay(0),
+fSamplingTime(0),
+fT0(0),
+fDf(0.),
+fA0(0.) ,
+fZeroM(0),
+fZeroR(0),
+fZeroI(0),
+fPoleM(0),
+fPoleR(0),
+fPoleI(0),
+fTfR(0),
+fTfI(0),
+fWR(0),
+fWI(0){
   // Default constructor
-  fTimeDelay = 0.;
-  fSamplingTime = 0.;
-  fT0 = 0.;
-  fDf = 0.;
-  fA0 = 0.;
-  fZeroM = 0;
-  fZeroR = 0;
-  fPoleM = 0;
-  fPoleR = 0;
-  fPoleI = 0;
-  fTfR = 0;
-  fTfI = 0;
-  fWR = 0;
-  fWI = 0;
 }
 
-AliITSetfSDD::AliITSetfSDD(Double_t timestep, Int_t amplif)
+AliITSetfSDD::AliITSetfSDD(Double_t timestep, Int_t amplif):
+fTimeDelay(0),
+fSamplingTime(0),
+fT0(0),
+fDf(0.),
+fA0(0.) ,
+fZeroM(0),
+fZeroR(0),
+fZeroI(0),
+fPoleM(0),
+fPoleR(0),
+fPoleI(0),
+fTfR(0),
+fTfI(0),
+fWR(0),
+fWI(0)
 {
   // Standard constructor. sampling time in ns
 
@@ -68,10 +78,9 @@ AliITSetfSDD::AliITSetfSDD(Double_t timestep, Int_t amplif)
   fTimeDelay = 53.5;
   if(amplif == 2) fTimeDelay = 35.5;
   fSamplingTime = timestep;
-
+  Double_t xGiga=1.0E+9;
   fT0 = 0.;
-  fDf = ppower(10,9)/(AliITSetfSDDparam::NumberOfSamples()*fSamplingTime);
-
+  fDf = xGiga/(AliITSetfSDDparam::NumberOfSamples()*fSamplingTime);
   Int_t i,j;
   fZeroM = new Double_t[AliITSetfSDDparam::NumberOfPoles()];
   fZeroR = new Double_t [AliITSetfSDDparam::NumberOfPoles()];
@@ -166,8 +175,8 @@ AliITSetfSDD::AliITSetfSDD(Double_t timestep, Int_t amplif)
       Double_t vVI = vVM*sin(vVA);
       //cout << "VM: " << vVM << ", VA: " << vVA << endl;
       //cout << "VR: " << vVR << ", VI: " << vVI << endl;
-      fTfR[i] = vVR*ppower(10,9);
-      fTfI[i] = vVI*ppower(10,9);
+      fTfR[i] = vVR*xGiga;
+      fTfI[i] = vVI*xGiga;
       //cout << "fTfR[" << i << "] = " << fTfR[i] << endl;
       //cout << "fTfI[" << i << "] = " << fTfI[i] << endl;
       if(i) {
@@ -190,20 +199,6 @@ AliITSetfSDD::AliITSetfSDD(Double_t timestep, Int_t amplif)
 
 }
 
-//______________________________________________________________________
-AliITSetfSDD::AliITSetfSDD(const AliITSetfSDD &obj) : TObject(obj) {
-  // Copy constructor
-  // Copies are not allowed. The method is protected to avoid misuse.
-  Error("AliITSetfSDD","Copy constructor not allowed\n");
-}
-
-//______________________________________________________________________
-AliITSetfSDD& AliITSetfSDD::operator=(const AliITSetfSDD& /* obj */){
-  // Assignment operator
-  // Assignment is not allowed. The method is protected to avoid misuse.
-  Error("= operator","Assignment operator not allowed\n");
-  return *this;
-}
 
 AliITSetfSDD::~AliITSetfSDD(){
   // Destructor