![]() |
Project
|
Pedestal calibration class. More...
#include <DigitDump.h>
Inherits o2::tpc::CalibRawBase.
Public Member Functions | |
DigitDump (PadSubset padSubset=PadSubset::ROC) | |
default constructor | |
void | setDigitFileName (std::string_view fileName) |
output file name | |
void | setPedestalAndNoiseFile (std::string_view fileName) |
pedestal file name | |
~DigitDump () override | |
default destructor | |
void | init () |
initialize DigitDump from DigitDumpParam | |
Int_t | updateROC (const Int_t roc, const Int_t row, const Int_t pad, const Int_t timeBin, const Float_t signal) final |
Int_t | updateCRU (const CRU &cru, const Int_t row, const Int_t pad, const Int_t timeBin, const Float_t signal) final |
not used | |
void | setPedestals (const CalPad *pedestal) |
Set a custom pedestal object. | |
void | setNoise (const CalPad *noise) |
Set a custom noise object. | |
const CalPad & | getPedestal () const |
const CalPad & | getNoise () const |
void | addPadMask (int roc, int row, int pad) |
add a masked pad | |
void | setNoiseThreshold (float noiseThreshold) |
set noise threshold | |
void | setADCRange (float minADC, float maxADC) |
set the adc range | |
void | setTimeBinRange (int first, int last) |
set the timeBin range | |
void | sortDigits () |
sort the digits | |
void | clearDigits () |
clear the digits | |
void | setInMemoryOnly (bool mode=true) |
set in memory only mode | |
bool | getInMemoryMode () const |
get in memory mode | |
std::vector< Digit > & | getDigits (int sector) |
return digits for specific sector | |
const auto & | getDigits () const |
return digit array | |
auto & | getDigits () |
void | addDigit (const CRU &cru, const float signal, const int rowInSector, const int padInRow, const int timeBin) |
directly add a digit | |
void | initInputOutput () |
initialize | |
void | endEvent () final |
End event function. | |
void | checkDuplicates (bool removeDuplicates=false) |
check duplicates and remove the if removeDuplicates is true | |
void | removeCEdigits (uint32_t removeNtimeBinsBefore=10, uint32_t removeNtimeBinsAfter=100, std::array< std::vector< Digit >, Sector::MAXSECTOR > *removedDigits=nullptr) |
remove digits close to the CE | |
![]() | |
CalibRawBase (PadSubset padSubset=PadSubset::ROC) | |
virtual | ~CalibRawBase ()=default |
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 | endReader () |
Additional Inherited Members | |
![]() | |
enum class | ProcessStatus : char { Ok , Truncated , NoMoreData , LastEvent , NoReaders , IncompleteEvent } |
![]() | |
const Mapper & | mMapper |
TPC mapper. | |
int | mDebugLevel |
debug level | |
Pedestal calibration class.
This class is used to produce pad wise pedestal and noise calibration data
origin: TPC
Definition at line 48 of file DigitDump.h.
|
inline |
default constructor
Definition at line 52 of file DigitDump.h.
|
override |
default destructor
Definition at line 29 of file DigitDump.cxx.
|
inline |
directly add a digit
Definition at line 143 of file DigitDump.h.
add a masked pad
Definition at line 97 of file DigitDump.h.
void DigitDump::checkDuplicates | ( | bool | removeDuplicates = false | ) |
check duplicates and remove the if removeDuplicates is true
Definition at line 186 of file DigitDump.cxx.
|
inline |
clear the digits
Definition at line 120 of file DigitDump.h.
|
finalvirtual |
|
inline |
Definition at line 140 of file DigitDump.h.
|
inline |
return digit array
Definition at line 139 of file DigitDump.h.
return digits for specific sector
Definition at line 136 of file DigitDump.h.
|
inline |
get in memory mode
Definition at line 133 of file DigitDump.h.
|
inline |
Get the noise calibration object
Definition at line 94 of file DigitDump.h.
|
inline |
Get the pedestal calibration object
Definition at line 89 of file DigitDump.h.
void DigitDump::init | ( | ) |
initialize DigitDump from DigitDumpParam
Definition at line 37 of file DigitDump.cxx.
void DigitDump::initInputOutput | ( | ) |
initialize
Definition at line 175 of file DigitDump.cxx.
void DigitDump::removeCEdigits | ( | uint32_t | removeNtimeBinsBefore = 10 , |
uint32_t | removeNtimeBinsAfter = 100 , |
||
std::array< std::vector< Digit >, Sector::MAXSECTOR > * | removedDigits = nullptr |
||
) |
remove digits close to the CE
Definition at line 232 of file DigitDump.cxx.
|
inline |
set the adc range
Definition at line 103 of file DigitDump.h.
|
inline |
output file name
Definition at line 55 of file DigitDump.h.
|
inline |
set in memory only mode
Definition at line 130 of file DigitDump.h.
Set a custom noise object.
Definition at line 84 of file DigitDump.h.
|
inline |
set noise threshold
Definition at line 100 of file DigitDump.h.
|
inline |
pedestal file name
Definition at line 58 of file DigitDump.h.
Set a custom pedestal object.
Definition at line 81 of file DigitDump.h.
set the timeBin range
Definition at line 110 of file DigitDump.h.
void DigitDump::sortDigits | ( | ) |
sort the digits
Definition at line 109 of file DigitDump.cxx.
|
inlinefinalvirtual |
update function called once per digit
roc | readout chamber |
row | row in roc |
pad | pad in row |
timeBin | time bin |
signal | ADC signal |
Implements o2::tpc::CalibRawBase.
Definition at line 73 of file DigitDump.h.