Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
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
4
#include "
mvtx_decoder/InteractionRecord.h
"
5
#include <iostream>
6
#include <sstream>
7
8
namespace
mvtx
9
{
10
11
//________________________________________________________________________________
12
std::string
InteractionRecord::asString
()
const
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
//________________________________________________________________________________
32
void
InteractionRecord::print
()
const
33
{
34
std::cout << (*this) << std::endl;
35
}
36
37
}
// namespace mvtx
online_distribution
blob
master
newbasic
mvtx_decoder
InteractionRecord.cxx
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:27
using
1.8.2 with
sPHENIX GitHub integration