Belle II Software  release-05-01-25
VXDGlobalPar.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Benjamin Schwenker *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #pragma once
11 
12 
13 #include <TObject.h>
14 #include <string>
15 
16 
17 namespace Belle2 {
26  class VXDGlobalPar: public TObject {
27 
28  public:
30  VXDGlobalPar(float electronTolerance, float minimumElectrons, double activeStepSize,
31  bool activeChips, bool seeNeutrons, bool onlyPrimaryTrueHits, bool onlyActiveMaterial,
32  float distanceTolerance, const std::string& defaultMaterial):
33  m_electronTolerance(electronTolerance), m_minimumElectrons(minimumElectrons), m_activeStepSize(activeStepSize),
34  m_activeChips(activeChips), m_seeNeutrons(seeNeutrons), m_onlyPrimaryTrueHits(onlyPrimaryTrueHits),
35  m_onlyActiveMaterial(onlyActiveMaterial), m_distanceTolerance(distanceTolerance), m_defaultMaterial(defaultMaterial)
36  {}
40  m_activeChips(false), m_seeNeutrons(false), m_onlyPrimaryTrueHits(false),
42  {}
44  float getElectronTolerance() const { return m_electronTolerance; }
46  float getMinimumElectrons() const { return m_minimumElectrons; }
48  double getActiveStepSize() const { return m_activeStepSize; }
50  bool getActiveChips() const { return m_activeChips; }
52  bool getSeeNeutrons() const { return m_seeNeutrons; }
57  bool getOnlyActiveMaterial() const { return m_onlyActiveMaterial; }
59  float getDistanceTolerance() const { return m_distanceTolerance; }
61  std::string getDefaultMaterial() const { return m_defaultMaterial; }
62 
63  private:
71  bool m_activeChips;
80  float m_distanceTolerance;
82  std::string m_defaultMaterial;
83 
86  };
88 } // end of namespace Belle2
89 
Belle2::VXDGlobalPar::getSeeNeutrons
bool getSeeNeutrons() const
Get whether sensitive detectors also see neutrons.
Definition: VXDGlobalPar.h:60
Belle2::VXDGlobalPar::m_seeNeutrons
bool m_seeNeutrons
Make sensitive detectors also see neutrons.
Definition: VXDGlobalPar.h:81
Belle2::VXDGlobalPar::m_activeStepSize
double m_activeStepSize
Stepsize to be used inside active volumes.
Definition: VXDGlobalPar.h:77
Belle2::VXDGlobalPar::m_onlyActiveMaterial
bool m_onlyActiveMaterial
If this is true, only active Materials will be placed for tracking studies.
Definition: VXDGlobalPar.h:86
Belle2::VXDGlobalPar::m_distanceTolerance
float m_distanceTolerance
tolerance for Geant4 steps to be merged to a single step
Definition: VXDGlobalPar.h:88
Belle2::VXDGlobalPar::getOnlyPrimaryTrueHits
bool getOnlyPrimaryTrueHits() const
Get if true only create TrueHits from primary particles and ignore secondaries.
Definition: VXDGlobalPar.h:62
Belle2::VXDGlobalPar::m_electronTolerance
float m_electronTolerance
tolerance for the energy deposition in electrons to be merged in a single step
Definition: VXDGlobalPar.h:73
Belle2::VXDGlobalPar::m_activeChips
bool m_activeChips
Make also chips sensitive.
Definition: VXDGlobalPar.h:79
Belle2::VXDGlobalPar::getActiveChips
bool getActiveChips() const
Get whether chips are sensitive
Definition: VXDGlobalPar.h:58
Belle2::VXDGlobalPar::m_minimumElectrons
float m_minimumElectrons
minimum number of electrons to be deposited by a particle to be saved
Definition: VXDGlobalPar.h:75
Belle2::VXDGlobalPar::m_onlyPrimaryTrueHits
bool m_onlyPrimaryTrueHits
If true only create TrueHits from primary particles and ignore secondaries.
Definition: VXDGlobalPar.h:83
Belle2::VXDGlobalPar::getActiveStepSize
double getActiveStepSize() const
Get stepsize to be used inside active volumes.
Definition: VXDGlobalPar.h:56
Belle2::VXDGlobalPar::VXDGlobalPar
VXDGlobalPar()
Constructor.
Definition: VXDGlobalPar.h:46
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::VXDGlobalPar::getDefaultMaterial
std::string getDefaultMaterial() const
Get default material.
Definition: VXDGlobalPar.h:69
Belle2::VXDGlobalPar::VXDGlobalPar
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:38
Belle2::VXDGlobalPar
The Class for VXD global paramter payload.
Definition: VXDGlobalPar.h:34
Belle2::VXDGlobalPar::getMinimumElectrons
float getMinimumElectrons() const
Get minimum number of electrons to be deposited by a particle to be saved.
Definition: VXDGlobalPar.h:54
Belle2::VXDGlobalPar::getOnlyActiveMaterial
bool getOnlyActiveMaterial() const
Get whether only active materials will be placed for tracking studies.
Definition: VXDGlobalPar.h:65
Belle2::VXDGlobalPar::getElectronTolerance
float getElectronTolerance() const
Get tolerance for the energy deposition in electrons to be merged in a single step.
Definition: VXDGlobalPar.h:52
Belle2::VXDGlobalPar::m_defaultMaterial
std::string m_defaultMaterial
default material
Definition: VXDGlobalPar.h:90
Belle2::VXDGlobalPar::getDistanceTolerance
float getDistanceTolerance() const
Get tolerance for Geant4 steps to be merged to a single step.
Definition: VXDGlobalPar.h:67
Belle2::VXDGlobalPar::ClassDef
ClassDef(VXDGlobalPar, 5)
ClassDef, must be the last term before the closing {}.