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

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 CalPadgetPedestal () const
 
const CalPadgetNoise () 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
 
- 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.
 
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

- Public Types inherited from o2::tpc::CalibRawBase
enum class  ProcessStatus : char {
  Ok , Truncated , NoMoreData , LastEvent ,
  NoReaders , IncompleteEvent
}
 
- 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 48 of file DigitDump.h.

Constructor & Destructor Documentation

◆ DigitDump()

o2::tpc::DigitDump::DigitDump ( PadSubset  padSubset = PadSubset::ROC)
inline

default constructor

Definition at line 52 of file DigitDump.h.

◆ ~DigitDump()

DigitDump::~DigitDump ( )
override

default destructor

Definition at line 29 of file DigitDump.cxx.

Member Function Documentation

◆ addDigit()

void o2::tpc::DigitDump::addDigit ( const CRU cru,
const float  signal,
const int  rowInSector,
const int  padInRow,
const int  timeBin 
)
inline

directly add a digit

Definition at line 143 of file DigitDump.h.

◆ addPadMask()

void o2::tpc::DigitDump::addPadMask ( int  roc,
int  row,
int  pad 
)
inline

add a masked pad

Definition at line 97 of file DigitDump.h.

◆ checkDuplicates()

void DigitDump::checkDuplicates ( bool  removeDuplicates = false)

check duplicates and remove the if removeDuplicates is true

Definition at line 186 of file DigitDump.cxx.

◆ clearDigits()

void o2::tpc::DigitDump::clearDigits ( )
inline

clear the digits

Definition at line 120 of file DigitDump.h.

◆ endEvent()

void DigitDump::endEvent ( )
finalvirtual

End event function.

Implements o2::tpc::CalibRawBase.

Definition at line 130 of file DigitDump.cxx.

◆ getDigits() [1/3]

auto & o2::tpc::DigitDump::getDigits ( )
inline

Definition at line 140 of file DigitDump.h.

◆ getDigits() [2/3]

const auto & o2::tpc::DigitDump::getDigits ( ) const
inline

return digit array

Definition at line 139 of file DigitDump.h.

◆ getDigits() [3/3]

std::vector< Digit > & o2::tpc::DigitDump::getDigits ( int  sector)
inline

return digits for specific sector

Definition at line 136 of file DigitDump.h.

◆ getInMemoryMode()

bool o2::tpc::DigitDump::getInMemoryMode ( ) const
inline

get in memory mode

Definition at line 133 of file DigitDump.h.

◆ getNoise()

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

Get the noise calibration object

Returns
noise calibration object

Definition at line 94 of file DigitDump.h.

◆ getPedestal()

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

Get the pedestal calibration object

Returns
pedestal calibration object

Definition at line 89 of file DigitDump.h.

◆ init()

void DigitDump::init ( )

initialize DigitDump from DigitDumpParam

Definition at line 37 of file DigitDump.cxx.

◆ initInputOutput()

void DigitDump::initInputOutput ( )

initialize

Definition at line 175 of file DigitDump.cxx.

◆ removeCEdigits()

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.

◆ setADCRange()

void o2::tpc::DigitDump::setADCRange ( float  minADC,
float  maxADC 
)
inline

set the adc range

Definition at line 103 of file DigitDump.h.

◆ setDigitFileName()

void o2::tpc::DigitDump::setDigitFileName ( std::string_view  fileName)
inline

output file name

Definition at line 55 of file DigitDump.h.

◆ setInMemoryOnly()

void o2::tpc::DigitDump::setInMemoryOnly ( bool  mode = true)
inline

set in memory only mode

Definition at line 130 of file DigitDump.h.

◆ setNoise()

void o2::tpc::DigitDump::setNoise ( const CalPad noise)
inline

Set a custom noise object.

Definition at line 84 of file DigitDump.h.

◆ setNoiseThreshold()

void o2::tpc::DigitDump::setNoiseThreshold ( float  noiseThreshold)
inline

set noise threshold

Definition at line 100 of file DigitDump.h.

◆ setPedestalAndNoiseFile()

void o2::tpc::DigitDump::setPedestalAndNoiseFile ( std::string_view  fileName)
inline

pedestal file name

Definition at line 58 of file DigitDump.h.

◆ setPedestals()

void o2::tpc::DigitDump::setPedestals ( const CalPad pedestal)
inline

Set a custom pedestal object.

Definition at line 81 of file DigitDump.h.

◆ setTimeBinRange()

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

set the timeBin range

Definition at line 110 of file DigitDump.h.

◆ sortDigits()

void DigitDump::sortDigits ( )

sort the digits

Definition at line 109 of file DigitDump.cxx.

◆ updateCRU()

Int_t DigitDump::updateCRU ( const CRU cru,
const Int_t  row,
const Int_t  pad,
const Int_t  timeBin,
const Float_t  signal 
)
finalvirtual

not used

Implements o2::tpc::CalibRawBase.

Definition at line 56 of file DigitDump.cxx.

◆ updateROC()

Int_t o2::tpc::DigitDump::updateROC ( const Int_t  roc,
const Int_t  row,
const Int_t  pad,
const Int_t  timeBin,
const Float_t  signal 
)
inlinefinalvirtual

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 73 of file DigitDump.h.


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