X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=T0%2FAliT0LookUpValue.h;h=6fea45d42caf3889266e30e6a59801a9c8ca34ab;hb=c505bc3107b26448ee7910ac5ef1439a4ee83f11;hp=3d0f52596779380e35d1d8c7bf8d6edbc3c91cf3;hpb=f8bea4204a172c931d54f74352b2de5015186bd8;p=u%2Fmrichter%2FAliRoot.git diff --git a/T0/AliT0LookUpValue.h b/T0/AliT0LookUpValue.h index 3d0f5259677..6fea45d42ca 100644 --- a/T0/AliT0LookUpValue.h +++ b/T0/AliT0LookUpValue.h @@ -3,7 +3,6 @@ /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ #include "TObject.h" -#include "TMap.h" class AliT0LookUpValue: public TObject { @@ -11,18 +10,29 @@ class AliT0LookUpValue: public TObject AliT0LookUpValue(); AliT0LookUpValue(Int_t trm, Int_t tdc, Int_t chain, Int_t channel ); + AliT0LookUpValue(const AliT0LookUpValue &o): TObject(), + fTRM(-1), + fTDC(-1), + fChain(-1), + fChannel(-1) + { ((AliT0LookUpValue&) o).Copy(*this);} + AliT0LookUpValue& operator= (const AliT0LookUpValue & ) { return *this;}; + virtual ~AliT0LookUpValue() {}; + virtual Bool_t IsEqual(const TObject* obj) const ; - virtual ULong_t Hash(void) const; - Int_t GetTRM(void) const {return fTRM;}; - Int_t GetTDC(void) const {return fTDC;}; - Int_t GetChain(void) const {return fChain;}; - Int_t GetChannel(void) const {return fChannel;}; + virtual ULong_t Hash() const {return (ULong_t) 1000000*fTRM+100000*fTDC+1000*fChannel;} + // virtual ULong_t Hash(void) const {return TString::Hash(this, sizeof(*this));}; + Int_t GetTRM() const {return fTRM;}; + Int_t GetTDC() const {return fTDC;}; + Int_t GetChain() const {return fChain;}; + Int_t GetChannel() const {return fChannel;}; void SetTRM(Int_t n) {fTRM=n;}; void SetTDC(Int_t n) {fTDC=n;}; void SetChain(Int_t n) {fChain=n;}; void SetChannel(Int_t n) {fChannel=n;}; - virtual void Clear (void) {fTRM = -1; fTDC=-1; fChain=-1; fChannel=-1;} + virtual void Clear () {fTRM = -1; fTDC=-1; fChain=-1; fChannel=-1;} void Clear(const Option_t*) {}; + void Print(Option_t* opt= "") const; protected: @@ -34,24 +44,4 @@ class AliT0LookUpValue: public TObject ClassDef(AliT0LookUpValue,1) //Hits for detector T0 }; -class AliT0LookUpKey: public TObject -{ - public: - AliT0LookUpKey(); - AliT0LookUpKey(Int_t key); - AliT0LookUpKey(TString name); - Int_t GetKey(void) const {return fKey;}; - void SetKey(Int_t n) {fKey=n;}; - TString GetChannelName() {return fName;}; - void SetChannelName(TString name) {fName = name;}; - virtual Bool_t IsEqual(const TObject *obj) const; - virtual ULong_t Hash(void) const {return TString::Hash(this, sizeof(*this));}; - // virtual void Clear(void) {fKey=0;} - protected: - Int_t fKey; //logical channel number - TString fName; //logical channel name - - ClassDef(AliT0LookUpKey,1) //Hits for detector T0 -}; - #endif