Project
Loading...
Searching...
No Matches
o2::tpc::CalibPedestal Class Reference

Pedestal calibration class. More...

#include <CalibPedestal.h>

Inherits o2::tpc::CalibRawBase.

Public Types

using vectorType = std::vector< float >
 
- Public Types inherited from o2::tpc::CalibRawBase
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 CalPadgetPedestal () const
 
const CalPadgetNoise () 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
 
- 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
 
virtual void endReader ()
 

Additional Inherited Members

- Protected Attributes inherited from o2::tpc::CalibRawBase
const MappermMapper
 TPC mapper.
 
int mDebugLevel
 debug level
 

Detailed Description

Pedestal calibration class.

This class is used to produce pad wise pedestal and noise calibration data

origin: TPC

Author
Jens Wiechula, Jens..nosp@m.Wiec.nosp@m.hula@.nosp@m.ikf..nosp@m.uni-f.nosp@m.rank.nosp@m.furt..nosp@m.de

Definition at line 45 of file CalibPedestal.h.

Member Typedef Documentation

◆ vectorType

using o2::tpc::CalibPedestal::vectorType = std::vector<float>

Definition at line 48 of file CalibPedestal.h.

Constructor & Destructor Documentation

◆ CalibPedestal()

CalibPedestal::CalibPedestal ( PadSubset  padSubset = PadSubset::ROC)

default constructor

Definition at line 30 of file CalibPedestal.cxx.

◆ ~CalibPedestal()

o2::tpc::CalibPedestal::~CalibPedestal ( )
overridedefault

default destructor

Member Function Documentation

◆ analyse()

void CalibPedestal::analyse ( )

Analyse the buffered adc values and calculate noise and pedestal.

Definition at line 99 of file CalibPedestal.cxx.

◆ createControlHistogram()

TH2 * CalibPedestal::createControlHistogram ( ROC  roc)

generate a control histogram

Definition at line 178 of file CalibPedestal.cxx.

◆ dumpToFile()

void CalibPedestal::dumpToFile ( const std::string  filename,
uint32_t  type = 0 
)
finalvirtual

Dump the relevant data to file.

Reimplemented from o2::tpc::CalibRawBase.

Definition at line 165 of file CalibPedestal.cxx.

◆ endEvent()

void o2::tpc::CalibPedestal::endEvent ( )
inlinefinalvirtual

Dummy end event.

Implements o2::tpc::CalibRawBase.

Definition at line 123 of file CalibPedestal.h.

◆ getCalDets()

const auto & o2::tpc::CalibPedestal::getCalDets ( ) const
inline

Definition at line 111 of file CalibPedestal.h.

◆ getNoise()

const CalPad & o2::tpc::CalibPedestal::getNoise ( ) const
inline

Get the noise calibration object

Returns
noise calibration object

Definition at line 109 of file CalibPedestal.h.

◆ getPedestal()

const CalPad & o2::tpc::CalibPedestal::getPedestal ( ) const
inline

Get the pedestal calibration object

Returns
pedestal calibration object

Definition at line 104 of file CalibPedestal.h.

◆ getStatisticsType()

StatisticsType o2::tpc::CalibPedestal::getStatisticsType ( ) const
inline

return all pad clibrations as vector

Get the statistics type

Definition at line 117 of file CalibPedestal.h.

◆ init()

void CalibPedestal::init ( )

initialize the clusterer from CalibPedestalParam

Definition at line 46 of file CalibPedestal.cxx.

◆ resetData()

void CalibPedestal::resetData ( )

Reset pedestal data.

Definition at line 153 of file CalibPedestal.cxx.

◆ setADCRange()

void o2::tpc::CalibPedestal::setADCRange ( int  minADC,
int  maxADC 
)
inline

set the adc range

Definition at line 82 of file CalibPedestal.h.

◆ setStatisticsType()

void o2::tpc::CalibPedestal::setStatisticsType ( StatisticsType  statisticsType)
inline

set the statistics type

Definition at line 90 of file CalibPedestal.h.

◆ setTimeBinRange()

void o2::tpc::CalibPedestal::setTimeBinRange ( int  first,
int  last 
)
inline

set the time bin range to analyse

Definition at line 93 of file CalibPedestal.h.

◆ updateCRU()

Int_t o2::tpc::CalibPedestal::updateCRU ( const CRU cru,
const Int_t  row,
const Int_t  pad,
const Int_t  timeBin,
const Float_t  signal 
)
inlinefinalvirtual

not used

Implements o2::tpc::CalibRawBase.

Definition at line 75 of file CalibPedestal.h.

◆ updateROC()

Int_t CalibPedestal::updateROC ( const Int_t  roc,
const Int_t  row,
const Int_t  pad,
const Int_t  timeBin,
const Float_t  signal 
)
finalvirtual

update function called once per digit

Parameters
rocreadout chamber
rowrow in roc
padpad in row
timeBintime bin
signalADC signal

Implements o2::tpc::CalibRawBase.

Definition at line 59 of file CalibPedestal.cxx.


The documentation for this class was generated from the following files: