From: ivana Date: Wed, 17 Oct 2007 13:00:34 +0000 (+0000) Subject: No longer uses TObject::Clone default implementation as it turns out to be too slow... X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=a25ae7b508e27a40dfba750452e097b56c080de5;hp=f6c291ef75674e09f8dfa92a5672b1b95b31bb81 No longer uses TObject::Clone default implementation as it turns out to be too slow (Laurent) --- diff --git a/MUON/AliMUONDigit.h b/MUON/AliMUONDigit.h index 94f8cf853e2..187bc326622 100644 --- a/MUON/AliMUONDigit.h +++ b/MUON/AliMUONDigit.h @@ -25,6 +25,9 @@ class AliMUONDigit : public AliMUONVDigit AliMUONDigit& operator=(const AliMUONDigit& rhs); + /// Own clone methods (as the default TObject::Clone turned out to be pretty slow !) + virtual TObject* Clone(const char* newname="") const { return new AliMUONDigit(*this); } + virtual Bool_t HasMCInformation() const { return kTRUE; } virtual Int_t DetElemId()const {return fDetElemId;} ///< Return detection element ID