Project
Loading...
Searching...
No Matches
o2::ctp::Digits2Raw Class Reference

#include <Digits2Raw.h>

Public Member Functions

 Digits2Raw ()=default
 
 ~Digits2Raw ()=default
 
void init ()
 
void setVerbosity (int v)
 
void setFilePerLink (bool v)
 
void setOutDir (std::string &outdir)
 
void setBoardId (uint32_t boardid)
 
void setZeroSuppressedIntRec (bool value)
 
void setZeroSuppressedClassRec (bool value)
 
void setPadding (bool value)
 
bool getFilePerLink () const
 
uint64_t getFEEIDIR () const
 
uint64_t getFEEIDTC () const
 
o2::raw::RawFileWritergetWriter ()
 
void setOutDir (const std::string &outDir)
 
void processDigits (const std::string &fileDigitsName)
 
void emptyHBFMethod (const header::RDHAny *rdh, std::vector< char > &toAdd) const
 
std::vector< chardigits2HBTPayload (const gsl::span< gbtword80_t > digits, uint32_t Npld) const
 
bool makeGBTWord (const gbtword80_t &pld, gbtword80_t &gbtword, uint32_t &size_gbt, uint32_t Npld, gbtword80_t &gbtsend) const
 
int digit2GBTdigit (gbtword80_t &gbtdigitIR, gbtword80_t &gbtdigitTR, const CTPDigit &digit)
 
std::vector< gbtword80_taddEmptyBC (std::vector< gbtword80_t > &hbfIRZS)
 
void printDigit (std::string text, const gbtword80_t &dig) const
 
void dumpRawData (std::string filename="ctp.raw")
 

Detailed Description

Definition at line 32 of file Digits2Raw.h.

Constructor & Destructor Documentation

◆ Digits2Raw()

o2::ctp::Digits2Raw::Digits2Raw ( )
default

◆ ~Digits2Raw()

o2::ctp::Digits2Raw::~Digits2Raw ( )
default

Member Function Documentation

◆ addEmptyBC()

std::vector< gbtword80_t > Digits2Raw::addEmptyBC ( std::vector< gbtword80_t > &  hbfIRZS)

Definition at line 272 of file Digits2Raw.cxx.

◆ digit2GBTdigit()

int Digits2Raw::digit2GBTdigit ( gbtword80_t gbtdigitIR,
gbtword80_t gbtdigitTR,
const CTPDigit digit 
)

Definition at line 253 of file Digits2Raw.cxx.

◆ digits2HBTPayload()

std::vector< char > Digits2Raw::digits2HBTPayload ( const gsl::span< gbtword80_t digits,
uint32_t  Npld 
) const

Definition at line 175 of file Digits2Raw.cxx.

◆ dumpRawData()

void Digits2Raw::dumpRawData ( std::string  filename = "ctp.raw")

Definition at line 316 of file Digits2Raw.cxx.

◆ emptyHBFMethod()

void Digits2Raw::emptyHBFMethod ( const header::RDHAny rdh,
std::vector< char > &  toAdd 
) const

Definition at line 159 of file Digits2Raw.cxx.

◆ getFEEIDIR()

uint64_t o2::ctp::Digits2Raw::getFEEIDIR ( ) const
inline

Definition at line 46 of file Digits2Raw.h.

◆ getFEEIDTC()

uint64_t o2::ctp::Digits2Raw::getFEEIDTC ( ) const
inline

Definition at line 47 of file Digits2Raw.h.

◆ getFilePerLink()

bool o2::ctp::Digits2Raw::getFilePerLink ( ) const
inline

Definition at line 45 of file Digits2Raw.h.

◆ getWriter()

o2::raw::RawFileWriter & o2::ctp::Digits2Raw::getWriter ( )
inline

Definition at line 48 of file Digits2Raw.h.

◆ init()

void Digits2Raw::init ( )

CTP digits (see Digits.h) are inputs from trigger detectors. GBT digit is temporary item: 80 bits long = 12 bits of BCid and payload (see digit2GBTdigit) CTP digit -> GBTdigit CTPInt Record, GBTdigit TrigClass Record GBT didit X -> CRU raw data X= CTPInt Record to link 0 X= TrigClass Record to link 1

Definition at line 28 of file Digits2Raw.cxx.

◆ makeGBTWord()

bool Digits2Raw::makeGBTWord ( const gbtword80_t pld,
gbtword80_t gbtword,
uint32_t &  size_gbt,
uint32_t  Npld,
gbtword80_t gbtsend 
) const

Definition at line 236 of file Digits2Raw.cxx.

◆ printDigit()

void Digits2Raw::printDigit ( std::string  text,
const gbtword80_t dig 
) const

Definition at line 299 of file Digits2Raw.cxx.

◆ processDigits()

void Digits2Raw::processDigits ( const std::string &  fileDigitsName)

Definition at line 53 of file Digits2Raw.cxx.

◆ setBoardId()

void o2::ctp::Digits2Raw::setBoardId ( uint32_t  boardid)
inline

Definition at line 41 of file Digits2Raw.h.

◆ setFilePerLink()

void o2::ctp::Digits2Raw::setFilePerLink ( bool  v)
inline

Definition at line 39 of file Digits2Raw.h.

◆ setOutDir() [1/2]

void o2::ctp::Digits2Raw::setOutDir ( const std::string &  outDir)
inline

Definition at line 49 of file Digits2Raw.h.

◆ setOutDir() [2/2]

void o2::ctp::Digits2Raw::setOutDir ( std::string &  outdir)
inline

Definition at line 40 of file Digits2Raw.h.

◆ setPadding()

void o2::ctp::Digits2Raw::setPadding ( bool  value)
inline

Definition at line 44 of file Digits2Raw.h.

◆ setVerbosity()

void o2::ctp::Digits2Raw::setVerbosity ( int  v)
inline

Definition at line 38 of file Digits2Raw.h.

◆ setZeroSuppressedClassRec()

void o2::ctp::Digits2Raw::setZeroSuppressedClassRec ( bool  value)
inline

Definition at line 43 of file Digits2Raw.h.

◆ setZeroSuppressedIntRec()

void o2::ctp::Digits2Raw::setZeroSuppressedIntRec ( bool  value)
inline

Definition at line 42 of file Digits2Raw.h.


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