Project
Loading...
Searching...
No Matches
o2::hmpid::HmpidCoder2 Class Reference

#include <HmpidCoder2.h>

Public Member Functions

 HmpidCoder2 (int numOfEquipments)
 
virtual ~HmpidCoder2 ()=default
 
void setVerbosity (int Level)
 
int getVerbosity ()
 
int getNumberOfEquipments ()
 
void setSkipEmptyEvents (bool Skip)
 
bool getSkipEmptyEvents ()
 
o2::raw::RawFileWritergetWriter ()
 
void setDetectorSpecificFields (float BusyTime=0.001, int Error=0, int Version=9)
 
void openOutputStream (const std::string &outputFileName, const std::string &fileFor)
 
void closeOutputStream ()
 Close and flush the output streams.
 
void codeEventChunkDigits (std::vector< o2::hmpid::Digit > &digits, InteractionRecord ir)
 
void dumpResults (const std::string &outputFileName)
 Dumps the results of the last coding.
 

Public Attributes

int mVerbose
 
int mNumberOfEquipments
 
RawFileWriter mWriter {"HMP", false}
 

Detailed Description

Definition at line 57 of file HmpidCoder2.h.

Constructor & Destructor Documentation

◆ HmpidCoder2()

HmpidCoder2::HmpidCoder2 ( int  numOfEquipments)

HMPID Raw Coder Constructor

Parameters
[in]numOfEquipments: number of Equipments

Definition at line 38 of file HmpidCoder2.cxx.

◆ ~HmpidCoder2()

virtual o2::hmpid::HmpidCoder2::~HmpidCoder2 ( )
virtualdefault

Member Function Documentation

◆ closeOutputStream()

void HmpidCoder2::closeOutputStream ( )

Close and flush the output streams.

Definition at line 271 of file HmpidCoder2.cxx.

◆ codeEventChunkDigits()

void HmpidCoder2::codeEventChunkDigits ( std::vector< o2::hmpid::Digit > &  digits,
InteractionRecord  ir 
)

Analyze a Digits Vector and setup the PADs array with the charge value, then fills the output buffer and forward it to the RawWriter object

NOTE: the vector could be empty!

Parameters
[in]digits: the vector of Digit structures
[in]ir: the Interaction Record structure

Definition at line 211 of file HmpidCoder2.cxx.

◆ dumpResults()

void HmpidCoder2::dumpResults ( const std::string &  outputFileName)

Dumps the results of the last coding.

Definition at line 278 of file HmpidCoder2.cxx.

◆ getNumberOfEquipments()

int o2::hmpid::HmpidCoder2::getNumberOfEquipments ( )
inline

Definition at line 100 of file HmpidCoder2.h.

◆ getSkipEmptyEvents()

bool o2::hmpid::HmpidCoder2::getSkipEmptyEvents ( )
inline

Definition at line 108 of file HmpidCoder2.h.

◆ getVerbosity()

int o2::hmpid::HmpidCoder2::getVerbosity ( )
inline

Definition at line 96 of file HmpidCoder2.h.

◆ getWriter()

o2::raw::RawFileWriter & o2::hmpid::HmpidCoder2::getWriter ( )
inline

Definition at line 112 of file HmpidCoder2.h.

◆ openOutputStream()

void HmpidCoder2::openOutputStream ( const std::string &  outputFileName,
const std::string &  fileFor 
)

Create the Raw File/Files for the output. Also registers the links in the RawWriter object

Parameters
[in]OutputFileName: the Path/Prefix name for the raw files
[in]perFlpFile: if true a couple of files will be created, one for each HMPID FLPs

Definition at line 242 of file HmpidCoder2.cxx.

◆ setDetectorSpecificFields()

void HmpidCoder2::setDetectorSpecificFields ( float  BusyTime = 0.001,
int  Error = 0,
int  Version = 9 
)

setDetectorSpecificFields() : sets the HMPID parameters for the next raw file writes

Parameters
[in]BusyTime: busy time in milliseconds
[in]Error: the Error field
[in]Version: the Firmware Version [def. 9]

Definition at line 60 of file HmpidCoder2.cxx.

◆ setSkipEmptyEvents()

void o2::hmpid::HmpidCoder2::setSkipEmptyEvents ( bool  Skip)
inline

Definition at line 104 of file HmpidCoder2.h.

◆ setVerbosity()

void o2::hmpid::HmpidCoder2::setVerbosity ( int  Level)
inline

Definition at line 92 of file HmpidCoder2.h.

Member Data Documentation

◆ mNumberOfEquipments

int o2::hmpid::HmpidCoder2::mNumberOfEquipments

Definition at line 61 of file HmpidCoder2.h.

◆ mVerbose

int o2::hmpid::HmpidCoder2::mVerbose

Definition at line 60 of file HmpidCoder2.h.

◆ mWriter

RawFileWriter o2::hmpid::HmpidCoder2::mWriter {"HMP", false}

Definition at line 63 of file HmpidCoder2.h.


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