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;
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;
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;
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;
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;
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;
// copy constructor
////////////////////////////////////////////////////////////////////////
- this->fShapeSSD = source.fShapeSSD;
+ this->fShapeSSD = new TBRIK(*(source.fShapeSSD));
return;
}
// assignment operator
////////////////////////////////////////////////////////////////////////
- this->fShapeSSD = source.fShapeSSD;
+ this->fShapeSSD = new TBRIK(*(source.fShapeSSD));
return *this;
}