]> git.uio.no Git - u/mrichter/AliRoot.git/blob - T0/AliT0LookUpKey.h
correct mask for V0 charge decoding in STU payload
[u/mrichter/AliRoot.git] / T0 / AliT0LookUpKey.h
1 #ifndef ALIT0LOOKUPKEY_H
2 #define ALIT0LOOKUPKEY_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 #include "TObject.h"
7 #include "TString.h"
8
9 class AliT0LookUpKey: public TObject
10 {
11  public:
12   AliT0LookUpKey();
13   AliT0LookUpKey(Int_t key); 
14   AliT0LookUpKey(TString name); 
15   AliT0LookUpKey& operator= (const AliT0LookUpKey &) { return *this;};
16   AliT0LookUpKey(const AliT0LookUpKey &o);
17   virtual ~AliT0LookUpKey() {};
18   Int_t GetKey() const {return fKey;};
19   void SetKey(Int_t n)  {fKey=n;};
20   TString GetChannelName() {return fName;};
21   void SetChannelName(TString name) {fName = name;};
22   virtual Bool_t IsEqual(const TObject *obj) const;
23   void Print(Option_t* opt= "") const;
24   virtual ULong_t Hash() const {return 10000*fKey;}
25   //    virtual ULong_t Hash(void) const {return TString::Hash(this, sizeof(*this));};
26   //   virtual void Clear(void) {fKey=0;}
27  protected:
28   Int_t fKey;   //logical channel number
29   TString fName; //logical channel name
30   
31    ClassDef(AliT0LookUpKey,1)  //Hits for detector T0
32 };
33
34
35 #endif