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

Base of a simple event display for digits. More...

#include <SimpleEventDisplay.h>

Inherits o2::tpc::CalibRawBase.

Public Member Functions

 SimpleEventDisplay ()
 
 ~SimpleEventDisplay () override=default
 
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 updateSectorHists ()
 
CalPadgetCalPadMax ()
 
CalPadgetCalPadOccupancy ()
 
void setSelectedSector (Int_t selectedSector)
 Set currently selected sector.
 
void setLastSector (Int_t lastSector)
 Set last processed sector.
 
void setLastSelSector (Int_t lastSelSector)
 Set last selected sector.
 
void setPedstals (CalPad *pedestals)
 
void setSignalThreshold (Int_t signalThreshold)
 
void setShowOccupancy (bool showOccupancy)
 
TH1D * makePadSignals (Int_t roc, Int_t row, Int_t pad)
 
TH2D * getSigIROC () const
 
TH2D * getSigOROC () const
 
void fillSectorHistSingleTimeBin (TH2Poly *h, Int_t timeBin)
 
void setTimeBinRange (int firstBin, int lastBin)
 set time bin range
 
Int_t getFirstTimeBin () const
 
Int_t getLastTimeBin () const
 
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.
 
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

Base of a simple event display for digits.

This class is a base for a simple event display It processes raw data and saves digit information for pad and row.

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 40 of file SimpleEventDisplay.h.

Constructor & Destructor Documentation

◆ SimpleEventDisplay()

SimpleEventDisplay::SimpleEventDisplay ( )

Definition at line 31 of file SimpleEventDisplay.cxx.

◆ ~SimpleEventDisplay()

o2::tpc::SimpleEventDisplay::~SimpleEventDisplay ( )
overridedefault

Member Function Documentation

◆ endEvent()

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

Dummy end event.

Implements o2::tpc::CalibRawBase.

Definition at line 94 of file SimpleEventDisplay.h.

◆ fillSectorHistSingleTimeBin()

void SimpleEventDisplay::fillSectorHistSingleTimeBin ( TH2Poly *  h,
Int_t  timeBin 
)

Definition at line 284 of file SimpleEventDisplay.cxx.

◆ getCalPadMax()

CalPad * o2::tpc::SimpleEventDisplay::getCalPadMax ( )
inline

Definition at line 56 of file SimpleEventDisplay.h.

◆ getCalPadOccupancy()

CalPad * o2::tpc::SimpleEventDisplay::getCalPadOccupancy ( )
inline

Definition at line 58 of file SimpleEventDisplay.h.

◆ getFirstTimeBin()

Int_t o2::tpc::SimpleEventDisplay::getFirstTimeBin ( ) const
inline

Definition at line 90 of file SimpleEventDisplay.h.

◆ getLastTimeBin()

Int_t o2::tpc::SimpleEventDisplay::getLastTimeBin ( ) const
inline

Definition at line 91 of file SimpleEventDisplay.h.

◆ getSigIROC()

TH2D * o2::tpc::SimpleEventDisplay::getSigIROC ( ) const
inline

Definition at line 77 of file SimpleEventDisplay.h.

◆ getSigOROC()

TH2D * o2::tpc::SimpleEventDisplay::getSigOROC ( ) const
inline

Definition at line 78 of file SimpleEventDisplay.h.

◆ makePadSignals()

TH1D * SimpleEventDisplay::makePadSignals ( Int_t  roc,
Int_t  row,
Int_t  pad 
)

Definition at line 174 of file SimpleEventDisplay.cxx.

◆ setLastSector()

void o2::tpc::SimpleEventDisplay::setLastSector ( Int_t  lastSector)
inline

Set last processed sector.

Definition at line 64 of file SimpleEventDisplay.h.

◆ setLastSelSector()

void o2::tpc::SimpleEventDisplay::setLastSelSector ( Int_t  lastSelSector)
inline

Set last selected sector.

Definition at line 67 of file SimpleEventDisplay.h.

◆ setPedstals()

void o2::tpc::SimpleEventDisplay::setPedstals ( CalPad pedestals)
inline

Definition at line 69 of file SimpleEventDisplay.h.

◆ setSelectedSector()

void o2::tpc::SimpleEventDisplay::setSelectedSector ( Int_t  selectedSector)
inline

Set currently selected sector.

Definition at line 61 of file SimpleEventDisplay.h.

◆ setShowOccupancy()

void o2::tpc::SimpleEventDisplay::setShowOccupancy ( bool  showOccupancy)
inline

Definition at line 73 of file SimpleEventDisplay.h.

◆ setSignalThreshold()

void o2::tpc::SimpleEventDisplay::setSignalThreshold ( Int_t  signalThreshold)
inline

Definition at line 71 of file SimpleEventDisplay.h.

◆ setTimeBinRange()

void o2::tpc::SimpleEventDisplay::setTimeBinRange ( int  firstBin,
int  lastBin 
)
inline

set time bin range

Definition at line 83 of file SimpleEventDisplay.h.

◆ updateCRU()

Int_t o2::tpc::SimpleEventDisplay::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 51 of file SimpleEventDisplay.h.

◆ updateROC()

Int_t SimpleEventDisplay::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 71 of file SimpleEventDisplay.cxx.

◆ updateSectorHists()

void SimpleEventDisplay::updateSectorHists ( )

Definition at line 163 of file SimpleEventDisplay.cxx.


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