From a25ae7b508e27a40dfba750452e097b56c080de5 Mon Sep 17 00:00:00 2001 From: ivana Date: Wed, 17 Oct 2007 13:00:34 +0000 Subject: [PATCH 1/1] No longer uses TObject::Clone default implementation as it turns out to be too slow (Laurent) --- MUON/AliMUONDigit.h | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.31.1