]>
Commit | Line | Data |
---|---|---|
a2bf19ee | 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 ; | |
256d4943 | 15 | virtual ULong_t Hash() const {return (ULong_t) 1000000*fTRM+100000*fTDC+1000*fChannel;} |
16 | // virtual ULong_t Hash(void) const {return TString::Hash(this, sizeof(*this));}; | |
17 | Int_t GetTRM() const {return fTRM;}; | |
18 | Int_t GetTDC() const {return fTDC;}; | |
19 | Int_t GetChain() const {return fChain;}; | |
20 | Int_t GetChannel() const {return fChannel;}; | |
a2bf19ee | 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;}; | |
256d4943 | 25 | virtual void Clear () {fTRM = -1; fTDC=-1; fChain=-1; fChannel=-1;} |
f8bea420 | 26 | void Clear(const Option_t*) {}; |
256d4943 | 27 | void Print(Option_t* opt= "") const; |
a2bf19ee | 28 | |
29 | protected: | |
30 | ||
31 | Int_t fTRM; //#TRM | |
32 | Int_t fTDC; //#TDC | |
33 | Int_t fChain; //#chain | |
34 | Int_t fChannel; //#channel | |
35 | ||
36 | ClassDef(AliT0LookUpValue,1) //Hits for detector T0 | |
37 | }; | |
38 | ||
39 | class AliT0LookUpKey: public TObject | |
40 | { | |
41 | public: | |
42 | AliT0LookUpKey(); | |
43 | AliT0LookUpKey(Int_t key); | |
f8bea420 | 44 | AliT0LookUpKey(TString name); |
256d4943 | 45 | Int_t GetKey() const {return fKey;}; |
a2bf19ee | 46 | void SetKey(Int_t n) {fKey=n;}; |
f8bea420 | 47 | TString GetChannelName() {return fName;}; |
48 | void SetChannelName(TString name) {fName = name;}; | |
49 | virtual Bool_t IsEqual(const TObject *obj) const; | |
256d4943 | 50 | void Print(Option_t* opt= "") const; |
51 | virtual ULong_t Hash() const {return 10000*fKey;} | |
52 | // virtual ULong_t Hash(void) const {return TString::Hash(this, sizeof(*this));}; | |
f8bea420 | 53 | // virtual void Clear(void) {fKey=0;} |
a2bf19ee | 54 | protected: |
f8bea420 | 55 | Int_t fKey; //logical channel number |
56 | TString fName; //logical channel name | |
57 | ||
a2bf19ee | 58 | ClassDef(AliT0LookUpKey,1) //Hits for detector T0 |
59 | }; | |
60 | ||
61 | #endif |