File indexing completed on 2025-08-06 08:17:12
0001 #include "EventHeaderv2.h"
0002
0003 #include <iostream>
0004
0005 void EventHeaderv2::Reset()
0006 {
0007 EventHeaderv1::Reset();
0008 m_bunchCrossing = 0;
0009 }
0010
0011 void EventHeaderv2::identify(std::ostream &out) const
0012 {
0013 out << "identify yourself: I am an EventHeaderv2 Object" << std::endl;
0014 out
0015 << "Run Number: " << get_RunNumber()
0016 << ", Event no: " << get_EvtSequence()
0017 << ", Type: " << get_EvtType()
0018 << ", bunch crossing: " << m_bunchCrossing
0019 << std::endl;
0020 }
0021
0022 void EventHeaderv2::CopyTo(EventHeader *to_copy)
0023 {
0024 EventHeaderv1::CopyTo(to_copy);
0025 to_copy->set_BunchCrossing(get_BunchCrossing());
0026 }