//------------------------------------------------------------------------
AliTOFReconstructor::AliTOFReconstructor(const AliTOFReconstructor &source)
- : AliReconstructor(),
- fTOFcalib(0)
+ : AliReconstructor(source),
+ fTOFcalib(source.fTOFcalib)
{
//
// copy ctor
//
- this->fTOFcalib=source.fTOFcalib;
}
//------------------------------------------------------------------------
//
// assignment op.
//
- this->fTOFcalib=source.fTOFcalib;
+ if (this == &source)
+ return *this;
+
+ fTOFcalib=source.fTOFcalib;
return *this;
}
//_____________________________________________________________________________