Project
Loading...
Searching...
No Matches
o2::itsmft::ROFRecord Class Reference

#include <ROFRecord.h>

Public Types

enum  { VtxStdMode = 0 , VtxUPCMode = 1 }
 
using EvIdx = o2::dataformats::RangeReference< int, int >
 
using BCData = o2::InteractionRecord
 
using ROFtype = unsigned int
 

Public Member Functions

 ROFRecord ()=default
 
 ROFRecord (const BCData &bc, ROFtype rof, int idx, int n)
 
void setBCData (const BCData &bc)
 
void setROFrame (ROFtype rof)
 
void setEntry (EvIdx entry)
 
void setFirstEntry (int idx)
 
void setNEntries (int n)
 
uint32_t getFlags () const
 
void setFlags (uint32_t flags)
 
void setFlag (uint8_t flagIndex)
 
void resetFlag (uint8_t flagIndex)
 
bool getFlag (uint8_t flagIndex) const
 
void clearAllFlags ()
 
void setAllFlags ()
 
const BCDatagetBCData () const
 
BCDatagetBCData ()
 
EvIdx getEntry () const
 
EvIdxgetEntry ()
 
int getNEntries () const
 
int getFirstEntry () const
 
ROFtype getROFrame () const
 
void clear ()
 
template<typename T >
gsl::span< const T > getROFData (const gsl::span< const T > tfdata) const
 
template<typename T >
const T * getROFDataAt (int i, const gsl::span< const T > tfdata) const
 
template<typename T >
gsl::span< const T > getROFData (const std::vector< T > &tfdata) const
 
template<typename T >
const T * getROFDataAt (int i, const std::vector< T > &tfdata) const
 
std::string asString () const
 
void print () const
 

Friends

std::ostream & operator<< (std::ostream &output, const ROFRecord &rec)
 

Detailed Description

ROFRecord class encodes the trigger interaction record of given ROF and the reference on the 1st object (digit, cluster etc) of this ROF in the data tree

Definition at line 30 of file ROFRecord.h.

Member Typedef Documentation

◆ BCData

◆ EvIdx

using o2::itsmft::ROFRecord::EvIdx = o2::dataformats::RangeReference<int, int>

Definition at line 36 of file ROFRecord.h.

◆ ROFtype

using o2::itsmft::ROFRecord::ROFtype = unsigned int

Definition at line 38 of file ROFRecord.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
VtxStdMode 
VtxUPCMode 

Definition at line 34 of file ROFRecord.h.

Constructor & Destructor Documentation

◆ ROFRecord() [1/2]

o2::itsmft::ROFRecord::ROFRecord ( )
default

◆ ROFRecord() [2/2]

o2::itsmft::ROFRecord::ROFRecord ( const BCData bc,
ROFtype  rof,
int  idx,
int  n 
)
inline

Definition at line 41 of file ROFRecord.h.

Member Function Documentation

◆ asString()

std::string ROFRecord::asString ( ) const

Definition at line 18 of file ROFRecord.cxx.

◆ clear()

void o2::itsmft::ROFRecord::clear ( )
inline

Definition at line 66 of file ROFRecord.h.

◆ clearAllFlags()

void o2::itsmft::ROFRecord::clearAllFlags ( )
inline

Definition at line 55 of file ROFRecord.h.

◆ getBCData() [1/2]

BCData & o2::itsmft::ROFRecord::getBCData ( )
inline

Definition at line 59 of file ROFRecord.h.

◆ getBCData() [2/2]

const BCData & o2::itsmft::ROFRecord::getBCData ( ) const
inline

Definition at line 58 of file ROFRecord.h.

◆ getEntry() [1/2]

EvIdx & o2::itsmft::ROFRecord::getEntry ( )
inline

Definition at line 61 of file ROFRecord.h.

◆ getEntry() [2/2]

EvIdx o2::itsmft::ROFRecord::getEntry ( ) const
inline

Definition at line 60 of file ROFRecord.h.

◆ getFirstEntry()

int o2::itsmft::ROFRecord::getFirstEntry ( ) const
inline

Definition at line 63 of file ROFRecord.h.

◆ getFlag()

bool o2::itsmft::ROFRecord::getFlag ( uint8_t  flagIndex) const
inline

Definition at line 54 of file ROFRecord.h.

◆ getFlags()

uint32_t o2::itsmft::ROFRecord::getFlags ( ) const
inline

Definition at line 50 of file ROFRecord.h.

◆ getNEntries()

int o2::itsmft::ROFRecord::getNEntries ( ) const
inline

Definition at line 62 of file ROFRecord.h.

◆ getROFData() [1/2]

template<typename T >
gsl::span< const T > o2::itsmft::ROFRecord::getROFData ( const gsl::span< const T >  tfdata) const
inline

Definition at line 73 of file ROFRecord.h.

◆ getROFData() [2/2]

template<typename T >
gsl::span< const T > o2::itsmft::ROFRecord::getROFData ( const std::vector< T > &  tfdata) const
inline

Definition at line 85 of file ROFRecord.h.

◆ getROFDataAt() [1/2]

template<typename T >
const T * o2::itsmft::ROFRecord::getROFDataAt ( int  i,
const gsl::span< const T >  tfdata 
) const
inline

Definition at line 79 of file ROFRecord.h.

◆ getROFDataAt() [2/2]

template<typename T >
const T * o2::itsmft::ROFRecord::getROFDataAt ( int  i,
const std::vector< T > &  tfdata 
) const
inline

Definition at line 91 of file ROFRecord.h.

◆ getROFrame()

ROFtype o2::itsmft::ROFRecord::getROFrame ( ) const
inline

Definition at line 64 of file ROFRecord.h.

◆ print()

void ROFRecord::print ( ) const

Definition at line 23 of file ROFRecord.cxx.

◆ resetFlag()

void o2::itsmft::ROFRecord::resetFlag ( uint8_t  flagIndex)
inline

Definition at line 53 of file ROFRecord.h.

◆ setAllFlags()

void o2::itsmft::ROFRecord::setAllFlags ( )
inline

Definition at line 56 of file ROFRecord.h.

◆ setBCData()

void o2::itsmft::ROFRecord::setBCData ( const BCData bc)
inline

Definition at line 44 of file ROFRecord.h.

◆ setEntry()

void o2::itsmft::ROFRecord::setEntry ( EvIdx  entry)
inline

Definition at line 46 of file ROFRecord.h.

◆ setFirstEntry()

void o2::itsmft::ROFRecord::setFirstEntry ( int  idx)
inline

Definition at line 47 of file ROFRecord.h.

◆ setFlag()

void o2::itsmft::ROFRecord::setFlag ( uint8_t  flagIndex)
inline

Definition at line 52 of file ROFRecord.h.

◆ setFlags()

void o2::itsmft::ROFRecord::setFlags ( uint32_t  flags)
inline

Definition at line 51 of file ROFRecord.h.

◆ setNEntries()

void o2::itsmft::ROFRecord::setNEntries ( int  n)
inline

Definition at line 48 of file ROFRecord.h.

◆ setROFrame()

void o2::itsmft::ROFRecord::setROFrame ( ROFtype  rof)
inline

Definition at line 45 of file ROFRecord.h.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  output,
const ROFRecord rec 
)
friend

Definition at line 28 of file ROFRecord.cxx.


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