]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fixed bug in copy and operator =.
authornilsen <nilsen@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 10 Jun 2000 10:43:34 +0000 (10:43 +0000)
committernilsen <nilsen@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 10 Jun 2000 10:43:34 +0000 (10:43 +0000)
ITS/AliITSgeomSDD.cxx
ITS/AliITSgeomSPD300.cxx
ITS/AliITSgeomSPD425.cxx
ITS/AliITSgeomSSD.cxx

index 81049f16c615fd71097acbed345d4a83a9dd0e81..84272279d40c9116b8b090de1eb6636fcf64fd50 100644 (file)
@@ -46,7 +46,7 @@ AliITSgeomSDD::AliITSgeomSDD(){
 AliITSgeomSDD::AliITSgeomSDD(AliITSgeomSDD &source){
   // Copy constructor
    if(this==&source) return;
-   this->fShapeSDD = source.fShapeSDD;
+   this->fShapeSDD = new TBRIK(*(source.fShapeSDD));
    this->fDx = source.fDx;
    this->fDy = source.fDy;
    this->fDz = source.fDz;
@@ -55,7 +55,7 @@ AliITSgeomSDD::AliITSgeomSDD(AliITSgeomSDD &source){
 AliITSgeomSDD& AliITSgeomSDD::operator=(AliITSgeomSDD &source){
   // = operator
    if(this==&source) return *this;
-   this->fShapeSDD = source.fShapeSDD;
+   this->fShapeSDD = new TBRIK(*(source.fShapeSDD));
    this->fDx = source.fDx;
    this->fDy = source.fDy;
    this->fDz = source.fDz;
index c5a1aeeb8b7bdb581935b1e8fb01dd69bed5c71c..7f774bdfdc9771876e1b2b2e384b0a440827c21b 100644 (file)
@@ -87,7 +87,7 @@ AliITSgeomSPD300::AliITSgeomSPD300(Float_t dy,Int_t nx,Float_t *bx,
 AliITSgeomSPD300::AliITSgeomSPD300(AliITSgeomSPD300 &source){
   // copy constructor
     if(&source == this) return;
-    this->fShapeSPD = source.fShapeSPD;
+    this->fShapeSPD = new TBRIK(*(source.fShapeSPD));
     this->fdx = source.fdx;
     this->fdy = source.fdy;
     this->fdz = source.fdz;
@@ -104,7 +104,7 @@ AliITSgeomSPD300::AliITSgeomSPD300(AliITSgeomSPD300 &source){
 AliITSgeomSPD300& AliITSgeomSPD300::operator=(AliITSgeomSPD300 &source){
   // = operator
     if(&source == this) return *this;
-    this->fShapeSPD = source.fShapeSPD;
+    this->fShapeSPD = new TBRIK(*(source.fShapeSPD));
     this->fdx = source.fdx;
     this->fdy = source.fdy;
     this->fdz = source.fdz;
index eea7ab5f3ee548f9f546f6b51ea9c2ab77adf25b..9dc8c86aac570aca88c9b2d6b0127fb303308294 100644 (file)
@@ -105,7 +105,7 @@ AliITSgeomSPD425::AliITSgeomSPD425(Float_t dy,Int_t nx,Float_t *bx,
 AliITSgeomSPD425::AliITSgeomSPD425(AliITSgeomSPD425 &source){
   // copy constructor
     if(&source == this) return;
-    this->fShapeSPD = source.fShapeSPD;
+    this->fShapeSPD = new TBRIK(*(source.fShapeSPD));
     this->fdx = source.fdx;
     this->fdy = source.fdy;
     this->fdz = source.fdz;
@@ -122,7 +122,7 @@ AliITSgeomSPD425::AliITSgeomSPD425(AliITSgeomSPD425 &source){
 AliITSgeomSPD425& AliITSgeomSPD425::operator=(AliITSgeomSPD425 &source){
   // = operator
     if(&source == this) return *this;
-    this->fShapeSPD = source.fShapeSPD;
+    this->fShapeSPD = new TBRIK(*(source.fShapeSPD));
     this->fdx = source.fdx;
     this->fdy = source.fdy;
     this->fdz = source.fdz;
index 205006dade2aa8f5e0a9b590a48fd0d12abc2390..30eaa0fab8a6e6a56ef1b3b9cedad600e30be31b 100644 (file)
@@ -48,7 +48,7 @@ AliITSgeomSSD::AliITSgeomSSD(const AliITSgeomSSD &source){
 //    copy  constructor
 ////////////////////////////////////////////////////////////////////////
 
-    this->fShapeSSD = source.fShapeSSD;
+    this->fShapeSSD = new TBRIK(*(source.fShapeSSD));
     return;
 }  
 
@@ -57,7 +57,7 @@ AliITSgeomSSD& AliITSgeomSSD::operator=(const AliITSgeomSSD &source) {
 //    assignment operator
 ////////////////////////////////////////////////////////////////////////
 
-    this->fShapeSSD = source.fShapeSSD;
+    this->fShapeSSD = new TBRIK(*(source.fShapeSSD));
     return *this;
 }