///////////////////////////////////////////////////////// /// $Id: ITripTInfoBank.cxx,v 1.3 2009/09/25 06:02:33 nickwest Exp $ /// /// Implement the COMET::ITripTInfoBank class... #include "IMidasBankProxyRegistry.hxx" #include "ITripTInfoBank.hxx" // Register the bank MIDAS bank mask for the family of bank names that map to this class REGISTER_MIDAS_BANK(ITripTInfoBank,E0I*;PI**;II**;EI**;SI**) // Typically the class constructors do nothing beyond passing their arguments // to the IMidasBank base class and the destructor does nothing. //_____________________________________________________________________________ COMET::ITripTInfoBank::ITripTInfoBank() : IMidasBank(0,TTRIPT_INFO_BANK_TITLE) { // Default constructor COMETTrace("ITripTInfoBank: Default ctor at:" << (void*) this); } //_____________________________________________________________________________ COMET::ITripTInfoBank::ITripTInfoBank(const ULong64_t *bank, const char* title /* = TTRIPT_INFO_BANK_TITLE */) : IMidasBank(bank,title) { // Normal constructor COMETTrace("COMET::ITripTInfoBank: Normal ctor at:" << (void*) this << "\n Name:'" << this->GetName() << "'; Title:" << title << "; Bank size:" << this->GetBankSize() << "; starts at:" << (void*) this->GetBank()); } //_____________________________________________________________________________ COMET::ITripTInfoBank::~ITripTInfoBank() { COMETTrace("COMET::ITripTInfoBank: dtor at:" << (void*) this); } //_____________________________________________________________________________ void COMET::ITripTInfoBank::Print(const Option_t* opt /* = "" */) const { this->COMET::IMidasBank::Print(""); for (int ltfb=0;ltfb<48;ltfb+=16) { char buff[1000]; int n=0; n += sprintf(buff+n,"tfb%2d-%2d",ltfb,ltfb+15); for (int tfb=0; tfb<16; tfb++) { n += sprintf(buff+n,"%5d",this->GetPhysicalId(tfb+ltfb)); } COMETLog(buff); } }