Belle II Software  release-08-01-10
CDCSimControlPar.h
1 /**************************************************************************
2  * basf2 (Belle II Analysis Software Framework) *
3  * Author: The Belle II Collaboration *
4  * *
5  * See git log for contributors and copyright holders. *
6  * This file is licensed under LGPL-3.0, see LICENSE.md. *
7  **************************************************************************/
8 
9 #pragma once
10 
11 namespace Belle2 {
16  namespace CDC {
18 
21 
22  public:
23 
25  virtual ~CDCSimControlPar();
26 
28 
31  static CDCSimControlPar& getInstance();
32 
36  void setTimeWalk(bool onoff)
37  {
38  m_timeWalk = onoff;
39  }
40 
44  void setWireSag(bool onoff)
45  {
46  m_wireSag = onoff;
47  }
48 
52  void setModLeftRightFlag(bool onoff)
53  {
54  m_modLeftRightFlag = onoff;
55  }
56 
60  void setDebug(bool onoff)
61  {
62  m_debug = onoff;
63  }
64 
68  void setThresholdEnergyDeposit(double input)
69  {
71  }
72 
76  void setMinTrackLength(double input)
77  {
78  m_minTrackLength = input;
79  }
80 
84  bool getTimeWalk() const
85  {
86  return m_timeWalk;
87  }
88 
92  bool getWireSag() const
93  {
94  return m_wireSag;
95  }
96 
100  bool getModLeftRightFlag() const
101  {
102  return m_modLeftRightFlag;
103  }
104 
108  bool getDebug() const
109  {
110  return m_debug;
111  }
112 
117  {
119  }
120 
124  double getMinTrackLength() const
125  {
126  return m_minTrackLength;
127  }
128 
129  private:
136 
137  bool m_timeWalk = true;
138  bool m_wireSag = true;
139  bool m_modLeftRightFlag = false;
140  bool m_debug = false;
143  double m_minTrackLength = 15.;
146  };
147 
148  } // end of namespace CDC
150 } // end of namespace Belle2
The Class for CDC Simulation Control Parameters.
bool getDebug() const
Get debug flag.
bool m_timeWalk
Switch for time walk in translator.
bool getModLeftRightFlag() const
Get modified left/right flag.
void setWireSag(bool onoff)
Set wiresag flag.
bool m_wireSag
Switch for sense wire sag.
void setDebug(bool onoff)
Set debug flag.
static CDCSimControlPar * m_pntr
Pointer that saves the instance of this class.
double m_minTrackLength
Minimum track length for G4 step (cm)
double getMinTrackLength() const
Get minimum track length.
CDCSimControlPar(const CDCSimControlPar &)
Singleton class.
virtual ~CDCSimControlPar()
Destructor.
void setMinTrackLength(double input)
Set minimum track length.
double getThresholdEnergyDeposit() const
Get threshold for Energy Deposit;.
static CDCSimControlPar & getInstance()
Static method to get a reference to the CDCSimControlPar instance.
bool m_debug
Switch for debug printing.
bool getWireSag() const
Get wiresag flag.
void setThresholdEnergyDeposit(double input)
Set threshold for Energy Deposit;.
CDCSimControlPar()
Singleton class.
double m_thresholdEnergyDeposit
Energy thresh.
void setTimeWalk(bool onoff)
Set time-walk flag.
void setModLeftRightFlag(bool onoff)
Set modified left/right flag.
bool getTimeWalk() const
Get time-walk flag.
bool m_modLeftRightFlag
Switch for modified left/right flag.
CDCSimControlPar & operator=(const CDCSimControlPar &)
Singleton class.
Abstract base class for different kinds of events.