Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2026-04-02 08:12:37

0001 #include "BcoInfov1.h"
0002 
0003 void BcoInfov1::Reset()
0004 {
0005   bco.fill(0);
0006   evtno.fill(0);
0007   return;
0008 }
0009 
0010 void BcoInfov1::identify(std::ostream& out) const
0011 {
0012   out << "identify yourself: I am an BcoInfov1 Object\n";
0013   out << "previous event: " << get_previous_evtno() << std::hex
0014       << " bco: 0x" << get_previous_bco() << "\n"
0015       << std::dec
0016       << "current  event:  " << get_current_evtno() << std::hex
0017       << " bco: 0x" << get_current_bco() << "\n"
0018       << std::dec
0019       << "future   event:  " << get_future_evtno() << std::hex
0020       << " bco: 0x" << get_future_bco() << std::dec
0021       << std::endl;
0022   return;
0023 }
0024 
0025 int BcoInfov1::isValid() const
0026 {
0027   return (bco[2] ? 1 : 0);  // return 1 if future bco is not zero
0028 }