]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSsegmentation.cxx
Additional protection needed by AliRawReaderMemory (Henrik)
[u/mrichter/AliRoot.git] / ITS / AliITSsegmentation.cxx
index d5b1b75fb7b6a2f4677efca11a707429df37dd8c..ead24e6ec37ffed30c034c324512c128771a30b5 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(AliITSgeom* geom):
+fDx(0),
+fDz(0),
+fDy(0),
+fCorr(0){
+  // Default constructor
+  AliWarning(Form("AliITSgeom (%X) no longer needed in ITS segmentation. Use default constructor\n",geom))
+}
+
 
 //_____________________________________________________________
 AliITSsegmentation::~AliITSsegmentation(){
@@ -33,7 +45,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 +63,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);
 }