PandaRoot
BSEmcBwEndcapOnlineFeatureExtraction Class Reference

Process to extract digis from BwEndcap waveforms. More...

#include <BSEmcBwEndcapOnlineFeatureExtraction.h>

Inheritance diagram for BSEmcBwEndcapOnlineFeatureExtraction:
BSEmcOnlineFeatureExtractionProcess PndProcess

Public Member Functions

 BSEmcBwEndcapOnlineFeatureExtraction ()
 
virtual ~BSEmcBwEndcapOnlineFeatureExtraction ()
 
virtual void SetDetectorName (const std::string &t_detectorName)
 Sets the detectorname and fills the parameterlist with names of all required parameter. More...
 
virtual void SetupParameters (const PndParameterRegister *t_parameterRegister)
 Fetches the parameteres requested in SetDetectorName. More...
 
void SingleAPDMode (Bool_t t_mode=kTRUE)
 
void SetVerbose (Int_t iVerbose)
 
- Public Member Functions inherited from BSEmcOnlineFeatureExtractionProcess
 BSEmcOnlineFeatureExtractionProcess ()
 
virtual ~BSEmcOnlineFeatureExtractionProcess ()
 
virtual void RequestDataContainer (PndContainerRegister *t_register)
 Pass the container register to the process, and get the processes container requirements. More...
 
virtual void GetDataContainer (PndContainerRegister *t_register)
 Pass the container register to the process, and set the processes container requirements. More...
 
virtual void Process ()
 The actual data transformation (digitizing, clustering, etc.) should be defined here. More...
 
void SetStorageOfData (Bool_t t_val)
 
void SetPSA (BSEmcAbsPSA *t_psa)
 
std::vector< BSEmcDigi * > ExtractDigis (const std::vector< const BSEmcMultiWaveform *> &t_waveforms) const
 
void SetMCDepositBranchName (const TString &t_branchname)
 
void SetWaveformBranchName (const TString &t_branchname)
 
void SetDigiBranchName (const TString &t_branchname)
 
- Public Member Functions inherited from PndProcess
 PndProcess ()
 
 PndProcess (const std::string &t_processname)
 
virtual ~PndProcess ()
 
const std::vector< std::string > & GetListOfRequiredParameters () const
 Get the List Of Required Parameters. More...
 
virtual void PreProcess ()
 PreProcess() is called before the actual Process() call in each event. More...
 
virtual void PostProcess ()
 Immediately after calling Process() PostProcess() is called for cleanup of internal process data, or if not needed, to end the time and memory increase measurement started by PreProcess() More...
 
virtual void TearDown ()
 Last actions at the end of the run. More...
 

Protected Member Functions

virtual void DefinePSA ()
 Define PSA. More...
 
virtual BSEmcDigi::eGAIN GetGainType (const BSEmcWaveform *t_waveform, Int_t t_hit) const
 
virtual Double_t GetTimeStamp (const BSEmcWaveform *, Double_t t_digi_time) const
 
- Protected Member Functions inherited from BSEmcOnlineFeatureExtractionProcess
 ClassDef (BSEmcOnlineFeatureExtractionProcess, 1)
 

Protected Attributes

Int_t fVerbose {0}
 
- Protected Attributes inherited from BSEmcOnlineFeatureExtractionProcess
Double_t fTimebunchCutTime {0}
 
TString fMCDepositBranchName {""}
 
TString fWaveformBranchName {""}
 
TString fDigiBranchName {""}
 
PndMutableContainerI< BSEmcDigi > * fDigiArray {nullptr}
 
PndContainerI< BSEmcMultiWaveform > * fWaveformArray {}
 
Double_t fEnergyDigiThreshold {0}
 
BSEmcAbsPSAfPSA {nullptr}
 
- Protected Attributes inherited from PndProcess
std::vector< std::string > fParameterList {}
 Parameter names required by this PndProcess. Needs to be populated in derived class. More...
 
std::string fDetectorName {""}
 Set Detector name this PndProcess transforms data for. Required for example by EMC Processes to fetch right parameters. More...
 
std::string fProcessName {"PndProcess"}
 Name of current PndProcess (for debugging) More...
 
TStopwatch fTimer {}
 Timer to monitor Process() time. More...
 
Double_t fTotalTime {0}
 Time taken by this Process' Process() More...
 
ProcInfo_t fProcInfo
 Helper to access cpu process Memory Info. More...
 
Long_t fLastMemSize
 

Detailed Description

Process to extract digis from BwEndcap waveforms.

Author
Guang Zhao (zhaog.nosp@m.@ihe.nosp@m.p.ac..nosp@m.cn)

Definition at line 34 of file BSEmcBwEndcapOnlineFeatureExtraction.h.

Constructor & Destructor Documentation

◆ BSEmcBwEndcapOnlineFeatureExtraction()

BSEmcBwEndcapOnlineFeatureExtraction::BSEmcBwEndcapOnlineFeatureExtraction ( )

◆ ~BSEmcBwEndcapOnlineFeatureExtraction()

virtual BSEmcBwEndcapOnlineFeatureExtraction::~BSEmcBwEndcapOnlineFeatureExtraction ( )
virtual

Member Function Documentation

◆ DefinePSA()

virtual void BSEmcBwEndcapOnlineFeatureExtraction::DefinePSA ( )
protectedvirtual

Define PSA.

◆ GetGainType()

virtual BSEmcDigi::eGAIN BSEmcBwEndcapOnlineFeatureExtraction::GetGainType ( const BSEmcWaveform t_waveform,
Int_t  t_hit 
) const
protectedvirtual

◆ GetTimeStamp()

virtual Double_t BSEmcBwEndcapOnlineFeatureExtraction::GetTimeStamp ( const BSEmcWaveform ,
Double_t  t_digi_time 
) const
inlineprotectedvirtual

Reimplemented from BSEmcOnlineFeatureExtractionProcess.

Definition at line 66 of file BSEmcBwEndcapOnlineFeatureExtraction.h.

66 { return t_digi_time; }

◆ SetDetectorName()

virtual void BSEmcBwEndcapOnlineFeatureExtraction::SetDetectorName ( const std::string &  t_detectorName)
virtual

Sets the detectorname and fills the parameterlist with names of all required parameter.

Parameters
t_detectorName

Reimplemented from BSEmcOnlineFeatureExtractionProcess.

◆ SetupParameters()

virtual void BSEmcBwEndcapOnlineFeatureExtraction::SetupParameters ( const PndParameterRegister t_parameterRegister)
virtual

Fetches the parameteres requested in SetDetectorName.

Parameters
t_parameterRegister

Reimplemented from BSEmcOnlineFeatureExtractionProcess.

◆ SetVerbose()

void BSEmcBwEndcapOnlineFeatureExtraction::SetVerbose ( Int_t  iVerbose)
inline

◆ SingleAPDMode()

void BSEmcBwEndcapOnlineFeatureExtraction::SingleAPDMode ( Bool_t  t_mode = kTRUE)
inline

Definition at line 54 of file BSEmcBwEndcapOnlineFeatureExtraction.h.

54 { fSingleAPDMode = t_mode; }

Member Data Documentation

◆ fVerbose

Int_t BSEmcBwEndcapOnlineFeatureExtraction::fVerbose {0}
protected

Definition at line 59 of file BSEmcBwEndcapOnlineFeatureExtraction.h.

Referenced by SetVerbose().


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