#ifndef TTripTInfoBank_hxx_seen #define TTripTInfoBank_hxx_seen // $Id: ITripTInfoBank.hxx,v 1.2 2009/09/25 06:02:33 nickwest Exp $ // #include #define TTRIPT_INFO_BANK_TITLE "TripT Physical->Electronics Mapping Info" namespace COMET { class ITripTInfoBank; }; /// This is the simple Access Class for all TripT Mapping Info /// banks. It provides getters for the data. /// /// For an introduction to this and other Access Classes please see /// \ref oaRawEvent class COMET::ITripTInfoBank: public COMET::IMidasBank { public: ITripTInfoBank(); explicit ITripTInfoBank(const ULong64_t *bank, const char* title = TTRIPT_INFO_BANK_TITLE); virtual ~ITripTInfoBank(); /// Print contents to COMETLog void Print(const Option_t* opt = "") const; /// Return the physical TripT ID for tfb with logical number tfb UShort_t GetPhysicalId(UInt_t tfb) const { if (tfb < this->GetSize16()) return *(this->GetData16() + tfb); else return 0; } }; #endif