Project
Loading...
Searching...
No Matches
o2::InteractionRecord Struct Reference

#include <InteractionRecord.h>

Inherited by o2::InteractionTimeRecord, o2::fdd::Digitizer::BCCache, o2::fv0::Digitizer::BCCache, o2::globaltracking::InteractionCandidate, o2::vertexing::InteractionCandidate, and o2::zdc::Digitizer::BCCache.

Public Member Functions

constexpr InteractionRecord ()=default
 
 InteractionRecord (double tNS)
 
constexpr InteractionRecord (uint16_t b, uint32_t orb)
 
 InteractionRecord (const InteractionRecord &src)=default
 
InteractionRecordoperator= (const InteractionRecord &src)=default
 
void clear ()
 
bool isDummy () const
 
void setFromNS (double ns)
 
double bc2ns () const
 
bool operator== (const InteractionRecord &other) const
 
bool operator!= (const InteractionRecord &other) const
 
int64_t differenceInBC (const InteractionRecord &other) const
 
float differenceInBCNS (const InteractionRecord &other) const
 
float differenceInBCMUS (const InteractionRecord &other) const
 
int64_t toLong () const
 
void setFromLong (int64_t l)
 
bool operator> (const InteractionRecord &other) const
 
bool operator>= (const InteractionRecord &other) const
 
bool operator< (const InteractionRecord &other) const
 
bool operator<= (const InteractionRecord &other) const
 
InteractionRecord operator-- ()
 
InteractionRecord operator-- (int)
 
InteractionRecord operator++ ()
 
InteractionRecord operator++ (int)
 
InteractionRecordoperator+= (int64_t dbc)
 
InteractionRecordoperator-= (int64_t dbc)
 
InteractionRecordoperator+= (const InteractionRecord &add)
 
InteractionRecordoperator-= (const InteractionRecord &add)
 
InteractionRecord operator+ (int64_t dbc) const
 
InteractionRecord operator- (int64_t dbc) const
 
InteractionRecord operator+ (const InteractionRecord &add) const
 
InteractionRecord operator- (const InteractionRecord &add) const
 
void print () const
 
std::string asString () const
 
 ClassDefNV (InteractionRecord, 3)
 

Static Public Member Functions

static constexpr InteractionRecord getIRMaxBC ()
 
static double bc2ns (int bc, unsigned int orbit)
 
static int ns2bc (double ns, unsigned int &orb)
 
static InteractionRecord long2IR (int64_t l)
 

Public Attributes

uint16_t bc = DummyBC
 bunch crossing ID of interaction
 
uint32_t orbit = DummyOrbit
 LHC orbit.
 

Static Public Attributes

static constexpr uint16_t DummyBC = 0xffff
 
static constexpr uint32_t DummyOrbit = 0xffffffff
 
static constexpr double DummyTime = DummyBC * o2::constants::lhc::LHCBunchSpacingNS + DummyOrbit * o2::constants::lhc::LHCOrbitNS
 
static constexpr int64_t MaxGlobalBCs = (int64_t(DummyOrbit) * o2::constants::lhc::LHCMaxBunches) + (o2::constants::lhc::LHCMaxBunches - 1)
 

Friends

std::ostream & operator<< (std::ostream &stream, InteractionRecord const &ir)
 

Detailed Description

Definition at line 27 of file InteractionRecord.h.

Constructor & Destructor Documentation

◆ InteractionRecord() [1/4]

constexpr o2::InteractionRecord::InteractionRecord ( )
constexprdefault

◆ InteractionRecord() [2/4]

o2::InteractionRecord::InteractionRecord ( double  tNS)
inline

Definition at line 39 of file InteractionRecord.h.

◆ InteractionRecord() [3/4]

constexpr o2::InteractionRecord::InteractionRecord ( uint16_t  b,
uint32_t  orb 
)
inlineconstexpr

Definition at line 44 of file InteractionRecord.h.

◆ InteractionRecord() [4/4]

o2::InteractionRecord::InteractionRecord ( const InteractionRecord src)
default

Member Function Documentation

◆ asString()

std::string o2::InteractionRecord::asString ( ) const

Definition at line 20 of file InteractionRecord.cxx.

◆ bc2ns() [1/2]

double o2::InteractionRecord::bc2ns ( ) const
inline

Definition at line 79 of file InteractionRecord.h.

◆ bc2ns() [2/2]

static double o2::InteractionRecord::bc2ns ( int  bc,
unsigned int  orbit 
)
inlinestatic

Definition at line 67 of file InteractionRecord.h.

◆ ClassDefNV()

o2::InteractionRecord::ClassDefNV ( InteractionRecord  ,
 
)

◆ clear()

void o2::InteractionRecord::clear ( )
inline

Definition at line 51 of file InteractionRecord.h.

◆ differenceInBC()

int64_t o2::InteractionRecord::differenceInBC ( const InteractionRecord other) const
inline

Definition at line 94 of file InteractionRecord.h.

◆ differenceInBCMUS()

float o2::InteractionRecord::differenceInBCMUS ( const InteractionRecord other) const
inline

Definition at line 110 of file InteractionRecord.h.

◆ differenceInBCNS()

float o2::InteractionRecord::differenceInBCNS ( const InteractionRecord other) const
inline

Definition at line 104 of file InteractionRecord.h.

◆ getIRMaxBC()

static constexpr InteractionRecord o2::InteractionRecord::getIRMaxBC ( )
inlinestaticconstexpr

Definition at line 33 of file InteractionRecord.h.

◆ isDummy()

bool o2::InteractionRecord::isDummy ( ) const
inline

Definition at line 57 of file InteractionRecord.h.

◆ long2IR()

static InteractionRecord o2::InteractionRecord::long2IR ( int64_t  l)
inlinestatic

Definition at line 129 of file InteractionRecord.h.

◆ ns2bc()

static int o2::InteractionRecord::ns2bc ( double  ns,
unsigned int orb 
)
inlinestatic

Definition at line 72 of file InteractionRecord.h.

◆ operator!=()

bool o2::InteractionRecord::operator!= ( const InteractionRecord other) const
inline

Definition at line 89 of file InteractionRecord.h.

◆ operator+() [1/2]

InteractionRecord o2::InteractionRecord::operator+ ( const InteractionRecord add) const
inline

Definition at line 268 of file InteractionRecord.h.

◆ operator+() [2/2]

InteractionRecord o2::InteractionRecord::operator+ ( int64_t  dbc) const
inline

Definition at line 252 of file InteractionRecord.h.

◆ operator++() [1/2]

InteractionRecord o2::InteractionRecord::operator++ ( )
inline

Definition at line 184 of file InteractionRecord.h.

◆ operator++() [2/2]

InteractionRecord o2::InteractionRecord::operator++ ( int  )
inline

Definition at line 198 of file InteractionRecord.h.

◆ operator+=() [1/2]

InteractionRecord & o2::InteractionRecord::operator+= ( const InteractionRecord add)
inline

Definition at line 240 of file InteractionRecord.h.

◆ operator+=() [2/2]

InteractionRecord & o2::InteractionRecord::operator+= ( int64_t  dbc)
inline

Definition at line 213 of file InteractionRecord.h.

◆ operator-() [1/2]

InteractionRecord o2::InteractionRecord::operator- ( const InteractionRecord add) const
inline

Definition at line 276 of file InteractionRecord.h.

◆ operator-() [2/2]

InteractionRecord o2::InteractionRecord::operator- ( int64_t  dbc) const
inline

Definition at line 260 of file InteractionRecord.h.

◆ operator--() [1/2]

InteractionRecord o2::InteractionRecord::operator-- ( )
inline

Definition at line 155 of file InteractionRecord.h.

◆ operator--() [2/2]

InteractionRecord o2::InteractionRecord::operator-- ( int  )
inline

Definition at line 169 of file InteractionRecord.h.

◆ operator-=() [1/2]

InteractionRecord & o2::InteractionRecord::operator-= ( const InteractionRecord add)
inline

Definition at line 246 of file InteractionRecord.h.

◆ operator-=() [2/2]

InteractionRecord & o2::InteractionRecord::operator-= ( int64_t  dbc)
inline

Definition at line 234 of file InteractionRecord.h.

◆ operator<()

bool o2::InteractionRecord::operator< ( const InteractionRecord other) const
inline

Definition at line 145 of file InteractionRecord.h.

◆ operator<=()

bool o2::InteractionRecord::operator<= ( const InteractionRecord other) const
inline

Definition at line 150 of file InteractionRecord.h.

◆ operator=()

InteractionRecord & o2::InteractionRecord::operator= ( const InteractionRecord src)
default

◆ operator==()

bool o2::InteractionRecord::operator== ( const InteractionRecord other) const
inline

Definition at line 84 of file InteractionRecord.h.

◆ operator>()

bool o2::InteractionRecord::operator> ( const InteractionRecord other) const
inline

Definition at line 135 of file InteractionRecord.h.

◆ operator>=()

bool o2::InteractionRecord::operator>= ( const InteractionRecord other) const
inline

Definition at line 140 of file InteractionRecord.h.

◆ print()

void o2::InteractionRecord::print ( ) const

Definition at line 42 of file InteractionRecord.cxx.

◆ setFromLong()

void o2::InteractionRecord::setFromLong ( int64_t  l)
inline

Definition at line 122 of file InteractionRecord.h.

◆ setFromNS()

void o2::InteractionRecord::setFromNS ( double  ns)
inline

Definition at line 62 of file InteractionRecord.h.

◆ toLong()

int64_t o2::InteractionRecord::toLong ( ) const
inline

Definition at line 116 of file InteractionRecord.h.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  stream,
o2::InteractionRecord const &  ir 
)
friend

Definition at line 25 of file InteractionRecord.cxx.

Member Data Documentation

◆ bc

uint16_t o2::InteractionRecord::bc = DummyBC

bunch crossing ID of interaction

Definition at line 34 of file InteractionRecord.h.

◆ DummyBC

constexpr uint16_t o2::InteractionRecord::DummyBC = 0xffff
staticconstexpr

Definition at line 29 of file InteractionRecord.h.

◆ DummyOrbit

constexpr uint32_t o2::InteractionRecord::DummyOrbit = 0xffffffff
staticconstexpr

Definition at line 30 of file InteractionRecord.h.

◆ DummyTime

constexpr double o2::InteractionRecord::DummyTime = DummyBC * o2::constants::lhc::LHCBunchSpacingNS + DummyOrbit * o2::constants::lhc::LHCOrbitNS
staticconstexpr

Definition at line 31 of file InteractionRecord.h.

◆ MaxGlobalBCs

constexpr int64_t o2::InteractionRecord::MaxGlobalBCs = (int64_t(DummyOrbit) * o2::constants::lhc::LHCMaxBunches) + (o2::constants::lhc::LHCMaxBunches - 1)
staticconstexpr

Definition at line 32 of file InteractionRecord.h.

◆ orbit

uint32_t o2::InteractionRecord::orbit = DummyOrbit

LHC orbit.

Definition at line 35 of file InteractionRecord.h.


The documentation for this struct was generated from the following files: