fTrackArray[itrack] = new AliTrackPointArray(*res.fTrackArray[itrack]);
}
- memcpy(fBFixed,res.fBFixed,sizeof(Float_t)*6);
- memcpy(fFixed,res.fFixed,sizeof(Float_t)*6);
-
}
//_____________________________________________________________________________
{
// assignment operator
// Does not copy the track point arrays
- if(this==&res) return *this;
- ((TObject *)this)->operator=(res);
-
- fN = res.fN;
- fLast = res.fLast;
- fChi2 = res.fChi2;
- fNdf = res.fNdf;
- fMinNPoints = res.fMinNPoints;
- fIsOwner = kFALSE;
- fAlignObj = res.fAlignObj;
-
- fVolArray = res.fVolArray;
- fTrackArray = res.fTrackArray;
-
- for(Int_t i=0;i<6;i++) {
- fBFixed[i]=res.fBFixed[i];
- fFixed[i]=res.fFixed[i];
+ if(this!=&res) {
+ TObject::operator=(res);
+
+ fN = res.fN;
+ fLast = res.fLast;
+ fAlignObj = res.fAlignObj;
+ fVolArray = res.fVolArray;
+ fTrackArray = res.fTrackArray;
+ fChi2 = res.fChi2;
+ fNdf = res.fNdf;
+ fMinNPoints = res.fMinNPoints;
+ fIsOwner = kFALSE;
+
+ memcpy(fBFixed,res.fBFixed,sizeof(Float_t)*6);
+ memcpy(fFixed,res.fFixed,sizeof(Float_t)*6);
}
-
return *this;
}
// redirect stream
if ((type == kDebug) && (level > 0)) level--;
if (type + level > GetLogLevel(module, className)) { // /dev/null
- freopen("/dev/null", "a", stream);
+ if(!freopen("/dev/null", "a", stream)) AliWarning("Cannot reopen /dev/null");
} else if (fOutputTypes[type] == 0) { // stdout
if (stream != stdout) dup2(fileno(stdout), fileno(stream));
} else if (fOutputTypes[type] == 1) { // stderr
if (stream != stderr) dup2(fileno(stderr), fileno(stream));
} else if (fOutputTypes[type] == 2) { // file
- freopen(fFileNames[type], "a", stream);
+ if(!freopen(fFileNames[type], "a", stream)) AliWarning(Form("Cannot reopen %s",fFileNames[type].Data()));
} else if (fOutputTypes[type] == 3) { // external C++ stream
// redirection is not possible for external C++ streams
}