PandaRoot
BSEmcIdealDigitizationProcess Class Reference

Smears BSEmcMCHit energy and forms BSEmcDigi if energy above threshold. More...

#include <BSEmcIdealDigitizationProcess.h>

Inheritance diagram for BSEmcIdealDigitizationProcess:
PndProcess< BSEmcDigitizationData > BSEmcShashlikIdealDigitizationProcess

Public Member Functions

 BSEmcIdealDigitizationProcess ()
 
virtual ~BSEmcIdealDigitizationProcess ()
 
virtual void SetData (BSEmcDigitizationData *t_data)
 Pass the data container ptrs to the process, and store pointers in class members. More...
 
virtual void SetDetectorName (const std::string &t_detectorName)
 Set the Detector name. Important, as most EmcParameter need to know for which detector they need to be fetched (each Emc Subdetector has its own set of parameters) More...
 
virtual void SetupParameters (const PndParameterRegister *t_paramRegister)
 Fetch all parameters from the PndParameterRegister. More...
 
virtual void Process ()
 The actual data transformation (digitizing, clustering, etc.) should be defined here. More...
 
std::vector< BSEmcDigi * > DigitizeHits (const std::vector< const BSEmcMCHit *> &t_mchitCont)
 
BSEmcDigiDigitizeHit (const BSEmcMCHit *t_hit, Int_t t_hitIndex)
 
void SetReadoutType (const std::string &t_readout)
 
void SetDigiParName (const std::string &t_parName)
 
- Public Member Functions inherited from PndProcess< BSEmcDigitizationData >
 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 Attributes

std::string fDigiParName {""}
 
std::string fReadOut {""}
 
Int_t fUseDigiEffectiveSmearing {-1}
 
Double_t fEnergyDigiThreshold {-1}
 
Double_t fDetectedPhotonsPerMeV {-1}
 
Double_t fQuantumEfficiency {-1}
 
Double_t fExcessNoiseFactor {-1}
 
Double_t fIncoherentElecNoiseWidthGeV {-1}
 
Double_t fNPhotoElectronsPerMeV {-1}
 
Double_t fNoiseOverNElectrons {-1}
 
std::string fHitBranchName {""}
 
PndInputContainerI< BSEmcMCHit > * fHitArray {nullptr}
 
PndOutputContainerI< BSEmcDigi > * fDigiArray {nullptr}
 
- Protected Attributes inherited from PndProcess< BSEmcDigitizationData >
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
 Name of current PndProcess (for debugging) More...
 
TStopwatch fTimer
 Timer to monitor Process() time. More...
 
Double_t fTotalTime
 Time taken by this Process' Process() More...
 
ProcInfo_t fProcInfo
 Helper to access cpu process Memory Info. More...
 
Long_t fLastMemSize
 

Detailed Description

Smears BSEmcMCHit energy and forms BSEmcDigi if energy above threshold.

Based on PndEmcMakeDigi Energy Threshold and smearing parameters in BSEmcDigiPar

Author
Ben Salisbury salis.nosp@m.bury.nosp@m.@hisk.nosp@m.p.un.nosp@m.i-bon.nosp@m.n.de, HISKP Bonn
Date
2021-01

Definition at line 37 of file BSEmcIdealDigitizationProcess.h.

Constructor & Destructor Documentation

◆ BSEmcIdealDigitizationProcess()

BSEmcIdealDigitizationProcess::BSEmcIdealDigitizationProcess ( )

◆ ~BSEmcIdealDigitizationProcess()

virtual BSEmcIdealDigitizationProcess::~BSEmcIdealDigitizationProcess ( )
virtual

Member Function Documentation

◆ DigitizeHit()

BSEmcDigi* BSEmcIdealDigitizationProcess::DigitizeHit ( const BSEmcMCHit t_hit,
Int_t  t_hitIndex 
)

◆ DigitizeHits()

std::vector<BSEmcDigi *> BSEmcIdealDigitizationProcess::DigitizeHits ( const std::vector< const BSEmcMCHit *> &  t_mchitCont)

◆ Process()

virtual void BSEmcIdealDigitizationProcess::Process ( )
virtual

The actual data transformation (digitizing, clustering, etc.) should be defined here.

Implements PndProcess< BSEmcDigitizationData >.

◆ SetData()

virtual void BSEmcIdealDigitizationProcess::SetData ( BSEmcDigitizationData t_data)
virtual

Pass the data container ptrs to the process, and store pointers in class members.

Parameters
t_data

Implements PndProcess< BSEmcDigitizationData >.

◆ SetDetectorName()

virtual void BSEmcIdealDigitizationProcess::SetDetectorName ( const std::string &  t_detectorname)
virtual

Set the Detector name. Important, as most EmcParameter need to know for which detector they need to be fetched (each Emc Subdetector has its own set of parameters)

Parameters
t_detectorname

Reimplemented from PndProcess< BSEmcDigitizationData >.

◆ SetDigiParName()

void BSEmcIdealDigitizationProcess::SetDigiParName ( const std::string &  t_parName)
inline

Definition at line 48 of file BSEmcIdealDigitizationProcess.h.

References fDigiParName.

◆ SetReadoutType()

void BSEmcIdealDigitizationProcess::SetReadoutType ( const std::string &  t_readout)
inline

Definition at line 47 of file BSEmcIdealDigitizationProcess.h.

References fReadOut.

47 { fReadOut = t_readout; }

◆ SetupParameters()

virtual void BSEmcIdealDigitizationProcess::SetupParameters ( const PndParameterRegister t_parameter)
virtual

Fetch all parameters from the PndParameterRegister.

Parameters
t_parameter

Implements PndProcess< BSEmcDigitizationData >.

Member Data Documentation

◆ fDetectedPhotonsPerMeV

Double_t BSEmcIdealDigitizationProcess::fDetectedPhotonsPerMeV {-1}
protected

Definition at line 55 of file BSEmcIdealDigitizationProcess.h.

◆ fDigiArray

PndOutputContainerI<BSEmcDigi>* BSEmcIdealDigitizationProcess::fDigiArray {nullptr}
protected

Definition at line 63 of file BSEmcIdealDigitizationProcess.h.

◆ fDigiParName

std::string BSEmcIdealDigitizationProcess::fDigiParName {""}
protected

Definition at line 51 of file BSEmcIdealDigitizationProcess.h.

Referenced by SetDigiParName().

◆ fEnergyDigiThreshold

Double_t BSEmcIdealDigitizationProcess::fEnergyDigiThreshold {-1}
protected

Definition at line 54 of file BSEmcIdealDigitizationProcess.h.

◆ fExcessNoiseFactor

Double_t BSEmcIdealDigitizationProcess::fExcessNoiseFactor {-1}
protected

Definition at line 57 of file BSEmcIdealDigitizationProcess.h.

◆ fHitArray

PndInputContainerI<BSEmcMCHit>* BSEmcIdealDigitizationProcess::fHitArray {nullptr}
protected

Definition at line 62 of file BSEmcIdealDigitizationProcess.h.

◆ fHitBranchName

std::string BSEmcIdealDigitizationProcess::fHitBranchName {""}
protected

Definition at line 61 of file BSEmcIdealDigitizationProcess.h.

◆ fIncoherentElecNoiseWidthGeV

Double_t BSEmcIdealDigitizationProcess::fIncoherentElecNoiseWidthGeV {-1}
protected

Definition at line 58 of file BSEmcIdealDigitizationProcess.h.

◆ fNoiseOverNElectrons

Double_t BSEmcIdealDigitizationProcess::fNoiseOverNElectrons {-1}
protected

Definition at line 60 of file BSEmcIdealDigitizationProcess.h.

◆ fNPhotoElectronsPerMeV

Double_t BSEmcIdealDigitizationProcess::fNPhotoElectronsPerMeV {-1}
protected

Definition at line 59 of file BSEmcIdealDigitizationProcess.h.

◆ fQuantumEfficiency

Double_t BSEmcIdealDigitizationProcess::fQuantumEfficiency {-1}
protected

Definition at line 56 of file BSEmcIdealDigitizationProcess.h.

◆ fReadOut

std::string BSEmcIdealDigitizationProcess::fReadOut {""}
protected

Definition at line 52 of file BSEmcIdealDigitizationProcess.h.

Referenced by SetReadoutType().

◆ fUseDigiEffectiveSmearing

Int_t BSEmcIdealDigitizationProcess::fUseDigiEffectiveSmearing {-1}
protected

Definition at line 53 of file BSEmcIdealDigitizationProcess.h.


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