![]() |
Project
|
Pedestal calibration class. More...
#include <CalibPedestal.h>
Inherits o2::tpc::CalibRawBase.
Public Types | |
using | vectorType = std::vector< float > |
![]() | |
enum class | ProcessStatus : char { Ok , Truncated , NoMoreData , LastEvent , NoReaders , IncompleteEvent } |
Public Member Functions | |
CalibPedestal (PadSubset padSubset=PadSubset::ROC) | |
default constructor | |
~CalibPedestal () override=default | |
default destructor | |
void | init () |
initialize the clusterer from CalibPedestalParam | |
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 | resetData () |
Reset pedestal data. | |
void | setADCRange (int minADC, int maxADC) |
set the adc range | |
void | setStatisticsType (StatisticsType statisticsType) |
set the statistics type | |
void | setTimeBinRange (int first, int last) |
set the time bin range to analyse | |
void | analyse () |
Analyse the buffered adc values and calculate noise and pedestal. | |
const CalPad & | getPedestal () const |
const CalPad & | getNoise () const |
const auto & | getCalDets () const |
StatisticsType | getStatisticsType () const |
return all pad clibrations as vector | |
void | dumpToFile (const std::string filename, uint32_t type=0) final |
Dump the relevant data to file. | |
void | endEvent () final |
Dummy end event. | |
TH2 * | createControlHistogram (ROC roc) |
generate a control histogram | |
![]() | |
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. | |
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 | |
![]() | |
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 45 of file CalibPedestal.h.
using o2::tpc::CalibPedestal::vectorType = std::vector<float> |
Definition at line 48 of file CalibPedestal.h.
CalibPedestal::CalibPedestal | ( | PadSubset | padSubset = PadSubset::ROC | ) |
default constructor
Definition at line 30 of file CalibPedestal.cxx.
|
overridedefault |
default destructor
void CalibPedestal::analyse | ( | ) |
Analyse the buffered adc values and calculate noise and pedestal.
Definition at line 99 of file CalibPedestal.cxx.
TH2 * CalibPedestal::createControlHistogram | ( | ROC | roc | ) |
generate a control histogram
Definition at line 178 of file CalibPedestal.cxx.
|
finalvirtual |
Dump the relevant data to file.
Reimplemented from o2::tpc::CalibRawBase.
Definition at line 165 of file CalibPedestal.cxx.
|
inlinefinalvirtual |
|
inline |
Definition at line 111 of file CalibPedestal.h.
|
inline |
Get the noise calibration object
Definition at line 109 of file CalibPedestal.h.
|
inline |
Get the pedestal calibration object
Definition at line 104 of file CalibPedestal.h.
|
inline |
return all pad clibrations as vector
Get the statistics type
Definition at line 117 of file CalibPedestal.h.
void CalibPedestal::init | ( | ) |
initialize the clusterer from CalibPedestalParam
Definition at line 46 of file CalibPedestal.cxx.
void CalibPedestal::resetData | ( | ) |
Reset pedestal data.
Definition at line 153 of file CalibPedestal.cxx.
set the adc range
Definition at line 82 of file CalibPedestal.h.
|
inline |
set the statistics type
Definition at line 90 of file CalibPedestal.h.
set the time bin range to analyse
Definition at line 93 of file CalibPedestal.h.
|
finalvirtual |
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 59 of file CalibPedestal.cxx.