Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:17:49

0001 #include "BbcPmtContainer.h"
0002 #include "BbcReturnCodes.h"
0003 
0004 #include <phool/phool.h>
0005 
0006 #include <iostream>
0007 
0008 void BbcPmtContainer::identify(std::ostream& os) const
0009 {
0010   os << "virtual BbcPmtContainer object" << std::endl;
0011   return;
0012 }
0013 
0014 void BbcPmtContainer::Reset()
0015 {
0016   std::cout << PHWHERE << "ERROR Reset() not implemented by daughter class" << std::endl;
0017   return;
0018 }
0019 
0020 int BbcPmtContainer::isValid() const
0021 {
0022   virtual_warning("isValid()");
0023   return 0;
0024 }
0025 
0026 void BbcPmtContainer::set_npmt(const Short_t /*ival*/)
0027 {
0028   virtual_warning("set_npmt(const Short_t ival)");
0029   return;
0030 }
0031 
0032 Short_t BbcPmtContainer::get_npmt() const
0033 {
0034   virtual_warning("get_npmt()");
0035   return BbcReturnCodes::BBC_INVALID_SHORT;
0036 }
0037 
0038 BbcPmtHit *BbcPmtContainer::get_pmt(const int /*iPmt*/) const
0039 {
0040   virtual_warning("get_pmt(const short iPmt)");
0041   return nullptr;
0042 }
0043 
0044 void BbcPmtContainer::virtual_warning(const std::string& funcsname) 
0045 {
0046   std::cout << "BbcPmtContainer::" << funcsname << " is virtual, doing nothing" << std::endl;
0047   return;
0048 }