From 386fa6ff6e3c756d6b5ee5e3fa7c27dd833406ed Mon Sep 17 00:00:00 2001 From: ivana Date: Wed, 18 Jul 2007 10:45:10 +0000 Subject: [PATCH] Do not override IsSortable(), Compare() functions which are already implemented in AliMUONVDigit base class and there is nothing else added here (Artur) --- MUON/AliMUONDigit.cxx | 44 ------------------------------------------- MUON/AliMUONDigit.h | 3 --- 2 files changed, 47 deletions(-) diff --git a/MUON/AliMUONDigit.cxx b/MUON/AliMUONDigit.cxx index 37c2333070b..5d682aafb6a 100644 --- a/MUON/AliMUONDigit.cxx +++ b/MUON/AliMUONDigit.cxx @@ -166,50 +166,6 @@ AliMUONDigit::Clear(Option_t*) fNtracks=0; } -//_____________________________________________________________________________ -Int_t AliMUONDigit::Compare(const TObject *obj) const -{ - /// The order defined below is first by DE, then Signal, then - /// manuId, and then manuChannel, i.e. it should be a total ordering... - - const AliMUONDigit* d = static_cast(obj); - - if ( DetElemId() > d->DetElemId() ) - { - return 1; - } - else if ( DetElemId() < d->DetElemId() ) - { - return -1; - } - else - { - if ( Charge() > d->Charge() ) - { - return 1; - } - else if ( Charge() < d->Charge() ) - { - return -1; - } - else - { - if ( ManuId() < d->ManuId() ) - { - return 1; - } - else if ( ManuId() > d->ManuId() ) - { - return -1; - } - else - { - return ( ManuChannel() < d->ManuChannel() ) ? 1 : -1; - } - } - } -} - //______________________________________________________________________________ void AliMUONDigit::Copy(TObject& obj) const diff --git a/MUON/AliMUONDigit.h b/MUON/AliMUONDigit.h index 13f49b58420..94f8cf853e2 100644 --- a/MUON/AliMUONDigit.h +++ b/MUON/AliMUONDigit.h @@ -27,9 +27,6 @@ class AliMUONDigit : public AliMUONVDigit virtual Bool_t HasMCInformation() const { return kTRUE; } - virtual Bool_t IsSortable() const {return kTRUE;} ///< Return true if sortable - virtual Int_t Compare(const TObject *obj) const; - virtual Int_t DetElemId()const {return fDetElemId;} ///< Return detection element ID virtual Int_t PadX() const {return fPadX;} ///< Return pad number along x virtual Int_t PadY() const {return fPadY;} ///< Return pad number along y -- 2.43.0