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

Class for TPC HW cluster finding. More...

#include <HwClusterer.h>

Inherits o2::tpc::Clusterer.

Public Member Functions

 HwClusterer (std::vector< ClusterHardwareContainer8kb > *clusterOutput, int sectorid, MCLabelContainer *labelOutput=nullptr)
 
 ~HwClusterer () override=default
 Destructor.
 
 HwClusterer (HwClusterer const &other)=default
 Copy Constructor.
 
void init ()
 initialize the clusterer from HwClustererParam
 
void process (gsl::span< o2::tpc::Digit const > const &digits, ConstMCLabelContainerView const &mcDigitTruth) override
 
void process (gsl::span< o2::tpc::Digit const > const &digits, ConstMCLabelContainerView const &mcDigitTruth, bool clearContainerFirst)
 
void finishProcess (gsl::span< o2::tpc::Digit const > const &digits, ConstMCLabelContainerView const &mcDigitTruth) override
 
void finishProcess (gsl::span< o2::tpc::Digit const > const &digits, ConstMCLabelContainerView const &mcDigitTruth, bool clearContainerFirst)
 
void setContinuousReadout (bool isContinuous)
 
void setPeakChargeThreshold (unsigned charge)
 
void setContributionChargeThreshold (unsigned charge)
 
void setRejectSinglePadClusters (bool doReject)
 
void setRejectSingleTimeClusters (bool doReject)
 
void setRejectLaterTimebin (bool doReject)
 
void setSplittingMode (short mode)
 
- Public Member Functions inherited from o2::tpc::Clusterer
 Clusterer ()=default
 Default Constructor.
 
virtual ~Clusterer ()=default
 Destructor.
 
 Clusterer (Clusterer const &other)=default
 Copy constructor.
 
void setNoiseObject (CalDet< float > *noiseObject)
 
void setPedestalObject (CalDet< float > *pedestalObject)
 

Additional Inherited Members

- Protected Attributes inherited from o2::tpc::Clusterer
CalDet< float > * mNoiseObject
 Pointer to the CalDet object for noise simulation.
 
CalDet< float > * mPedestalObject
 Pointer to the CalDet object for the pedestal subtraction.
 

Detailed Description

Class for TPC HW cluster finding.

Definition at line 41 of file HwClusterer.h.

Constructor & Destructor Documentation

◆ HwClusterer() [1/2]

HwClusterer::HwClusterer ( std::vector< ClusterHardwareContainer8kb > *  clusterOutput,
int  sectorid,
MCLabelContainer labelOutput = nullptr 
)

Constructor

Parameters
clusterOutputis pointer to vector to be filled with ClusterHardwareContainers
labelOutputis pointer to storage to be filled with MC labels
sectoridis sector number to be processed

Definition at line 30 of file HwClusterer.cxx.

◆ ~HwClusterer()

o2::tpc::HwClusterer::~HwClusterer ( )
overridedefault

Destructor.

◆ HwClusterer() [2/2]

o2::tpc::HwClusterer::HwClusterer ( HwClusterer const &  other)
default

Copy Constructor.

Member Function Documentation

◆ finishProcess() [1/2]

void o2::tpc::HwClusterer::finishProcess ( gsl::span< o2::tpc::Digit const > const &  digits,
ConstMCLabelContainerView const &  mcDigitTruth 
)
inlineoverridevirtual

Finish processing digits

Parameters
digitsContainer with TPC digits
mcDigitTruthMC Digit Truth container
clearContainerFirstClears the outpcontainer for clusters and MC labels first, before processing

Implements o2::tpc::Clusterer.

Definition at line 226 of file HwClusterer.h.

◆ finishProcess() [2/2]

void HwClusterer::finishProcess ( gsl::span< o2::tpc::Digit const > const &  digits,
ConstMCLabelContainerView const &  mcDigitTruth,
bool  clearContainerFirst 
)

Definition at line 280 of file HwClusterer.cxx.

◆ init()

void HwClusterer::init ( )

initialize the clusterer from HwClustererParam

Definition at line 117 of file HwClusterer.cxx.

◆ process() [1/2]

void o2::tpc::HwClusterer::process ( gsl::span< o2::tpc::Digit const > const &  digits,
ConstMCLabelContainerView const &  mcDigitTruth 
)
inlineoverridevirtual

Process digits

Parameters
digitsContainer with TPC digits
mcDigitTruthMC Digit Truth container
clearContainerFirstClears the outpcontainer for clusters and MC labels first, before processing

Implements o2::tpc::Clusterer.

Definition at line 221 of file HwClusterer.h.

◆ process() [2/2]

void HwClusterer::process ( gsl::span< o2::tpc::Digit const > const &  digits,
ConstMCLabelContainerView const &  mcDigitTruth,
bool  clearContainerFirst 
)

Definition at line 133 of file HwClusterer.cxx.

◆ setContinuousReadout()

void o2::tpc::HwClusterer::setContinuousReadout ( bool  isContinuous)
inline

Switch for triggered / continuous readout

Parameters
isContinuous- false for triggered readout, true for continuous readout

Definition at line 231 of file HwClusterer.h.

◆ setContributionChargeThreshold()

void o2::tpc::HwClusterer::setContributionChargeThreshold ( unsigned  charge)
inline

Sets the charge threshold for the contributing pads

Parameters
chargeThreshold which will be used

Definition at line 241 of file HwClusterer.h.

◆ setPeakChargeThreshold()

void o2::tpc::HwClusterer::setPeakChargeThreshold ( unsigned  charge)
inline

Sets the charge threshold for the peak

Parameters
chargeThreshold which will be used

Definition at line 236 of file HwClusterer.h.

◆ setRejectLaterTimebin()

void o2::tpc::HwClusterer::setRejectLaterTimebin ( bool  doReject)
inline

Switch to reject peaks in following timebins

Parameters
doReject- true to reject peak, false to NOT reject peaks in following bins

Definition at line 256 of file HwClusterer.h.

◆ setRejectSinglePadClusters()

void o2::tpc::HwClusterer::setRejectSinglePadClusters ( bool  doReject)
inline

Switch to reject single pad clusters

Parameters
doReject- true to reject clusters with sigmaPad2Pre == 0

Definition at line 246 of file HwClusterer.h.

◆ setRejectSingleTimeClusters()

void o2::tpc::HwClusterer::setRejectSingleTimeClusters ( bool  doReject)
inline

Switch to reject single time clusters

Parameters
doReject- true to reject clusters with sigmaTime2Pre == 0

Definition at line 251 of file HwClusterer.h.

◆ setSplittingMode()

void o2::tpc::HwClusterer::setSplittingMode ( short  mode)
inline

Switch for mode, how the charge should be shared among nearby clusters

Parameters
mode0 for no splitting, charge is used for all found peaks, 1 for minimum contributes half to all peaks 2 for minimum contributes only to left/older peak

Definition at line 261 of file HwClusterer.h.


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