1 #ifndef ALIT0LOOKUPVALUE_H
2 #define ALIT0LOOKUPVALUE_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
7 class AliT0LookUpValue: public TObject
12 AliT0LookUpValue(Int_t trm, Int_t tdc, Int_t chain, Int_t channel );
13 AliT0LookUpValue(const AliT0LookUpValue &o): TObject(),
18 { ((AliT0LookUpValue&) o).Copy(*this);}
19 AliT0LookUpValue& operator= (const AliT0LookUpValue & ) { return *this;};
20 virtual ~AliT0LookUpValue() {};
22 virtual Bool_t IsEqual(const TObject* obj) const ;
23 virtual ULong_t Hash() const {return (ULong_t) 1000000*fTRM+100000*fTDC+1000*fChannel;}
24 // virtual ULong_t Hash(void) const {return TString::Hash(this, sizeof(*this));};
25 Int_t GetTRM() const {return fTRM;};
26 Int_t GetTDC() const {return fTDC;};
27 Int_t GetChain() const {return fChain;};
28 Int_t GetChannel() const {return fChannel;};
29 void SetTRM(Int_t n) {fTRM=n;};
30 void SetTDC(Int_t n) {fTDC=n;};
31 void SetChain(Int_t n) {fChain=n;};
32 void SetChannel(Int_t n) {fChannel=n;};
33 virtual void Clear () {fTRM = -1; fTDC=-1; fChain=-1; fChannel=-1;}
34 void Clear(const Option_t*) {};
35 void Print(Option_t* opt= "") const;
41 Int_t fChain; //#chain
42 Int_t fChannel; //#channel
44 ClassDef(AliT0LookUpValue,1) //Hits for detector T0