Belle II Software development
CDCSimControlPar Class Reference

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

#include <CDCSimControlPar.h>

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.
 

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.
 
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.

Constructor & Destructor Documentation

◆ ~CDCSimControlPar()

~CDCSimControlPar ( )
virtual

Destructor.

Definition at line 27 of file CDCSimControlPar.cc.

28{
29}

◆ CDCSimControlPar()

CDCSimControlPar ( )
private

Singleton class.

Definition at line 22 of file CDCSimControlPar.cc.

23{
24 // m_wireSag = false;
25}

Member Function Documentation

◆ getDebug()

bool getDebug ( ) const
inline

Get debug flag.

Definition at line 108 of file CDCSimControlPar.h.

109 {
110 return m_debug;
111 }
bool m_debug
Switch for debug printing.

◆ 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.

◆ getMinTrackLength()

double getMinTrackLength ( ) const
inline

Get minimum track length.

Definition at line 124 of file CDCSimControlPar.h.

125 {
126 return m_minTrackLength;
127 }
double m_minTrackLength
Minimum track length for G4 step (cm)

◆ getModLeftRightFlag()

bool getModLeftRightFlag ( ) const
inline

Get modified left/right flag.

Definition at line 100 of file CDCSimControlPar.h.

101 {
102 return m_modLeftRightFlag;
103 }
bool m_modLeftRightFlag
Switch for modified left/right flag.

◆ getThresholdEnergyDeposit()

double getThresholdEnergyDeposit ( ) const
inline

Get threshold for Energy Deposit;.

Definition at line 116 of file CDCSimControlPar.h.

117 {
119 }
double m_thresholdEnergyDeposit
Energy thresh.

◆ getTimeWalk()

bool getTimeWalk ( ) const
inline

Get time-walk flag.

Definition at line 84 of file CDCSimControlPar.h.

85 {
86 return m_timeWalk;
87 }
bool m_timeWalk
Switch for time walk in translator.

◆ getWireSag()

bool getWireSag ( ) const
inline

Get wiresag flag.

Definition at line 92 of file CDCSimControlPar.h.

93 {
94 return m_wireSag;
95 }
bool m_wireSag
Switch for sense wire sag.

◆ setDebug()

void setDebug ( bool  onoff)
inline

Set debug flag.

Definition at line 60 of file CDCSimControlPar.h.

61 {
62 m_debug = onoff;
63 }

◆ setMinTrackLength()

void setMinTrackLength ( double  input)
inline

Set minimum track length.

Definition at line 76 of file CDCSimControlPar.h.

77 {
78 m_minTrackLength = input;
79 }

◆ setModLeftRightFlag()

void setModLeftRightFlag ( bool  onoff)
inline

Set modified left/right flag.

Definition at line 52 of file CDCSimControlPar.h.

53 {
54 m_modLeftRightFlag = onoff;
55 }

◆ setThresholdEnergyDeposit()

void setThresholdEnergyDeposit ( double  input)
inline

Set threshold for Energy Deposit;.

Definition at line 68 of file CDCSimControlPar.h.

69 {
71 }

◆ setTimeWalk()

void setTimeWalk ( bool  onoff)
inline

Set time-walk flag.

Definition at line 36 of file CDCSimControlPar.h.

37 {
38 m_timeWalk = onoff;
39 }

◆ setWireSag()

void setWireSag ( bool  onoff)
inline

Set wiresag flag.

Definition at line 44 of file CDCSimControlPar.h.

45 {
46 m_wireSag = onoff;
47 }

Member Data Documentation

◆ m_debug

bool m_debug = false
private

Switch for debug printing.

Definition at line 140 of file CDCSimControlPar.h.

◆ m_minTrackLength

double m_minTrackLength = 15.
private

Minimum track length for G4 step (cm)

Definition at line 143 of file CDCSimControlPar.h.

◆ m_modLeftRightFlag

bool m_modLeftRightFlag = false
private

Switch for modified left/right flag.

Definition at line 139 of file CDCSimControlPar.h.

◆ m_pntr

CDCSimControlPar * m_pntr = 0
staticprivate

Pointer that saves the instance of this class.

Definition at line 145 of file CDCSimControlPar.h.

◆ m_thresholdEnergyDeposit

double m_thresholdEnergyDeposit = 0.
private

Energy thresh.

for G4 step (GeV)

Definition at line 142 of file CDCSimControlPar.h.

◆ m_timeWalk

bool m_timeWalk = true
private

Switch for time walk in translator.

Definition at line 137 of file CDCSimControlPar.h.

◆ m_wireSag

bool m_wireSag = true
private

Switch for sense wire sag.

Definition at line 138 of file CDCSimControlPar.h.


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