Ensure vacuum inside the beam pipe for upgrade (Mario)
[u/mrichter/AliRoot.git] / T0 / AliT0CalibData.h
CommitLineData
dc7ca31d 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"
dc7ca31d 12#include "TMap.h"
dc7ca31d 13
14class 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();
c32fcee0 22
29d3e0eb 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= "", Int_t iTRM=0, Int_t iTDC=0, Int_t iChannel=0) const;
26 TMap *GetMapLookup(void) {return &fLookup;}
27 Int_t GetNumberOfTRMs() const {return fNumberOfTRMs;}
28 void SetNumberOfTRMs(Int_t ntrms=2) {fNumberOfTRMs = ntrms;}
d3541055 29
e0bba6cc 30
dc7ca31d 31 protected:
32
e0bba6cc 33 TMap fLookup; //lookup table
5325480c 34 Int_t fNumberOfTRMs; // number of TRMs in setup
e0bba6cc 35
dc7ca31d 36 //
c32fcee0 37 ClassDef(AliT0CalibData,8) // T0 Sensor Calibration data
dc7ca31d 38};
39
40typedef AliT0CalibData AliSTARTCalibData; // for backward compatibility
41
42#endif
43