![]() |
Project
|
#include <RawReaderCRU.h>
Public Types | |
| using | ADCDataCallback = std::function< Int_t(const PadROCPos &, const CRU &, const gsl::span< const uint32_t >)> |
| using | LinkZSCallback = o2::tpc::raw_processing_helpers::ADCCallback |
| using | EndReaderCallback = std::function< void()> |
Public Member Functions | |
| RawReaderCRUManager ()=default | |
| constructor | |
| RawReaderCRU & | createReader (const std::string_view inputFileName, uint32_t numTimeBins=0, uint32_t link=0, uint32_t stream=0, uint32_t debugLevel=0, uint32_t verbosity=0, const std::string_view outputFilePrefix="") |
| create a new raw reader | |
| void | setupReaders (const std::string_view inputFileNames, uint32_t numTimeBins=1000, uint32_t debugLevel=0, uint32_t verbosity=0, const std::string_view outputFilePrefix="") |
| void | init () |
| initialize all readers | |
| auto & | getReaders () |
| return vector of readers | |
| const auto & | getReaders () const |
| return vector of readers | |
| auto | getNumberOfReaders () const |
| return number of configured raw readers | |
| RawReaderCRU & | getLastReader () |
| return last reader | |
| const RawReaderCRU & | getLastReader () const |
| return last reader | |
| void | resetReaders () |
| reset readers | |
| void | resetEventSync () |
| reset event synchronisation info | |
| void | reset () |
| reset all | |
| void | setEventNumber (uint32_t eventNumber) |
| set event number to all sub-readers | |
| const RawReaderCRUEventSync & | getEventSync () const |
| get the event sync | |
| size_t | getNumberOfEvents () const |
| get number of all events | |
| size_t | getNumberOfCompleteEvents () const |
| get number of complete events | |
| bool | isEventComplete (size_t eventNumber) const |
| check if event is complete | |
| void | setDebugLevel (uint32_t debugLevel) |
| set debug level | |
| void | setDataType (DataType dataType, RAWDataType rawType) |
| set data type | |
| DataType | getDataType () const |
| get data type | |
| void | copyEvents (const std::vector< uint32_t > eventNumbers, std::string_view outputDirectory, std::ios_base::openmode mode=std::ios_base::openmode(0)) |
| copy single events to another file | |
| void | writeGBTDataPerLink (std::string_view outputDirectory, int maxEvents=-1) |
| copy single events from raw input files to another file | |
| void | setADCDataCallback (ADCDataCallback function) |
| set a callback function | |
| void | setLinkZSCallback (LinkZSCallback function) |
| set a callback function for decoded LinkZS data | |
| LinkZSCallback | getLinkZSCallback () |
| get LinkZSCallback | |
| void | processEvent (uint32_t eventNumber, EndReaderCallback endReader=nullptr) |
| process event calling mADCDataCallback to process values | |
Static Public Member Functions | |
| static void | copyEvents (const std::string_view inputFileNames, const std::vector< uint32_t > eventNumbers, std::string_view outputDirectory, std::ios_base::openmode mode=std::ios_base::openmode(0)) |
| copy single events from raw input files to another file | |
| static void | writeGBTDataPerLink (const std::string_view inputFileNames, std::string_view outputDirectory, int maxEvents=-1) |
| copy single events from raw input files to another file | |
Friends | |
| class | RawReaderCRU |
Definition at line 961 of file RawReaderCRU.h.
| using o2::tpc::rawreader::RawReaderCRUManager::ADCDataCallback = std::function<Int_t(const PadROCPos&, const CRU&, const gsl::span<const uint32_t>)> |
Definition at line 964 of file RawReaderCRU.h.
| using o2::tpc::rawreader::RawReaderCRUManager::EndReaderCallback = std::function<void()> |
Definition at line 966 of file RawReaderCRU.h.
| using o2::tpc::rawreader::RawReaderCRUManager::LinkZSCallback = o2::tpc::raw_processing_helpers::ADCCallback |
Definition at line 965 of file RawReaderCRU.h.
|
default |
constructor
|
static |
copy single events from raw input files to another file
Definition at line 1206 of file RawReaderCRU.cxx.
| void RawReaderCRUManager::copyEvents | ( | const std::vector< uint32_t > | eventNumbers, |
| std::string_view | outputDirectory, | ||
| std::ios_base::openmode | mode = std::ios_base::openmode(0) |
||
| ) |
copy single events to another file
Definition at line 1190 of file RawReaderCRU.cxx.
|
inline |
create a new raw reader
Definition at line 972 of file RawReaderCRU.h.
|
inline |
get data type
Definition at line 1056 of file RawReaderCRU.h.
|
inline |
get the event sync
Definition at line 1033 of file RawReaderCRU.h.
|
inline |
return last reader
Definition at line 1005 of file RawReaderCRU.h.
|
inline |
return last reader
Definition at line 1008 of file RawReaderCRU.h.
|
inline |
get LinkZSCallback
Definition at line 1077 of file RawReaderCRU.h.
|
inline |
get number of complete events
Definition at line 1039 of file RawReaderCRU.h.
|
inline |
get number of all events
Definition at line 1036 of file RawReaderCRU.h.
|
inline |
return number of configured raw readers
Definition at line 1002 of file RawReaderCRU.h.
|
inline |
return vector of readers
Definition at line 996 of file RawReaderCRU.h.
|
inline |
return vector of readers
Definition at line 999 of file RawReaderCRU.h.
| void RawReaderCRUManager::init | ( | ) |
initialize all readers
Definition at line 1144 of file RawReaderCRU.cxx.
|
inline |
check if event is complete
Definition at line 1042 of file RawReaderCRU.h.
| void RawReaderCRUManager::processEvent | ( | uint32_t | eventNumber, |
| EndReaderCallback | endReader = nullptr |
||
| ) |
process event calling mADCDataCallback to process values
Definition at line 1243 of file RawReaderCRU.cxx.
|
inline |
reset all
Definition at line 1017 of file RawReaderCRU.h.
|
inline |
reset event synchronisation info
Definition at line 1014 of file RawReaderCRU.h.
|
inline |
reset readers
Definition at line 1011 of file RawReaderCRU.h.
|
inline |
set a callback function
Definition at line 1071 of file RawReaderCRU.h.
|
inline |
set data type
Definition at line 1048 of file RawReaderCRU.h.
|
inline |
set debug level
Definition at line 1045 of file RawReaderCRU.h.
|
inline |
set event number to all sub-readers
Definition at line 1025 of file RawReaderCRU.h.
|
inline |
set a callback function for decoded LinkZS data
Definition at line 1074 of file RawReaderCRU.h.
| void RawReaderCRUManager::setupReaders | ( | const std::string_view | inputFileNames, |
| uint32_t | numTimeBins = 1000, |
||
| uint32_t | debugLevel = 0, |
||
| uint32_t | verbosity = 0, |
||
| const std::string_view | outputFilePrefix = "" |
||
| ) |
Definition at line 1168 of file RawReaderCRU.cxx.
|
static |
copy single events from raw input files to another file
Definition at line 1228 of file RawReaderCRU.cxx.
| void RawReaderCRUManager::writeGBTDataPerLink | ( | std::string_view | outputDirectory, |
| int | maxEvents = -1 |
||
| ) |
copy single events from raw input files to another file
Definition at line 1213 of file RawReaderCRU.cxx.
|
friend |
Definition at line 1093 of file RawReaderCRU.h.