#ifndef TTripTXTimeBank_hxx_seen #define TTripTXTimeBank_hxx_seen // $Id: ITripTXTimeBank.hxx,v 1.2 2009/09/25 06:02:33 nickwest Exp $ // #include #define TTRIPT_XTIME_BANK_TITLE "TripT dpt execution time information" namespace COMET { class ITripTXTimeBank; }; /// This is the simple Access Class for all TripT execution time info /// banks. It provides getters for the data. /// /// For an introduction to this and other Access Classes please see /// \ref oaRawEvent class COMET::ITripTXTimeBank: public COMET::IMidasBank { public: ITripTXTimeBank(); explicit ITripTXTimeBank(const ULong64_t *bank, const char* title = TTRIPT_XTIME_BANK_TITLE); virtual ~ITripTXTimeBank(); /// Print contents to COMETLog void Print(const Option_t* opt = "") const; ULong64_t GetLastEnd() const { return *(this->GetData() + 0); } ULong64_t GetThisStart() const { return *(this->GetData() + 1); } ULong64_t GetThisEnd() const { return *(this->GetData() + 2); } ULong64_t GetCPUStart() const { return *(this->GetData() + 3); } ULong64_t GetCPUEnd() const { return *(this->GetData() + 4); } }; #endif