/** @file CbmDigi.cxx ** @author Volker Friese ** @date 23.05.2019 **/ #include "CbmDigi.h" #include // ----- Default constructor ------------------------------------------- CbmDigi::CbmDigi() : TObject() { } // ------------------------------------------------------------------------- // ----- Destructor ---------------------------------------------------- CbmDigi::~CbmDigi() { } // ------------------------------------------------------------------------- // ----- Info to string ------------------------------------------------ std::string CbmDigi::ToString() const { std::stringstream ss; ss << "Digi: System " << GetSystemId() << " | address " << GetAddress() << " | time " << GetTime() << " | charge " << GetCharge(); return ss.str(); } // ------------------------------------------------------------------------- // ------------------------------------------------------------------------- // The following functions are only implemented for the unit tests. // They can only be called from a derived class via CbmDigi::GetAddress() Int_t CbmDigi::GetAddress() const { return -111; } Int_t CbmDigi::GetSystemId() const { return -111; } Double_t CbmDigi::GetTime() const { return -111.; } // ------------------------------------------------------------------------- ClassImp(CbmDigi)