Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
InteractionRecord.cxx
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file InteractionRecord.cxx
1 // @sa <O2/DataFormats/common/src/InteractionRecord.cxx>
2 // <03608ff89>
3 
5 #include <iostream>
6 #include <sstream>
7 
8 namespace mvtx
9 {
10 
11 //________________________________________________________________________________
13 {
14  if ( isDummy() )
15  {
16  return std::string{"NotSet"};
17  }
18 
19  std::stringstream ss;
20  ss << std::hex << "Orbit: 0x" << orbit << std::dec << " BCid: " << bc;
21  return ss.str();
22 }
23 
24 //________________________________________________________________________________
25 std::ostream& operator<<(std::ostream& stream, mvtx::InteractionRecord const& ir)
26 {
27  stream << ir.asString();
28  return stream;
29 }
30 
31 //________________________________________________________________________________
33 {
34  std::cout << (*this) << std::endl;
35 }
36 
37 } // namespace mvtx