We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59ef48a commit d856bedCopy full SHA for d856bed
DataFormats/common/include/CommonDataFormat/InteractionRecord.h
@@ -124,6 +124,12 @@ struct InteractionRecord {
124
orbit = l / o2::constants::lhc::LHCMaxBunches;
125
}
126
127
+ static InteractionRecord long2IR(int64_t l)
128
+ {
129
+ // set from long BC counter
130
+ return {uint16_t(l % o2::constants::lhc::LHCMaxBunches), uint32_t(l / o2::constants::lhc::LHCMaxBunches)};
131
+ }
132
+
133
bool operator>(const InteractionRecord& other) const
134
{
135
return (orbit == other.orbit) ? (bc > other.bc) : (orbit > other.orbit);
0 commit comments