]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSsegmentation.cxx
minor fix
[u/mrichter/AliRoot.git] / ITS / AliITSsegmentation.cxx
index d5b1b75fb7b6a2f4677efca11a707429df37dd8c..fb62bda72976168ec9319149673d90760c374dca 100644 (file)
 ClassImp(AliITSsegmentation)
 
 //_____________________________________________________________
-AliITSsegmentation::AliITSsegmentation(){
+AliITSsegmentation::AliITSsegmentation():
+fDx(0),
+fDz(0),
+fDy(0),
+fCorr(0){
   // Default constructor
-  SetDetSize(0.,0.,0.);
-  fGeom = 0;
-  fCorr = 0;
 }
-
 //_____________________________________________________________
 AliITSsegmentation::~AliITSsegmentation(){
   // destructor
@@ -33,7 +34,6 @@ void AliITSsegmentation::Copy(TObject &obj) const {
   ((AliITSsegmentation& ) obj).fDz      = fDz;
   ((AliITSsegmentation& ) obj).fDx      = fDx;
   ((AliITSsegmentation& ) obj).fDy      = fDy;
-  ((AliITSsegmentation& ) obj).fGeom    = fGeom; // copy only the pointer
   if(fCorr){
     ((AliITSsegmentation& ) obj).fCorr    = new TF1(*fCorr); // make a proper copy
   }
@@ -52,7 +52,11 @@ AliITSsegmentation& AliITSsegmentation::operator=(
 }
 //______________________________________________________________________
 AliITSsegmentation::AliITSsegmentation(const AliITSsegmentation &source):
-    TObject(source){
+    TObject(source),
+fDx(0),
+fDz(0),
+fDy(0),
+fCorr(0){
     // copy constructor
   source.Copy(*this);
 }