Project
Loading...
Searching...
No Matches
o2::fit::RawWriterFIT< DigitBlockFITtype, DataBlockPMtype, DataBlockTCMtype, typename > Class Template Reference

#include <RawWriterFIT.h>

Public Types

typedef DigitBlockFITtype DigitBlockFIT_t
 
typedef DigitBlockFIT_t::LookupTable_t LookupTable_t
 
typedef LookupTable_t::Topo_t Topo_t
 
typedef DataBlockPMtype DataBlockPM_t
 
typedef DataBlockTCMtype DataBlockTCM_t
 
typedef RawDataMetric::Status_t MetricStatus_t
 
using RDHUtils = o2::raw::RDHUtils
 

Public Member Functions

 RawWriterFIT ()=default
 
 ~RawWriterFIT ()=default
 
o2::raw::RawFileWritergetWriter ()
 
void setFileFor (const std::string &fileFor)
 
void setFlpName (const std::string &flpName)
 
bool getFilePerLink () const
 
void setStatusEmu (MetricStatus_t statusEmu)
 
void setRandomEmu (bool isRandomStatusEmu)
 
void setVerbosity (int verbosityLevel)
 
void setCCDBurl (const std::string &ccdbPath)
 
void setLUTpath (const std::string &lutPath)
 
int getVerbosity () const
 
int carryOverMethod (const header::RDHAny *rdh, const gsl::span< char > data, const char *ptr, int maxSize, int splitID, std::vector< char > &trailer, std::vector< char > &header) const
 
void convertDigitsToRaw (const std::string &outputDir, const std::string &filenameDigits, long timestamp=-1)
 
void processDigitBlockPerTF (const std::vector< DigitBlockFIT_t > &vecDigitBlock)
 

Static Public Member Functions

static constexpr auto getDetID ()
 

Public Attributes

o2::raw::RawFileWriter mWriter {getDetID().getDataOrigin()}
 
std::string mFlpName {}
 
std::string mFileFor {}
 
MetricStatus_t mStatusEmu {}
 
bool mIsRandomStatusEmu {false}
 
int mDataFormat {0}
 
std::map< Topo_t, o2::header::RAWDataHeadermMapTopo2FEEmetadata
 
bool mOutputPerLink = false
 
int mVerbosity = 0
 

Detailed Description

template<typename DigitBlockFITtype, typename DataBlockPMtype, typename DataBlockTCMtype, typename = typename std::enable_if_t<DataBlockPMtype::sIsPadded == DataBlockTCMtype::sIsPadded>>
class o2::fit::RawWriterFIT< DigitBlockFITtype, DataBlockPMtype, DataBlockTCMtype, typename >

Definition at line 46 of file RawWriterFIT.h.

Member Typedef Documentation

◆ DataBlockPM_t

template<typename DigitBlockFITtype , typename DataBlockPMtype , typename DataBlockTCMtype , typename = typename std::enable_if_t<DataBlockPMtype::sIsPadded == DataBlockTCMtype::sIsPadded>>
typedef DataBlockPMtype o2::fit::RawWriterFIT< DigitBlockFITtype, DataBlockPMtype, DataBlockTCMtype, typename >::DataBlockPM_t

Definition at line 52 of file RawWriterFIT.h.

◆ DataBlockTCM_t

template<typename DigitBlockFITtype , typename DataBlockPMtype , typename DataBlockTCMtype , typename = typename std::enable_if_t<DataBlockPMtype::sIsPadded == DataBlockTCMtype::sIsPadded>>
typedef DataBlockTCMtype o2::fit::RawWriterFIT< DigitBlockFITtype, DataBlockPMtype, DataBlockTCMtype, typename >::DataBlockTCM_t

Definition at line 53 of file RawWriterFIT.h.

◆ DigitBlockFIT_t

template<typename DigitBlockFITtype , typename DataBlockPMtype , typename DataBlockTCMtype , typename = typename std::enable_if_t<DataBlockPMtype::sIsPadded == DataBlockTCMtype::sIsPadded>>
typedef DigitBlockFITtype o2::fit::RawWriterFIT< DigitBlockFITtype, DataBlockPMtype, DataBlockTCMtype, typename >::DigitBlockFIT_t

Definition at line 49 of file RawWriterFIT.h.

◆ LookupTable_t

template<typename DigitBlockFITtype , typename DataBlockPMtype , typename DataBlockTCMtype , typename = typename std::enable_if_t<DataBlockPMtype::sIsPadded == DataBlockTCMtype::sIsPadded>>
typedef DigitBlockFIT_t::LookupTable_t o2::fit::RawWriterFIT< DigitBlockFITtype, DataBlockPMtype, DataBlockTCMtype, typename >::LookupTable_t

Definition at line 50 of file RawWriterFIT.h.

◆ MetricStatus_t

template<typename DigitBlockFITtype , typename DataBlockPMtype , typename DataBlockTCMtype , typename = typename std::enable_if_t<DataBlockPMtype::sIsPadded == DataBlockTCMtype::sIsPadded>>
typedef RawDataMetric::Status_t o2::fit::RawWriterFIT< DigitBlockFITtype, DataBlockPMtype, DataBlockTCMtype, typename >::MetricStatus_t

Definition at line 54 of file RawWriterFIT.h.

◆ RDHUtils

template<typename DigitBlockFITtype , typename DataBlockPMtype , typename DataBlockTCMtype , typename = typename std::enable_if_t<DataBlockPMtype::sIsPadded == DataBlockTCMtype::sIsPadded>>
using o2::fit::RawWriterFIT< DigitBlockFITtype, DataBlockPMtype, DataBlockTCMtype, typename >::RDHUtils = o2::raw::RDHUtils

Definition at line 55 of file RawWriterFIT.h.

◆ Topo_t

template<typename DigitBlockFITtype , typename DataBlockPMtype , typename DataBlockTCMtype , typename = typename std::enable_if_t<DataBlockPMtype::sIsPadded == DataBlockTCMtype::sIsPadded>>
typedef LookupTable_t::Topo_t o2::fit::RawWriterFIT< DigitBlockFITtype, DataBlockPMtype, DataBlockTCMtype, typename >::Topo_t

Definition at line 51 of file RawWriterFIT.h.

Constructor & Destructor Documentation

◆ RawWriterFIT()

template<typename DigitBlockFITtype , typename DataBlockPMtype , typename DataBlockTCMtype , typename = typename std::enable_if_t<DataBlockPMtype::sIsPadded == DataBlockTCMtype::sIsPadded>>
o2::fit::RawWriterFIT< DigitBlockFITtype, DataBlockPMtype, DataBlockTCMtype, typename >::RawWriterFIT ( )
default

◆ ~RawWriterFIT()

template<typename DigitBlockFITtype , typename DataBlockPMtype , typename DataBlockTCMtype , typename = typename std::enable_if_t<DataBlockPMtype::sIsPadded == DataBlockTCMtype::sIsPadded>>
o2::fit::RawWriterFIT< DigitBlockFITtype, DataBlockPMtype, DataBlockTCMtype, typename >::~RawWriterFIT ( )
default

Member Function Documentation

◆ carryOverMethod()

template<typename DigitBlockFITtype , typename DataBlockPMtype , typename DataBlockTCMtype , typename = typename std::enable_if_t<DataBlockPMtype::sIsPadded == DataBlockTCMtype::sIsPadded>>
int o2::fit::RawWriterFIT< DigitBlockFITtype, DataBlockPMtype, DataBlockTCMtype, typename >::carryOverMethod ( const header::RDHAny rdh,
const gsl::span< char data,
const char ptr,
int  maxSize,
int  splitID,
std::vector< char > &  trailer,
std::vector< char > &  header 
) const
inline

Definition at line 69 of file RawWriterFIT.h.

◆ convertDigitsToRaw()

template<typename DigitBlockFITtype , typename DataBlockPMtype , typename DataBlockTCMtype , typename = typename std::enable_if_t<DataBlockPMtype::sIsPadded == DataBlockTCMtype::sIsPadded>>
void o2::fit::RawWriterFIT< DigitBlockFITtype, DataBlockPMtype, DataBlockTCMtype, typename >::convertDigitsToRaw ( const std::string &  outputDir,
const std::string &  filenameDigits,
long  timestamp = -1 
)
inline

Definition at line 75 of file RawWriterFIT.h.

◆ getDetID()

template<typename DigitBlockFITtype , typename DataBlockPMtype , typename DataBlockTCMtype , typename = typename std::enable_if_t<DataBlockPMtype::sIsPadded == DataBlockTCMtype::sIsPadded>>
static constexpr auto o2::fit::RawWriterFIT< DigitBlockFITtype, DataBlockPMtype, DataBlockTCMtype, typename >::getDetID ( )
inlinestaticconstexpr

Definition at line 174 of file RawWriterFIT.h.

◆ getFilePerLink()

template<typename DigitBlockFITtype , typename DataBlockPMtype , typename DataBlockTCMtype , typename = typename std::enable_if_t<DataBlockPMtype::sIsPadded == DataBlockTCMtype::sIsPadded>>
bool o2::fit::RawWriterFIT< DigitBlockFITtype, DataBlockPMtype, DataBlockTCMtype, typename >::getFilePerLink ( ) const
inline

Definition at line 61 of file RawWriterFIT.h.

◆ getVerbosity()

template<typename DigitBlockFITtype , typename DataBlockPMtype , typename DataBlockTCMtype , typename = typename std::enable_if_t<DataBlockPMtype::sIsPadded == DataBlockTCMtype::sIsPadded>>
int o2::fit::RawWriterFIT< DigitBlockFITtype, DataBlockPMtype, DataBlockTCMtype, typename >::getVerbosity ( ) const
inline

Definition at line 68 of file RawWriterFIT.h.

◆ getWriter()

template<typename DigitBlockFITtype , typename DataBlockPMtype , typename DataBlockTCMtype , typename = typename std::enable_if_t<DataBlockPMtype::sIsPadded == DataBlockTCMtype::sIsPadded>>
o2::raw::RawFileWriter & o2::fit::RawWriterFIT< DigitBlockFITtype, DataBlockPMtype, DataBlockTCMtype, typename >::getWriter ( )
inline

Definition at line 58 of file RawWriterFIT.h.

◆ processDigitBlockPerTF()

template<typename DigitBlockFITtype , typename DataBlockPMtype , typename DataBlockTCMtype , typename = typename std::enable_if_t<DataBlockPMtype::sIsPadded == DataBlockTCMtype::sIsPadded>>
void o2::fit::RawWriterFIT< DigitBlockFITtype, DataBlockPMtype, DataBlockTCMtype, typename >::processDigitBlockPerTF ( const std::vector< DigitBlockFIT_t > &  vecDigitBlock)
inline

Definition at line 125 of file RawWriterFIT.h.

◆ setCCDBurl()

template<typename DigitBlockFITtype , typename DataBlockPMtype , typename DataBlockTCMtype , typename = typename std::enable_if_t<DataBlockPMtype::sIsPadded == DataBlockTCMtype::sIsPadded>>
void o2::fit::RawWriterFIT< DigitBlockFITtype, DataBlockPMtype, DataBlockTCMtype, typename >::setCCDBurl ( const std::string &  ccdbPath)
inline

Definition at line 66 of file RawWriterFIT.h.

◆ setFileFor()

template<typename DigitBlockFITtype , typename DataBlockPMtype , typename DataBlockTCMtype , typename = typename std::enable_if_t<DataBlockPMtype::sIsPadded == DataBlockTCMtype::sIsPadded>>
void o2::fit::RawWriterFIT< DigitBlockFITtype, DataBlockPMtype, DataBlockTCMtype, typename >::setFileFor ( const std::string &  fileFor)
inline

Definition at line 59 of file RawWriterFIT.h.

◆ setFlpName()

template<typename DigitBlockFITtype , typename DataBlockPMtype , typename DataBlockTCMtype , typename = typename std::enable_if_t<DataBlockPMtype::sIsPadded == DataBlockTCMtype::sIsPadded>>
void o2::fit::RawWriterFIT< DigitBlockFITtype, DataBlockPMtype, DataBlockTCMtype, typename >::setFlpName ( const std::string &  flpName)
inline

Definition at line 60 of file RawWriterFIT.h.

◆ setLUTpath()

template<typename DigitBlockFITtype , typename DataBlockPMtype , typename DataBlockTCMtype , typename = typename std::enable_if_t<DataBlockPMtype::sIsPadded == DataBlockTCMtype::sIsPadded>>
void o2::fit::RawWriterFIT< DigitBlockFITtype, DataBlockPMtype, DataBlockTCMtype, typename >::setLUTpath ( const std::string &  lutPath)
inline

Definition at line 67 of file RawWriterFIT.h.

◆ setRandomEmu()

template<typename DigitBlockFITtype , typename DataBlockPMtype , typename DataBlockTCMtype , typename = typename std::enable_if_t<DataBlockPMtype::sIsPadded == DataBlockTCMtype::sIsPadded>>
void o2::fit::RawWriterFIT< DigitBlockFITtype, DataBlockPMtype, DataBlockTCMtype, typename >::setRandomEmu ( bool  isRandomStatusEmu)
inline

Definition at line 63 of file RawWriterFIT.h.

◆ setStatusEmu()

template<typename DigitBlockFITtype , typename DataBlockPMtype , typename DataBlockTCMtype , typename = typename std::enable_if_t<DataBlockPMtype::sIsPadded == DataBlockTCMtype::sIsPadded>>
void o2::fit::RawWriterFIT< DigitBlockFITtype, DataBlockPMtype, DataBlockTCMtype, typename >::setStatusEmu ( MetricStatus_t  statusEmu)
inline

Definition at line 62 of file RawWriterFIT.h.

◆ setVerbosity()

template<typename DigitBlockFITtype , typename DataBlockPMtype , typename DataBlockTCMtype , typename = typename std::enable_if_t<DataBlockPMtype::sIsPadded == DataBlockTCMtype::sIsPadded>>
void o2::fit::RawWriterFIT< DigitBlockFITtype, DataBlockPMtype, DataBlockTCMtype, typename >::setVerbosity ( int  verbosityLevel)
inline

Definition at line 65 of file RawWriterFIT.h.

Member Data Documentation

◆ mDataFormat

template<typename DigitBlockFITtype , typename DataBlockPMtype , typename DataBlockTCMtype , typename = typename std::enable_if_t<DataBlockPMtype::sIsPadded == DataBlockTCMtype::sIsPadded>>
int o2::fit::RawWriterFIT< DigitBlockFITtype, DataBlockPMtype, DataBlockTCMtype, typename >::mDataFormat {0}

Definition at line 180 of file RawWriterFIT.h.

◆ mFileFor

template<typename DigitBlockFITtype , typename DataBlockPMtype , typename DataBlockTCMtype , typename = typename std::enable_if_t<DataBlockPMtype::sIsPadded == DataBlockTCMtype::sIsPadded>>
std::string o2::fit::RawWriterFIT< DigitBlockFITtype, DataBlockPMtype, DataBlockTCMtype, typename >::mFileFor {}

Definition at line 177 of file RawWriterFIT.h.

◆ mFlpName

template<typename DigitBlockFITtype , typename DataBlockPMtype , typename DataBlockTCMtype , typename = typename std::enable_if_t<DataBlockPMtype::sIsPadded == DataBlockTCMtype::sIsPadded>>
std::string o2::fit::RawWriterFIT< DigitBlockFITtype, DataBlockPMtype, DataBlockTCMtype, typename >::mFlpName {}

Definition at line 176 of file RawWriterFIT.h.

◆ mIsRandomStatusEmu

template<typename DigitBlockFITtype , typename DataBlockPMtype , typename DataBlockTCMtype , typename = typename std::enable_if_t<DataBlockPMtype::sIsPadded == DataBlockTCMtype::sIsPadded>>
bool o2::fit::RawWriterFIT< DigitBlockFITtype, DataBlockPMtype, DataBlockTCMtype, typename >::mIsRandomStatusEmu {false}

Definition at line 179 of file RawWriterFIT.h.

◆ mMapTopo2FEEmetadata

template<typename DigitBlockFITtype , typename DataBlockPMtype , typename DataBlockTCMtype , typename = typename std::enable_if_t<DataBlockPMtype::sIsPadded == DataBlockTCMtype::sIsPadded>>
std::map<Topo_t, o2::header::RAWDataHeader> o2::fit::RawWriterFIT< DigitBlockFITtype, DataBlockPMtype, DataBlockTCMtype, typename >::mMapTopo2FEEmetadata

Definition at line 181 of file RawWriterFIT.h.

◆ mOutputPerLink

template<typename DigitBlockFITtype , typename DataBlockPMtype , typename DataBlockTCMtype , typename = typename std::enable_if_t<DataBlockPMtype::sIsPadded == DataBlockTCMtype::sIsPadded>>
bool o2::fit::RawWriterFIT< DigitBlockFITtype, DataBlockPMtype, DataBlockTCMtype, typename >::mOutputPerLink = false

Definition at line 183 of file RawWriterFIT.h.

◆ mStatusEmu

template<typename DigitBlockFITtype , typename DataBlockPMtype , typename DataBlockTCMtype , typename = typename std::enable_if_t<DataBlockPMtype::sIsPadded == DataBlockTCMtype::sIsPadded>>
MetricStatus_t o2::fit::RawWriterFIT< DigitBlockFITtype, DataBlockPMtype, DataBlockTCMtype, typename >::mStatusEmu {}

Definition at line 178 of file RawWriterFIT.h.

◆ mVerbosity

template<typename DigitBlockFITtype , typename DataBlockPMtype , typename DataBlockTCMtype , typename = typename std::enable_if_t<DataBlockPMtype::sIsPadded == DataBlockTCMtype::sIsPadded>>
int o2::fit::RawWriterFIT< DigitBlockFITtype, DataBlockPMtype, DataBlockTCMtype, typename >::mVerbosity = 0

Definition at line 184 of file RawWriterFIT.h.

◆ mWriter

template<typename DigitBlockFITtype , typename DataBlockPMtype , typename DataBlockTCMtype , typename = typename std::enable_if_t<DataBlockPMtype::sIsPadded == DataBlockTCMtype::sIsPadded>>
o2::raw::RawFileWriter o2::fit::RawWriterFIT< DigitBlockFITtype, DataBlockPMtype, DataBlockTCMtype, typename >::mWriter {getDetID().getDataOrigin()}

Definition at line 175 of file RawWriterFIT.h.


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