![]() |
Project
|
Base class for raw data calibrations. More...
#include <CalibRawBase.h>
Inherited by o2::tpc::CalibPedestal, o2::tpc::CalibPulser, o2::tpc::DigitDump, and o2::tpc::SimpleEventDisplay.
Public Types | |
enum class | ProcessStatus : char { Ok , Truncated , NoMoreData , LastEvent , NoReaders , IncompleteEvent } |
Public Member Functions | |
CalibRawBase (PadSubset padSubset=PadSubset::ROC) | |
virtual | ~CalibRawBase ()=default |
virtual Int_t | updateROC (const Int_t roc, const Int_t row, const Int_t pad, const Int_t timeBin, const Float_t signal)=0 |
virtual Int_t | updateCRU (const CRU &cru, const Int_t row, const Int_t pad, const Int_t timeBin, const Float_t signal)=0 |
Int_t | update (const PadROCPos &padROCPos, const CRU &cru, const gsl::span< const uint32_t > data) |
void | addGBTFrameContainer (GBTFrameContainer *cont) |
add GBT frame container to process | |
void | addRawReader (RawReader *reader) |
add RawReader | |
void | setTimeBinsPerCall (Int_t nTimeBins) |
set number of time bins to process in one call to processEvent | |
Int_t | getTimeBinsPerCall () const |
return the number of time bins processed in one call to processEvent | |
PadSubset | getPadSubset () const |
return pad subset type used | |
ProcessStatus | processEvent (int eventNumber=-1) |
void | setupContainers (TString fileInfo, uint32_t verbosity=0, uint32_t debugLevel=0) |
void | setDebugLevel (int debugLevel=1) |
void | rewindEvents () |
Rewind the events. | |
virtual void | dumpToFile (const std::string filename, uint32_t type=0) |
Dump the relevant data to file. | |
void | incrementNEvents () |
increment number of events | |
size_t | getNumberOfProcessedEvents () const |
number of processed events | |
void | setPresentEventNumber (size_t eventNr) |
set present event number | |
size_t | getPresentEventNumber () const |
get present event number | |
bool | isPresentEventValie () const |
int | getNumberOfEvents () const |
return number of events | |
bool | isPresentEventComplete () const |
check if present event is complete | |
void | setNumberOfProcessedTimeBins (size_t timeBins) |
number of processed time bins in last event | |
size_t | getNumberOfProcessedTimeBins () const |
number of processed time bins in last event | |
int | getDebugLevel () const |
Debug level. | |
void | setSkipIncompleteEvents (bool skip) |
set skipping of incomplete events | |
bool | getSkipIncompleteEvents () const |
get skipping of incomplete events | |
void | setDigits (std::array< std::vector< Digit >, Sector::MAXSECTOR > *digits) |
set external digits | |
virtual void | resetEvent ()=0 |
virtual void | endEvent ()=0 |
virtual void | endReader () |
Protected Attributes | |
const Mapper & | mMapper |
TPC mapper. | |
int | mDebugLevel |
debug level | |
Base class for raw data calibrations.
This class is the base class for raw data calibrations It implements base raw reader functionality and calls an 'update' function for each digit
origin: TPC
Definition at line 51 of file CalibRawBase.h.
|
strong |
Definition at line 54 of file CalibRawBase.h.
|
inline |
Definition at line 63 of file CalibRawBase.h.
|
virtualdefault |
|
inline |
add GBT frame container to process
Definition at line 90 of file CalibRawBase.h.
add RawReader
Definition at line 93 of file CalibRawBase.h.
|
inlinevirtual |
Dump the relevant data to file.
Reimplemented in o2::tpc::CalibPedestal, and o2::tpc::CalibPulser.
Definition at line 122 of file CalibRawBase.h.
|
pure virtual |
Implemented in o2::tpc::CalibPedestal, o2::tpc::CalibPulser, o2::tpc::DigitDump, and o2::tpc::SimpleEventDisplay.
|
inlinevirtual |
Reimplemented in o2::tpc::CalibPulser.
Definition at line 164 of file CalibRawBase.h.
|
inline |
Debug level.
Definition at line 151 of file CalibRawBase.h.
|
inline |
return number of events
Definition at line 208 of file CalibRawBase.h.
|
inline |
number of processed events
Definition at line 128 of file CalibRawBase.h.
|
inline |
number of processed time bins in last event
Definition at line 148 of file CalibRawBase.h.
|
inline |
return pad subset type used
Definition at line 102 of file CalibRawBase.h.
|
inline |
get present event number
Definition at line 134 of file CalibRawBase.h.
|
inline |
get skipping of incomplete events
Definition at line 157 of file CalibRawBase.h.
|
inline |
return the number of time bins processed in one call to processEvent
Definition at line 99 of file CalibRawBase.h.
|
inline |
increment number of events
Definition at line 125 of file CalibRawBase.h.
|
inline |
check if present event is complete
Definition at line 142 of file CalibRawBase.h.
|
inline |
Definition at line 136 of file CalibRawBase.h.
|
inline |
Process one event
eventNumber | Either number >=0 or -1 (next event) or -2 (previous event) |
Definition at line 225 of file CalibRawBase.h.
|
pure virtual |
void CalibRawBase::rewindEvents | ( | ) |
Rewind the events.
Definition at line 160 of file CalibRawBase.cxx.
|
inline |
set external digits
Definition at line 160 of file CalibRawBase.h.
|
inline |
number of processed time bins in last event
Definition at line 145 of file CalibRawBase.h.
|
inline |
set present event number
Definition at line 131 of file CalibRawBase.h.
|
inline |
set skipping of incomplete events
Definition at line 154 of file CalibRawBase.h.
|
inline |
set number of time bins to process in one call to processEvent
Definition at line 96 of file CalibRawBase.h.
void CalibRawBase::setupContainers | ( | TString | fileInfo, |
uint32_t | verbosity = 0 , |
||
uint32_t | debugLevel = 0 |
||
) |
set up the raw readers
fileInfo | file description information |
verbosity | verbosity level of the raw readers |
debugLevel | debug level of the raw readers |
Definition at line 25 of file CalibRawBase.cxx.
|
inline |
Definition at line 591 of file CalibRawBase.h.
|
pure virtual |
update function called once per digit
Implemented in o2::tpc::CalibPedestal, o2::tpc::CalibPulser, o2::tpc::DigitDump, and o2::tpc::SimpleEventDisplay.
|
pure virtual |
update function called once per digit
roc | readout chamber |
row | row in roc |
pad | pad in row |
timeBin | time bin |
signal | ADC signal |
Implemented in o2::tpc::CalibPedestal, o2::tpc::CalibPulser, o2::tpc::DigitDump, and o2::tpc::SimpleEventDisplay.
|
protected |
debug level
Definition at line 168 of file CalibRawBase.h.
|
protected |
TPC mapper.
Definition at line 167 of file CalibRawBase.h.