]> git.uio.no Git - u/mrichter/AliRoot.git/blame - T0/AliT0LookUpValue.h
DCS DP with correct getters
[u/mrichter/AliRoot.git] / T0 / AliT0LookUpValue.h
CommitLineData
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"
a2bf19ee 6
7class AliT0LookUpValue: public TObject
8{
9 public:
10
11 AliT0LookUpValue();
12 AliT0LookUpValue(Int_t trm, Int_t tdc, Int_t chain, Int_t channel );
94249139 13 AliT0LookUpValue(const AliT0LookUpValue &o): TObject(),
14 fTRM(-1),
15 fTDC(-1),
16 fChain(-1),
17 fChannel(-1)
18 { ((AliT0LookUpValue&) o).Copy(*this);}
19 AliT0LookUpValue& operator= (const AliT0LookUpValue & ) { return *this;};
20 virtual ~AliT0LookUpValue() {};
21
a2bf19ee 22 virtual Bool_t IsEqual(const TObject* obj) const ;
256d4943 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;};
a2bf19ee 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;};
256d4943 33 virtual void Clear () {fTRM = -1; fTDC=-1; fChain=-1; fChannel=-1;}
f8bea420 34 void Clear(const Option_t*) {};
256d4943 35 void Print(Option_t* opt= "") const;
a2bf19ee 36
37 protected:
38
39 Int_t fTRM; //#TRM
40 Int_t fTDC; //#TDC
41 Int_t fChain; //#chain
42 Int_t fChannel; //#channel
43
44 ClassDef(AliT0LookUpValue,1) //Hits for detector T0
45};
46
a2bf19ee 47#endif