Line data Source code
1 : #ifndef AliT0CalibData_H
2 : #define AliT0CalibData_H
3 :
4 : /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 : * See cxx source for full Copyright notice */
6 :
7 : ////////////////////////////////////////////////
8 : // class for T0 calibration //
9 : ////////////////////////////////////////////////
10 :
11 : #include "TNamed.h"
12 : #include "TMap.h"
13 :
14 : class AliT0CalibData: public TNamed {
15 :
16 : public:
17 : AliT0CalibData();
18 : AliT0CalibData(const char* name);
19 : AliT0CalibData(const AliT0CalibData &calibda);
20 : AliT0CalibData& operator= (const AliT0CalibData &calibda);
21 : virtual ~AliT0CalibData();
22 :
23 : void ReadAsciiLookup(const Char_t *filename);
24 : Int_t GetChannel(Int_t trm, Int_t tdc, Int_t chain, Int_t channel);
25 : void PrintLookup(Option_t* option= "") const;
26 56 : TMap *GetMapLookup(void) {return &fLookup;}
27 8 : Int_t GetNumberOfTRMs() const {return fNumberOfTRMs;}
28 0 : void SetNumberOfTRMs(Int_t ntrms=2) {fNumberOfTRMs = ntrms;}
29 :
30 :
31 : protected:
32 :
33 : TMap fLookup; //lookup table
34 : Int_t fNumberOfTRMs; // number of TRMs in setup
35 :
36 : //
37 44 : ClassDef(AliT0CalibData,8) // T0 Sensor Calibration data
38 : };
39 :
40 : typedef AliT0CalibData AliSTARTCalibData; // for backward compatibility
41 :
42 : #endif
43 :
|