/// Implement the COMET::IFgdAsumBank class... #include "IMidasBankProxyRegistry.hxx" #include "IFgdAsumBank.hxx" #include // Register the bank MIDAS bank mask for the family of bank names that map to this class REGISTER_MIDAS_BANK(IFgdAsumBank,FA**) // Typically the class constructors do nothing beyond passing their arguments do // to the IMidasBank base class and the destructor does nothing. //_____________________________________________________________________________ COMET::IFgdAsumBank::IFgdAsumBank() : IMidasBank(0,TFGDASUM_BANK_TITLE) { // Default constructor COMETTrace("IFgdAsumBank: Default ctor at:" << (void*) this); } //_____________________________________________________________________________ COMET::IFgdAsumBank::IFgdAsumBank(const ULong64_t *bank, const char* title /* = TFGD_BANK_TITLE */) : IMidasBank(bank,title) { // Normal constructor COMETTrace("COMET::IFgdAsumBank: Normal ctor at:" << (void*) this << "\n Name:'" << this->GetName() << "'; Title:" << title << "; Bank size:" << this->GetBankSize() << "; starts at:" << (void*) this->GetBank()); } //_____________________________________________________________________________ COMET::IFgdAsumBank::~IFgdAsumBank() { COMETTrace("COMET::IFgdAsumBank: dtor at:" << (void*) this); } //_____________________________________________________________________________ void COMET::IFgdAsumBank::Print(const Option_t* opt /* = "" */) const { this->COMET::IMidasBank::Print(""); COMETLog("FGD Asum Bank for crate " << GetCrate() << "\nStart time : " << GetStartTime() << "\nEnd time : " << GetEndTime() << "\nTime length : " << GetTimeLength() << "\nGlobal CMB Counters : " << GetNumberCMBTriggers() << "\nGlobbal CMB Rate (Hz) : " << GetRateCMBTriggers() ); TString option = opt; option.ToLower(); int nmax = 0; if ( option.Contains("v") ) nmax = 4; if ( option.Contains("vv") ) nmax = N_ASUM_GROUPS; for(int i = 0; i < nmax; i++) COMETLog("Group " << i << " Triggers: " << GetNumberGroupTriggers(i) << "\n" << "Rate: " << GetRateGroupTriggers(i) << " hz."); };