![]() |
Project
|
Pulser calibration class. More...
#include <CalibPulser.h>
Inherits o2::tpc::CalibRawBase.
Public Types | |
| using | VectorType = std::vector< float > |
| using | PtrVectorType = std::vector< std::unique_ptr< TH2S > > |
Public Types inherited from o2::tpc::CalibRawBase | |
| enum class | ProcessStatus : char { Ok , Truncated , NoMoreData , LastEvent , NoReaders , IncompleteEvent } |
Public Member Functions | |
| CalibPulser (PadSubset padSubset=PadSubset::ROC) | |
| default constructor | |
| ~CalibPulser () 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 temporary data and histogrms. | |
| void | setADCRange (int minADC, int maxADC) |
| set the adc range | |
| void | setTimeBinRange (int first, int last) |
| set the timeBin range | |
| void | setPedestalAndNoise (const CalPad *pedestal, const CalPad *noise) |
| set noise and pedestal calibration objects | |
| void | setT0Binning (int nbins, float min, float max) |
| set T0 Binning | |
| void | setWidthBinning (int nbins, float min, float max) |
| set Width Binning | |
| void | setQtotBinning (int nbins, float min, float max) |
| set Qtot Binning | |
| void | setMinQtot (float minQtot) |
| set minimum Qtot for the signal | |
| void | setMinQmax (float minQmax) |
| set minimum Qmax for the signal | |
| void | setMaxTimeBinRange (int max) |
| set time bin range around the one with the maximum number of entries | |
| void | analyse () |
| Analyse the buffered pulser information. | |
| const CalPad & | getT0 () const |
| const CalPad & | getWidth () const |
| const CalPad & | getQtot () const |
| const auto & | getCalDets () const |
| void | dumpToFile (const std::string filename, uint32_t type=0) final |
| Dump the relevant data to file. | |
| void | endReader () final |
| Process the end of one raw reader. | |
| void | endEvent () final |
| Dummy end event. | |
Public Member Functions inherited from o2::tpc::CalibRawBase | |
| 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 | |
Additional Inherited Members | |
Protected Attributes inherited from o2::tpc::CalibRawBase | |
| const Mapper & | mMapper |
| TPC mapper. | |
| int | mDebugLevel |
| debug level | |
Pulser calibration class.
This class is used to produce pad wise pulser calibration information
origin: TPC
Definition at line 42 of file CalibPulser.h.
| using o2::tpc::CalibPulser::PtrVectorType = std::vector<std::unique_ptr<TH2S> > |
Definition at line 46 of file CalibPulser.h.
| using o2::tpc::CalibPulser::VectorType = std::vector<float> |
Definition at line 45 of file CalibPulser.h.
| CalibPulser::CalibPulser | ( | PadSubset | padSubset = PadSubset::ROC | ) |
default constructor
Definition at line 31 of file CalibPulser.cxx.
|
overridedefault |
default destructor
| void CalibPulser::analyse | ( | ) |
Analyse the buffered pulser information.
Definition at line 276 of file CalibPulser.cxx.
|
finalvirtual |
Dump the relevant data to file.
Reimplemented from o2::tpc::CalibRawBase.
Definition at line 310 of file CalibPulser.cxx.
|
inlinefinalvirtual |
|
finalvirtual |
Process the end of one raw reader.
Reimplemented from o2::tpc::CalibRawBase.
Definition at line 140 of file CalibPulser.cxx.
|
inline |
Definition at line 148 of file CalibPulser.h.
|
inline |
Get the pulser total charge calibration object
Definition at line 146 of file CalibPulser.h.
|
inline |
Get the pulser mean time calibration object
Definition at line 138 of file CalibPulser.h.
|
inline |
Get the pulser pulse with calibration object
Definition at line 142 of file CalibPulser.h.
| void CalibPulser::init | ( | ) |
initialize the clusterer from CalibPedestalParam
Definition at line 73 of file CalibPulser.cxx.
| void CalibPulser::resetData | ( | ) |
Reset temporary data and histogrms.
Definition at line 257 of file CalibPulser.cxx.
|
inline |
set the adc range
Definition at line 75 of file CalibPulser.h.
|
inline |
set time bin range around the one with the maximum number of entries
Definition at line 131 of file CalibPulser.h.
|
inline |
set minimum Qmax for the signal
Definition at line 128 of file CalibPulser.h.
|
inline |
set minimum Qtot for the signal
Definition at line 125 of file CalibPulser.h.
|
inline |
set noise and pedestal calibration objects
Definition at line 94 of file CalibPulser.h.
|
inline |
set Qtot Binning
Definition at line 117 of file CalibPulser.h.
|
inline |
set T0 Binning
Definition at line 101 of file CalibPulser.h.
|
inline |
set the timeBin range
Definition at line 83 of file CalibPulser.h.
|
inline |
set Width Binning
Definition at line 109 of file CalibPulser.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 99 of file CalibPulser.cxx.