WCSim
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
WCSimWCDigitizerBase Class Referenceabstract

#include <WCSimWCDigitizer.hh>

Inheritance diagram for WCSimWCDigitizerBase:
Inheritance graph
Collaboration diagram for WCSimWCDigitizerBase:
Collaboration graph

Public Member Functions

 WCSimWCDigitizerBase (G4String name, WCSimDetectorConstruction *, WCSimWCDAQMessenger *, DigitizerType_t, G4String detectorElement)
 
virtual ~WCSimWCDigitizerBase ()
 
bool AddNewDigit (int tube, int gate, double digihittime, double peSmeared, std::vector< int > digi_comp)
 
virtual void DigitizeHits (WCSimWCDigitsCollection *WCHCPMT)=0
 
void DigitizeGate (WCSimWCDigitsCollection *WCHC, G4int G)
 
void Digitize ()
 
void SetDigitizerDeadTime (int deadtime)
 
void SetDigitizerIntegrationWindow (int inttime)
 Override the default digitizer deadtime (ns) More...
 
void SetDigitizerTimingPrecision (double precision)
 Override the default digitizer integration window (ns) More...
 
void SetDigitizerPEPrecision (double precision)
 Override the default digitizer timing resolution (ns) More...
 
double Truncate (double value, double precision)
 Override the default digitizer charge resolution (p.e.) More...
 
void SaveOptionsToOutput (WCSimRootOptions *wcopt)
 Save current values of options. More...
 

Protected Member Functions

void ReInitialize ()
 
virtual int GetDefaultDeadTime ()=0
 Set the default digitizer-specific deadtime (in ns) (overridden by .mac) More...
 
virtual int GetDefaultIntegrationWindow ()=0
 Set the default digitizer-specific integration window (in ns) (overridden by .mac) More...
 
virtual double GetDefaultTimingPrecision ()=0
 Set the default digitizer-specific timing resolution (in ns) (overridden by .mac) More...
 
virtual double GetDefaultPEPrecision ()=0
 Set the default digitizer-specific charge resolution (in p.e.) (overridden by .mac) More...
 
void GetVariables ()
 Get the default deadtime, etc. from the derived class, and override with read from the .mac file. More...
 

Protected Attributes

WCSimDetectorConstructionmyDetector
 Get the geometry information. More...
 
WCSimWCDAQMessengerDAQMessenger
 Get the /DAQ/ .mac options. More...
 
G4String detectorElement
 
WCSimWCDigitsCollectionDigiStore
 
std::map< int, int > DigiStoreHitMap
 Used to check if a digit has already been created on a PMT. More...
 
G4String DigitizerClassName
 Name of the digitizer class being run. More...
 
int DigitizerDeadTime
 Digitizer deadtime (ns) More...
 
int DigitizerIntegrationWindow
 Digitizer integration window (ns) More...
 
double DigitizerTimingPrecision
 Digitizer time precision (ns) More...
 
double DigitizerPEPrecision
 Digitizer charge precision (p.e.) More...
 
DigitizerType_t DigitizerType
 Enumeration to say which digitizer we've constructed. More...
 

Detailed Description

Definition at line 23 of file WCSimWCDigitizer.hh.

Constructor & Destructor Documentation

◆ WCSimWCDigitizerBase()

WCSimWCDigitizerBase::WCSimWCDigitizerBase ( G4String  name,
WCSimDetectorConstruction inDetector,
WCSimWCDAQMessenger myMessenger,
DigitizerType_t  digitype,
G4String  detectorElement 
)

Definition at line 33 of file WCSimWCDigitizer.cc.

◆ ~WCSimWCDigitizerBase()

WCSimWCDigitizerBase::~WCSimWCDigitizerBase ( )
virtual

Definition at line 58 of file WCSimWCDigitizer.cc.

Member Function Documentation

◆ AddNewDigit()

bool WCSimWCDigitizerBase::AddNewDigit ( int  tube,
int  gate,
double  digihittime,
double  peSmeared,
std::vector< int >  digi_comp 
)

Definition at line 127 of file WCSimWCDigitizer.cc.

◆ Digitize()

void WCSimWCDigitizerBase::Digitize ( )

Definition at line 86 of file WCSimWCDigitizer.cc.

◆ DigitizeGate()

void WCSimWCDigitizerBase::DigitizeGate ( WCSimWCDigitsCollection WCHC,
G4int  G 
)

◆ DigitizeHits()

virtual void WCSimWCDigitizerBase::DigitizeHits ( WCSimWCDigitsCollection WCHCPMT)
pure virtual

Implemented in WCSimWCDigitizerSKI.

◆ GetDefaultDeadTime()

virtual int WCSimWCDigitizerBase::GetDefaultDeadTime ( )
protectedpure virtual

Set the default digitizer-specific deadtime (in ns) (overridden by .mac)

Implemented in WCSimWCDigitizerSKI.

◆ GetDefaultIntegrationWindow()

virtual int WCSimWCDigitizerBase::GetDefaultIntegrationWindow ( )
protectedpure virtual

Set the default digitizer-specific integration window (in ns) (overridden by .mac)

Implemented in WCSimWCDigitizerSKI.

◆ GetDefaultPEPrecision()

virtual double WCSimWCDigitizerBase::GetDefaultPEPrecision ( )
protectedpure virtual

Set the default digitizer-specific charge resolution (in p.e.) (overridden by .mac)

Implemented in WCSimWCDigitizerSKI.

◆ GetDefaultTimingPrecision()

virtual double WCSimWCDigitizerBase::GetDefaultTimingPrecision ( )
protectedpure virtual

Set the default digitizer-specific timing resolution (in ns) (overridden by .mac)

Implemented in WCSimWCDigitizerSKI.

◆ GetVariables()

void WCSimWCDigitizerBase::GetVariables ( )
protected

Get the default deadtime, etc. from the derived class, and override with read from the .mac file.

Definition at line 61 of file WCSimWCDigitizer.cc.

◆ ReInitialize()

void WCSimWCDigitizerBase::ReInitialize ( )
inlineprotected

Definition at line 53 of file WCSimWCDigitizer.hh.

◆ SaveOptionsToOutput()

void WCSimWCDigitizerBase::SaveOptionsToOutput ( WCSimRootOptions wcopt)

Save current values of options.

Definition at line 185 of file WCSimWCDigitizer.cc.

◆ SetDigitizerDeadTime()

void WCSimWCDigitizerBase::SetDigitizerDeadTime ( int  deadtime)
inline

Definition at line 36 of file WCSimWCDigitizer.hh.

◆ SetDigitizerIntegrationWindow()

void WCSimWCDigitizerBase::SetDigitizerIntegrationWindow ( int  inttime)
inline

Override the default digitizer deadtime (ns)

Definition at line 37 of file WCSimWCDigitizer.hh.

◆ SetDigitizerPEPrecision()

void WCSimWCDigitizerBase::SetDigitizerPEPrecision ( double  precision)
inline

Override the default digitizer timing resolution (ns)

Definition at line 39 of file WCSimWCDigitizer.hh.

◆ SetDigitizerTimingPrecision()

void WCSimWCDigitizerBase::SetDigitizerTimingPrecision ( double  precision)
inline

Override the default digitizer integration window (ns)

Definition at line 38 of file WCSimWCDigitizer.hh.

◆ Truncate()

double WCSimWCDigitizerBase::Truncate ( double  value,
double  precision 
)
inline

Override the default digitizer charge resolution (p.e.)

Definition at line 41 of file WCSimWCDigitizer.hh.

Member Data Documentation

◆ DAQMessenger

WCSimWCDAQMessenger* WCSimWCDigitizerBase::DAQMessenger
protected

Get the /DAQ/ .mac options.

Definition at line 56 of file WCSimWCDigitizer.hh.

◆ detectorElement

G4String WCSimWCDigitizerBase::detectorElement
protected

Definition at line 57 of file WCSimWCDigitizer.hh.

◆ DigiStore

WCSimWCDigitsCollection* WCSimWCDigitizerBase::DigiStore
protected

Definition at line 59 of file WCSimWCDigitizer.hh.

◆ DigiStoreHitMap

std::map<int,int> WCSimWCDigitizerBase::DigiStoreHitMap
protected

Used to check if a digit has already been created on a PMT.

Definition at line 60 of file WCSimWCDigitizer.hh.

◆ DigitizerClassName

G4String WCSimWCDigitizerBase::DigitizerClassName
protected

Name of the digitizer class being run.

Definition at line 63 of file WCSimWCDigitizer.hh.

◆ DigitizerDeadTime

int WCSimWCDigitizerBase::DigitizerDeadTime
protected

Digitizer deadtime (ns)

Definition at line 64 of file WCSimWCDigitizer.hh.

◆ DigitizerIntegrationWindow

int WCSimWCDigitizerBase::DigitizerIntegrationWindow
protected

Digitizer integration window (ns)

Definition at line 65 of file WCSimWCDigitizer.hh.

◆ DigitizerPEPrecision

double WCSimWCDigitizerBase::DigitizerPEPrecision
protected

Digitizer charge precision (p.e.)

Definition at line 67 of file WCSimWCDigitizer.hh.

◆ DigitizerTimingPrecision

double WCSimWCDigitizerBase::DigitizerTimingPrecision
protected

Digitizer time precision (ns)

Definition at line 66 of file WCSimWCDigitizer.hh.

◆ DigitizerType

DigitizerType_t WCSimWCDigitizerBase::DigitizerType
protected

Enumeration to say which digitizer we've constructed.

Definition at line 69 of file WCSimWCDigitizer.hh.

◆ myDetector

WCSimDetectorConstruction* WCSimWCDigitizerBase::myDetector
protected

Get the geometry information.

Definition at line 55 of file WCSimWCDigitizer.hh.


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