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

#include <InteractionRecord.h>

Inherits o2::InteractionRecord.

Public Member Functions

 InteractionTimeRecord ()=default
 
 InteractionTimeRecord (const InteractionRecord &ir, double t_in_bc)
 create from the interaction record and time in the bunch (in ns)
 
 InteractionTimeRecord (double tNS)
 create from the abs. (since orbit=0/bc=0) time in NS
 
void setFromNS (double tNS)
 set the from the abs. (since orbit=0/bc=0) time in NS
 
void clear ()
 
double getTimeOffsetWrtBC () const
 
double getTimeNS () const
 get time in ns from orbit=0/bc=0
 
bool operator== (const InteractionTimeRecord &other) const
 
bool operator!= (const InteractionTimeRecord &other) const
 
bool operator> (const InteractionTimeRecord &other) const
 
bool operator>= (const InteractionTimeRecord &other) const
 
bool operator< (const InteractionTimeRecord &other) const
 
bool operator<= (const InteractionTimeRecord &other) const
 
void print () const
 
std::string asString () const
 
 ClassDefNV (InteractionTimeRecord, 1)
 
- Public Member Functions inherited from o2::InteractionRecord
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)
 

Public Attributes

double timeInBCNS = 0.
 time in NANOSECONDS relative to orbit/bc
 
- Public Attributes inherited from o2::InteractionRecord
uint16_t bc = DummyBC
 bunch crossing ID of interaction
 
uint32_t orbit = DummyOrbit
 LHC orbit.
 

Friends

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

Additional Inherited Members

- Static Public Member Functions inherited from o2::InteractionRecord
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)
 
- Static Public Attributes inherited from o2::InteractionRecord
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)
 

Detailed Description

Definition at line 292 of file InteractionRecord.h.

Constructor & Destructor Documentation

◆ InteractionTimeRecord() [1/3]

o2::InteractionTimeRecord::InteractionTimeRecord ( )
default

◆ InteractionTimeRecord() [2/3]

o2::InteractionTimeRecord::InteractionTimeRecord ( const InteractionRecord ir,
double  t_in_bc 
)
inline

create from the interaction record and time in the bunch (in ns)

Definition at line 298 of file InteractionRecord.h.

◆ InteractionTimeRecord() [3/3]

o2::InteractionTimeRecord::InteractionTimeRecord ( double  tNS)
inline

create from the abs. (since orbit=0/bc=0) time in NS

Definition at line 303 of file InteractionRecord.h.

Member Function Documentation

◆ asString()

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

Definition at line 31 of file InteractionRecord.cxx.

◆ ClassDefNV()

o2::InteractionTimeRecord::ClassDefNV ( InteractionTimeRecord  ,
 
)

◆ clear()

void o2::InteractionTimeRecord::clear ( )
inline

Definition at line 315 of file InteractionRecord.h.

◆ getTimeNS()

double o2::InteractionTimeRecord::getTimeNS ( ) const
inline

get time in ns from orbit=0/bc=0

Definition at line 327 of file InteractionRecord.h.

◆ getTimeOffsetWrtBC()

double o2::InteractionTimeRecord::getTimeOffsetWrtBC ( ) const
inline

Definition at line 321 of file InteractionRecord.h.

◆ operator!=()

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

Definition at line 337 of file InteractionRecord.h.

◆ operator<()

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

Definition at line 352 of file InteractionRecord.h.

◆ operator<=()

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

Definition at line 357 of file InteractionRecord.h.

◆ operator==()

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

Definition at line 332 of file InteractionRecord.h.

◆ operator>()

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

Definition at line 342 of file InteractionRecord.h.

◆ operator>=()

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

Definition at line 347 of file InteractionRecord.h.

◆ print()

void o2::InteractionTimeRecord::print ( ) const

Definition at line 47 of file InteractionRecord.cxx.

◆ setFromNS()

void o2::InteractionTimeRecord::setFromNS ( double  tNS)
inline

set the from the abs. (since orbit=0/bc=0) time in NS

Definition at line 309 of file InteractionRecord.h.

Friends And Related Symbol Documentation

◆ operator<<

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

Definition at line 36 of file InteractionRecord.cxx.

Member Data Documentation

◆ timeInBCNS

double o2::InteractionTimeRecord::timeInBCNS = 0.

time in NANOSECONDS relative to orbit/bc

Definition at line 293 of file InteractionRecord.h.


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