X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=MUON%2Fmapping%2FAliMpIntPair.h;h=3787e4f3c7360497c895de012997ace0e172ca03;hb=1c4729e8bdecb134c1d621728d303ece63accda6;hp=4085b18f3aa8e8fe0b50273532947109994e5197;hpb=ef053765b4671b6f4de03ed2480cf08438e41d27;p=u%2Fmrichter%2FAliRoot.git diff --git a/MUON/mapping/AliMpIntPair.h b/MUON/mapping/AliMpIntPair.h index 4085b18f3aa..3787e4f3c73 100755 --- a/MUON/mapping/AliMpIntPair.h +++ b/MUON/mapping/AliMpIntPair.h @@ -4,7 +4,7 @@ // $Id$ // $MpId: AliMpIntPair.h,v 1.6 2006/05/24 13:58:07 ivana Exp $ -/// \ingroup basic +/// \ingroup core /// \class AliMpIntPair /// \brief A pair of integers. /// @@ -35,19 +35,36 @@ class AliMpIntPair : public TObject void operator += (const AliMpIntPair& op); void operator -= (const AliMpIntPair& op); + // // static get methods + // + /// Return invalid pair static AliMpIntPair Invalid() {return AliMpIntPair();} + // // get methods + // + /// Return first value Int_t GetFirst() const {return fFirst;} + /// Return second value Int_t GetSecond() const {return fSecond;} + /// Return validity Bool_t IsValid() const {return fValidity;} + // // set methods + // + /// Set first value void SetFirst(Int_t ix) {fFirst=ix; fValidity=true; } + /// Set second value void SetSecond(Int_t iy) {fSecond=iy; fValidity=true;} + /// Set both first and second value + void Set(Int_t ix, Int_t iy) { fFirst=ix; fSecond=iy; fValidity=true; } + // // TObject functions used for sorting in Root collections + // + /// Return true as Compare() function is implemented virtual Bool_t IsSortable() const {return kTRUE;} virtual Int_t Compare(const TObject* obj) const;