X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=HMPID%2FAliHMPIDRecoParam.cxx;h=b30965b9cdcd863454f35c5f9cb9d5622a74f2cb;hb=b018f09d15ce14c883453c8eb76fc85d130ae48a;hp=6b6a9db5c8dfe9584217a94c776c2247471fca6b;hpb=451299f30824a801283e1ea77d45640f00f38567;p=u%2Fmrichter%2FAliRoot.git diff --git a/HMPID/AliHMPIDRecoParam.cxx b/HMPID/AliHMPIDRecoParam.cxx index 6b6a9db5c8d..b30965b9cdc 100644 --- a/HMPID/AliHMPIDRecoParam.cxx +++ b/HMPID/AliHMPIDRecoParam.cxx @@ -60,12 +60,14 @@ AliHMPIDRecoParam& AliHMPIDRecoParam::operator=(const AliHMPIDRecoParam &p) // // assign. operator // - AliDetectorRecoParam::operator=(p); - this->fHmpRecoMode= p.fHmpRecoMode; - this->fHmpFixedDistCut=p.fHmpFixedDistCut; - for(Int_t iCh=AliHMPIDParam::kMinCh;iCh<=AliHMPIDParam::kMaxCh;iCh++) this->fHmpUserCut[iCh] = p.fHmpUserCut[iCh]; - this->fHmpTrackMatchingDist=p.fHmpTrackMatchingDist; - for(Int_t iPol=0;iPol<5;iPol++) this->fHmpTrackMatchingDistParas[iPol]=p.fHmpTrackMatchingDistParas[iPol]; + if(this!=&p){ + AliDetectorRecoParam::operator=(p); + this->fHmpRecoMode= p.fHmpRecoMode; + this->fHmpFixedDistCut=p.fHmpFixedDistCut; + for(Int_t iCh=AliHMPIDParam::kMinCh;iCh<=AliHMPIDParam::kMaxCh;iCh++) this->fHmpUserCut[iCh] = p.fHmpUserCut[iCh]; + this->fHmpTrackMatchingDist=p.fHmpTrackMatchingDist; + for(Int_t iPol=0;iPol<5;iPol++) this->fHmpTrackMatchingDistParas[iPol]=p.fHmpTrackMatchingDistParas[iPol]; + } return *this; } //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++