Belle II Software  release-08-01-10
VXDGlobalPar.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 #pragma once
9 
10 
11 #include <TObject.h>
12 #include <string>
13 
14 
15 namespace Belle2 {
24  class VXDGlobalPar: public TObject {
25 
26  public:
28  VXDGlobalPar(float electronTolerance, float minimumElectrons, double activeStepSize,
29  bool activeChips, bool seeNeutrons, bool onlyPrimaryTrueHits, bool onlyActiveMaterial,
30  float distanceTolerance, const std::string& defaultMaterial):
31  m_electronTolerance(electronTolerance), m_minimumElectrons(minimumElectrons), m_activeStepSize(activeStepSize),
32  m_activeChips(activeChips), m_seeNeutrons(seeNeutrons), m_onlyPrimaryTrueHits(onlyPrimaryTrueHits),
33  m_onlyActiveMaterial(onlyActiveMaterial), m_distanceTolerance(distanceTolerance), m_defaultMaterial(defaultMaterial)
34  {}
38  m_activeChips(false), m_seeNeutrons(false), m_onlyPrimaryTrueHits(false),
40  {}
42  float getElectronTolerance() const { return m_electronTolerance; }
44  float getMinimumElectrons() const { return m_minimumElectrons; }
46  double getActiveStepSize() const { return m_activeStepSize; }
48  bool getActiveChips() const { return m_activeChips; }
50  bool getSeeNeutrons() const { return m_seeNeutrons; }
57  float getDistanceTolerance() const { return m_distanceTolerance; }
59  std::string getDefaultMaterial() const { return m_defaultMaterial; }
60 
61  private:
80  std::string m_defaultMaterial;
81 
84  };
86 } // end of namespace Belle2
87 
The Class for VXD global paramter payload.
Definition: VXDGlobalPar.h:24
float m_minimumElectrons
minimum number of electrons to be deposited by a particle to be saved
Definition: VXDGlobalPar.h:65
bool getOnlyActiveMaterial() const
Get whether only active materials will be placed for tracking studies.
Definition: VXDGlobalPar.h:55
bool getSeeNeutrons() const
Get whether sensitive detectors also see neutrons.
Definition: VXDGlobalPar.h:50
VXDGlobalPar()
Constructor.
Definition: VXDGlobalPar.h:36
float getMinimumElectrons() const
Get minimum number of electrons to be deposited by a particle to be saved.
Definition: VXDGlobalPar.h:44
ClassDef(VXDGlobalPar, 5)
ClassDef, must be the last term before the closing {}.
bool getActiveChips() const
Get whether chips are sensitive
Definition: VXDGlobalPar.h:48
bool m_onlyActiveMaterial
If this is true, only active Materials will be placed for tracking studies.
Definition: VXDGlobalPar.h:76
double m_activeStepSize
Stepsize to be used inside active volumes.
Definition: VXDGlobalPar.h:67
float m_distanceTolerance
tolerance for Geant4 steps to be merged to a single step
Definition: VXDGlobalPar.h:78
bool m_onlyPrimaryTrueHits
If true only create TrueHits from primary particles and ignore secondaries.
Definition: VXDGlobalPar.h:73
std::string getDefaultMaterial() const
Get default material.
Definition: VXDGlobalPar.h:59
float m_electronTolerance
tolerance for the energy deposition in electrons to be merged in a single step
Definition: VXDGlobalPar.h:63
float getElectronTolerance() const
Get tolerance for the energy deposition in electrons to be merged in a single step.
Definition: VXDGlobalPar.h:42
bool getOnlyPrimaryTrueHits() const
Get if true only create TrueHits from primary particles and ignore secondaries.
Definition: VXDGlobalPar.h:52
VXDGlobalPar(float electronTolerance, float minimumElectrons, double activeStepSize, bool activeChips, bool seeNeutrons, bool onlyPrimaryTrueHits, bool onlyActiveMaterial, float distanceTolerance, const std::string &defaultMaterial)
Constructor.
Definition: VXDGlobalPar.h:28
double getActiveStepSize() const
Get stepsize to be used inside active volumes.
Definition: VXDGlobalPar.h:46
bool m_seeNeutrons
Make sensitive detectors also see neutrons.
Definition: VXDGlobalPar.h:71
std::string m_defaultMaterial
default material
Definition: VXDGlobalPar.h:80
bool m_activeChips
Make also chips sensitive.
Definition: VXDGlobalPar.h:69
float getDistanceTolerance() const
Get tolerance for Geant4 steps to be merged to a single step.
Definition: VXDGlobalPar.h:57
Abstract base class for different kinds of events.