Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
gar::rosim::TPCReadoutSimAlg Class Referenceabstract

#include <TPCReadoutSimAlg.h>

Inheritance diagram for gar::rosim::TPCReadoutSimAlg:
gar::rosim::TPCReadoutSimStandardAlg

Public Member Functions

 TPCReadoutSimAlg (CLHEP::HepRandomEngine &engine, fhicl::ParameterSet const &pset)
 
virtual ~TPCReadoutSimAlg ()
 
virtual raw::RawDigit CreateRawDigit (unsigned int channel, std::vector< float > const &electrons, bool &todrop)=0
 
virtual void CreateNoiseDigits (std::vector< raw::RawDigit > &digits)=0
 
virtual void reconfigure (fhicl::ParameterSet const &pset)=0
 

Protected Member Functions

virtual void AddNoiseToADCs (std::vector< short > &adcs)=0
 
virtual short ElectronsToADCs (float electrons)=0
 

Protected Attributes

CLHEP::HepRandomEngine & fEngine
 random number engine More...
 
bool fAddNoise
 flag to add noise or not More...
 
int fNoiseSpectrum
 0: Gaussian white noise; more to come More...
 
float fNoiseAmplitude
 noise amplitdue More...
 
int fNoiseVecSize
 how much noise to pre-generate More...
 
int fCompressType
 Switch to compress raw digits. More...
 
int fZSThreshold
 for ZS Compression, threshold (upwards) More...
 
unsigned int fZSTicksBefore
 for ZS Compression, # samples before More...
 
unsigned int fZSTicksAfter
 for ZS Compression, # samples after More...
 
int fPedestal
 Raw Digit Pedestal. More...
 
const detinfo::DetectorPropertiesfDetProp
 detector properties More...
 
int fADCSaturation
 limit of the ADC More...
 

Detailed Description

Definition at line 107 of file TPCReadoutSimAlg.h.

Constructor & Destructor Documentation

gar::rosim::TPCReadoutSimAlg::TPCReadoutSimAlg ( CLHEP::HepRandomEngine &  engine,
fhicl::ParameterSet const &  pset 
)

Definition at line 14 of file TPCReadoutSimAlg.cxx.

16  : fEngine (engine)
17  , fDetProp(nullptr)
18  {
19  return;
20  }
const detinfo::DetectorProperties * fDetProp
detector properties
CLHEP::HepRandomEngine & fEngine
random number engine
gar::rosim::TPCReadoutSimAlg::~TPCReadoutSimAlg ( )
virtual

Definition at line 23 of file TPCReadoutSimAlg.cxx.

24  {
25  return;
26  }

Member Function Documentation

virtual void gar::rosim::TPCReadoutSimAlg::AddNoiseToADCs ( std::vector< short > &  adcs)
protectedpure virtual
virtual void gar::rosim::TPCReadoutSimAlg::CreateNoiseDigits ( std::vector< raw::RawDigit > &  digits)
pure virtual
virtual raw::RawDigit gar::rosim::TPCReadoutSimAlg::CreateRawDigit ( unsigned int  channel,
std::vector< float > const &  electrons,
bool todrop 
)
pure virtual
virtual short gar::rosim::TPCReadoutSimAlg::ElectronsToADCs ( float  electrons)
protectedpure virtual
virtual void gar::rosim::TPCReadoutSimAlg::reconfigure ( fhicl::ParameterSet const &  pset)
pure virtual

Member Data Documentation

int gar::rosim::TPCReadoutSimAlg::fADCSaturation
protected

limit of the ADC

Definition at line 138 of file TPCReadoutSimAlg.h.

bool gar::rosim::TPCReadoutSimAlg::fAddNoise
protected

flag to add noise or not

Definition at line 128 of file TPCReadoutSimAlg.h.

int gar::rosim::TPCReadoutSimAlg::fCompressType
protected

Switch to compress raw digits.

Definition at line 132 of file TPCReadoutSimAlg.h.

const detinfo::DetectorProperties* gar::rosim::TPCReadoutSimAlg::fDetProp
protected

detector properties

Definition at line 137 of file TPCReadoutSimAlg.h.

CLHEP::HepRandomEngine& gar::rosim::TPCReadoutSimAlg::fEngine
protected

random number engine

Definition at line 127 of file TPCReadoutSimAlg.h.

float gar::rosim::TPCReadoutSimAlg::fNoiseAmplitude
protected

noise amplitdue

Definition at line 130 of file TPCReadoutSimAlg.h.

int gar::rosim::TPCReadoutSimAlg::fNoiseSpectrum
protected

0: Gaussian white noise; more to come

Definition at line 129 of file TPCReadoutSimAlg.h.

int gar::rosim::TPCReadoutSimAlg::fNoiseVecSize
protected

how much noise to pre-generate

Definition at line 131 of file TPCReadoutSimAlg.h.

int gar::rosim::TPCReadoutSimAlg::fPedestal
protected

Raw Digit Pedestal.

Definition at line 136 of file TPCReadoutSimAlg.h.

int gar::rosim::TPCReadoutSimAlg::fZSThreshold
protected

for ZS Compression, threshold (upwards)

Definition at line 133 of file TPCReadoutSimAlg.h.

unsigned int gar::rosim::TPCReadoutSimAlg::fZSTicksAfter
protected

for ZS Compression, # samples after

Definition at line 135 of file TPCReadoutSimAlg.h.

unsigned int gar::rosim::TPCReadoutSimAlg::fZSTicksBefore
protected

for ZS Compression, # samples before

Definition at line 134 of file TPCReadoutSimAlg.h.


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