File indexing completed on 2026-04-06 08:15:47
0001
0002
0003
0004 #include "InteractionRecord.h"
0005
0006 #include <iostream>
0007 #include <sstream>
0008
0009 namespace mvtx
0010 {
0011
0012 std::string InteractionRecord::asString() const
0013 {
0014 if (isDummy())
0015 {
0016 return std::string{"NotSet"};
0017 }
0018
0019 std::stringstream ss;
0020 ss << std::hex << "Orbit: 0x" << orbit << std::dec << " BCid: " << bc;
0021 return ss.str();
0022 }
0023
0024
0025 std::ostream &operator<<(std::ostream &stream,
0026 mvtx::InteractionRecord const &ir)
0027 {
0028 stream << ir.asString();
0029 return stream;
0030 }
0031
0032
0033 void InteractionRecord::print() const { std::cout << (*this) << std::endl; }
0034
0035 }