Belle II Software  release-05-02-19
CDCSimControlPar.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2012 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: CDC group *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #ifndef CDCSIMCONTROLPAR_H
12 #define CDCSIMCONTROLPAR_H
13 
14 namespace Belle2 {
19  namespace CDC {
21 
23  class CDCSimControlPar {
24 
25  public:
26 
28  virtual ~CDCSimControlPar();
29 
31 
34  static CDCSimControlPar& getInstance();
35 
39  void setTimeWalk(bool onoff)
40  {
41  m_timeWalk = onoff;
42  }
43 
47  void setWireSag(bool onoff)
48  {
49  m_wireSag = onoff;
50  }
51 
55  void setModLeftRightFlag(bool onoff)
56  {
57  m_modLeftRightFlag = onoff;
58  }
59 
63  void setDebug(bool onoff)
64  {
65  m_debug = onoff;
66  }
67 
71  void setThresholdEnergyDeposit(double input)
72  {
74  }
75 
79  void setMinTrackLength(double input)
80  {
81  m_minTrackLength = input;
82  }
83 
87  bool getTimeWalk() const
88  {
89  return m_timeWalk;
90  }
91 
95  bool getWireSag() const
96  {
97  return m_wireSag;
98  }
99 
103  bool getModLeftRightFlag() const
104  {
105  return m_modLeftRightFlag;
106  }
107 
111  bool getDebug() const
112  {
113  return m_debug;
114  }
115 
120  {
122  }
123 
127  double getMinTrackLength() const
128  {
129  return m_minTrackLength;
130  }
131 
132  private:
139 
140  bool m_timeWalk = true;
141  bool m_wireSag = true;
142  bool m_modLeftRightFlag = false;
143  bool m_debug = false;
145  double m_thresholdEnergyDeposit = 0.;
146  double m_minTrackLength = 15.;
149  };
150 
151  } // end of namespace CDC
153 } // end of namespace Belle2
154 
155 #endif
Belle2::CDC::CDCSimControlPar::setDebug
void setDebug(bool onoff)
Set debug flag.
Definition: CDCSimControlPar.h:71
Belle2::CDC::CDCSimControlPar::m_thresholdEnergyDeposit
double m_thresholdEnergyDeposit
Energy thresh.
Definition: CDCSimControlPar.h:153
Belle2::CDC::CDCSimControlPar::setMinTrackLength
void setMinTrackLength(double input)
Set minimum track length.
Definition: CDCSimControlPar.h:87
Belle2::CDC::CDCSimControlPar::m_wireSag
bool m_wireSag
Switch for sense wire sag.
Definition: CDCSimControlPar.h:149
Belle2::CDC::CDCSimControlPar::m_minTrackLength
double m_minTrackLength
Minimum track length for G4 step (cm)
Definition: CDCSimControlPar.h:154
Belle2::CDC::CDCSimControlPar::m_pntr
static CDCSimControlPar * m_pntr
Pointer that saves the instance of this class.
Definition: CDCSimControlPar.h:156
Belle2::CDC::CDCSimControlPar::m_modLeftRightFlag
bool m_modLeftRightFlag
Switch for modified left/right flag.
Definition: CDCSimControlPar.h:150
Belle2::CDC::CDCSimControlPar::setModLeftRightFlag
void setModLeftRightFlag(bool onoff)
Set modified left/right flag.
Definition: CDCSimControlPar.h:63
Belle2::CDC::CDCSimControlPar::getInstance
static CDCSimControlPar & getInstance()
Static method to get a reference to the CDCSimControlPar instance.
Definition: CDCSimControlPar.cc:18
Belle2::CDC::CDCSimControlPar::operator=
CDCSimControlPar & operator=(const CDCSimControlPar &)
Singleton class.
Belle2::CDC::CDCSimControlPar::getMinTrackLength
double getMinTrackLength() const
Get minimum track length.
Definition: CDCSimControlPar.h:135
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::CDC::CDCSimControlPar
The Class for CDC Simulation Control Parameters.
Definition: CDCSimControlPar.h:31
Belle2::CDC::CDCSimControlPar::m_debug
bool m_debug
Switch for debug printing.
Definition: CDCSimControlPar.h:151
Belle2::CDC::CDCSimControlPar::getDebug
bool getDebug() const
Get debug flag.
Definition: CDCSimControlPar.h:119
Belle2::CDC::CDCSimControlPar::CDCSimControlPar
CDCSimControlPar()
Singleton class.
Definition: CDCSimControlPar.cc:24
Belle2::CDC::CDCSimControlPar::setThresholdEnergyDeposit
void setThresholdEnergyDeposit(double input)
Set threshold for Energy Deposit;.
Definition: CDCSimControlPar.h:79
Belle2::CDC::CDCSimControlPar::~CDCSimControlPar
virtual ~CDCSimControlPar()
Destructor.
Definition: CDCSimControlPar.cc:29
Belle2::CDC::CDCSimControlPar::m_timeWalk
bool m_timeWalk
Switch for time walk in translator.
Definition: CDCSimControlPar.h:148
Belle2::CDC::CDCSimControlPar::getModLeftRightFlag
bool getModLeftRightFlag() const
Get modified left/right flag.
Definition: CDCSimControlPar.h:111
Belle2::CDC::CDCSimControlPar::getThresholdEnergyDeposit
double getThresholdEnergyDeposit() const
Get threshold for Energy Deposit;.
Definition: CDCSimControlPar.h:127
Belle2::CDC::CDCSimControlPar::setWireSag
void setWireSag(bool onoff)
Set wiresag flag.
Definition: CDCSimControlPar.h:55
Belle2::CDC::CDCSimControlPar::setTimeWalk
void setTimeWalk(bool onoff)
Set time-walk flag.
Definition: CDCSimControlPar.h:47
Belle2::CDC::CDCSimControlPar::getWireSag
bool getWireSag() const
Get wiresag flag.
Definition: CDCSimControlPar.h:103
Belle2::CDC::CDCSimControlPar::getTimeWalk
bool getTimeWalk() const
Get time-walk flag.
Definition: CDCSimControlPar.h:95