]> git.uio.no Git - u/mrichter/AliRoot.git/blob - T0/AliT0LookUpValue.h
update Lookup Table for online usadge
[u/mrichter/AliRoot.git] / T0 / AliT0LookUpValue.h
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                               */
5 #include "TObject.h"
6 #include "TMap.h"
7
8 class AliT0LookUpValue: public TObject
9 {
10  public:
11  
12   AliT0LookUpValue(); 
13   AliT0LookUpValue(Int_t trm, Int_t tdc, Int_t chain, Int_t channel );
14   virtual Bool_t IsEqual(const TObject* obj) const ;
15   virtual ULong_t Hash(void) const;
16   //  virtual ULong_t Hash(void) const {return TString::Hash(this, sizeof(*this));};
17    Int_t GetTRM(void) const {return fTRM;};
18    Int_t GetTDC(void) const {return fTDC;};
19    Int_t GetChain(void) const {return fChain;};
20    Int_t GetChannel(void) const {return fChannel;};
21    void SetTRM(Int_t n) {fTRM=n;};
22    void SetTDC(Int_t n) {fTDC=n;};
23    void SetChain(Int_t n) {fChain=n;};
24    void SetChannel(Int_t n) {fChannel=n;};
25    virtual void Clear (void) {fTRM = -1; fTDC=-1; fChain=-1;  fChannel=-1;}
26    void Clear(const Option_t*) {};
27
28  protected:
29
30    Int_t fTRM;       //#TRM
31    Int_t fTDC;       //#TDC
32    Int_t fChain;     //#chain 
33    Int_t fChannel;   //#channel
34
35    ClassDef(AliT0LookUpValue,1)  //Hits for detector T0
36 };
37
38 class AliT0LookUpKey: public TObject
39 {
40  public:
41   AliT0LookUpKey();
42   AliT0LookUpKey(Int_t key); 
43   AliT0LookUpKey(TString name); 
44   Int_t GetKey(void) const {return fKey;};
45   void SetKey(Int_t n)  {fKey=n;};
46   TString GetChannelName() {return fName;};
47   void SetChannelName(TString name) {fName = name;};
48   virtual Bool_t IsEqual(const TObject *obj) const;
49   virtual ULong_t Hash(void) const {return TString::Hash(this, sizeof(*this));};
50   //   virtual void Clear(void) {fKey=0;}
51  protected:
52   Int_t fKey;   //logical channel number
53   TString fName; //logical channel name
54   
55    ClassDef(AliT0LookUpKey,1)  //Hits for detector T0
56 };
57
58 #endif