Belle II Software  release-08-01-10
CDCSimControlPar Class Reference

The Class for CDC Simulation Control Parameters. More...

#include <CDCSimControlPar.h>

Collaboration diagram for CDCSimControlPar:

Public Member Functions

virtual ~CDCSimControlPar ()
 Destructor.
 
void setTimeWalk (bool onoff)
 Set time-walk flag.
 
void setWireSag (bool onoff)
 Set wiresag flag.
 
void setModLeftRightFlag (bool onoff)
 Set modified left/right flag.
 
void setDebug (bool onoff)
 Set debug flag.
 
void setThresholdEnergyDeposit (double input)
 Set threshold for Energy Deposit;.
 
void setMinTrackLength (double input)
 Set minimum track length.
 
bool getTimeWalk () const
 Get time-walk flag.
 
bool getWireSag () const
 Get wiresag flag.
 
bool getModLeftRightFlag () const
 Get modified left/right flag.
 
bool getDebug () const
 Get debug flag.
 
double getThresholdEnergyDeposit () const
 Get threshold for Energy Deposit;.
 
double getMinTrackLength () const
 Get minimum track length.
 

Static Public Member Functions

static CDCSimControlPargetInstance ()
 Static method to get a reference to the CDCSimControlPar instance. More...
 

Private Member Functions

 CDCSimControlPar ()
 Singleton class.
 
 CDCSimControlPar (const CDCSimControlPar &)
 Singleton class.
 
CDCSimControlParoperator= (const CDCSimControlPar &)
 Singleton class.
 

Private Attributes

bool m_timeWalk = true
 Switch for time walk in translator.
 
bool m_wireSag = true
 Switch for sense wire sag.
 
bool m_modLeftRightFlag = false
 Switch for modified left/right flag.
 
bool m_debug = false
 Switch for debug printing.
 
double m_thresholdEnergyDeposit = 0.
 Energy thresh. More...
 
double m_minTrackLength = 15.
 Minimum track length for G4 step (cm)
 

Static Private Attributes

static CDCSimControlParm_pntr = 0
 Pointer that saves the instance of this class.
 

Detailed Description

The Class for CDC Simulation Control Parameters.

This class provides control paramters for CDC simulation.

Definition at line 20 of file CDCSimControlPar.h.

Member Function Documentation

◆ getInstance()

CDCSimControlPar & getInstance ( )
static

Static method to get a reference to the CDCSimControlPar instance.

Returns
A reference to an instance of this class.

Definition at line 16 of file CDCSimControlPar.cc.

17 {
18  if (!m_pntr) m_pntr = new CDCSimControlPar();
19  return *m_pntr;
20 }
static CDCSimControlPar * m_pntr
Pointer that saves the instance of this class.
CDCSimControlPar()
Singleton class.

Member Data Documentation

◆ m_thresholdEnergyDeposit

double m_thresholdEnergyDeposit = 0.
private

Energy thresh.

for G4 step (GeV)

Definition at line 142 of file CDCSimControlPar.h.


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