/**@file CbmTbDaqMap.h **@date 03.012.2009 **author V. Friese ** ** Provides the mapping of DAQ channel to detector channel ** ** At the moment: implemented only for STS stations **/ #ifndef CBMTBDAQMAP_H #define CBMTBDAQMAP_H 1 #include "TObject.h" #include "TString.h" class CbmTbDaqMap : public TObject { public: /** Default constructor **/ CbmTbDaqMap(); /** Standard constructor **@param iRun run number **/ CbmTbDaqMap(Int_t iRun); /** Destructor **/ virtual ~CbmTbDaqMap(); /** Set trun number */ void SetRun(Int_t iRun) { fRun = iRun; } /** Mapping **@param iRoc ROC number (from hit message) **@param iNx NXYter number (from hit message) **@param iId Channel ID (from hit message) **@param iStation Station number (return) **@param iSector Sector number ( return) **@param iSide Front side (0) / Back side (1) ( return) **@param iChannel Channel number (return) **/ Bool_t Map(Int_t iRoc, Int_t iNx, Int_t iId, Int_t& iStation, Int_t& iSector, Int_t& iSide, Int_t& iChannel); private: Int_t fRun; /** Run number **/ ClassDef(CbmTbDaqMap,1); }; #endif