15#ifndef ALICEO2_TOF_ENCODER_H
16#define ALICEO2_TOF_ENCODER_H
45 bool open(
const std::string&
name,
const std::string&
path =
".",
const std::string& fileFor =
"cruendpoint");
48 bool encode(std::vector<std::vector<o2::tof::Digit>> digitWindow,
int tofwindow = 0);
49 void encodeTRM(
const std::vector<Digit>& summary, Int_t icrate, Int_t itrm,
int& istart);
51 bool flush(
int icrate);
73 static constexpr int NCRU = 4;
Utility class to write detectors data to (multiple) raw data file(s) respecting CRU format.
static const HBFUtils & Instance()
bool encode(std::vector< std::vector< o2::tof::Digit > > digitWindow, int tofwindow=0)
bool isContinuous() const
o2::InteractionRecord mIR
static constexpr int NCRU
int getSize(void *first, void *last)
void setVerbose(bool val)
TOFDataHeader_t * mTOFDataHeader[72]
void setEncoderCRUZEROES(bool val=true)
double mIntegratedAllBytes
const o2::raw::HBFUtils & mHBFSampler
std::vector< char > mBufferLocal
void encodeTRM(const std::vector< Digit > &summary, Int_t icrate, Int_t itrm, int &istart)
void nextWord(int icrate)
o2::raw::RawFileWriter mFileWriter
o2::header::RAWDataHeader * mRDH[72]
void setContinuous(bool value)
static constexpr int NLINKSPERCRU
DRMDataHeader_t * mDRMDataHeader[72]
bool open(const std::string &name, const std::string &path=".", const std::string &fileFor="cruendpoint")
GLuint const GLchar * name
GLsizei const GLfloat * value
GLsizei const GLchar *const * path
constexpr o2::header::DataOrigin gDataOriginTOF
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...