Belle II Software development
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
15namespace Belle2 {
20
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 {}
35
41
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
83
84 };
85
86} // end of namespace Belle2
87
float m_minimumElectrons
minimum number of electrons to be deposited by a particle to be saved
bool getOnlyActiveMaterial() const
Get whether only active materials will be placed for tracking studies.
bool getSeeNeutrons() const
Get whether sensitive detectors also see neutrons.
VXDGlobalPar()
Constructor.
float getMinimumElectrons() const
Get minimum number of electrons to be deposited by a particle to be saved.
ClassDef(VXDGlobalPar, 5)
ClassDef, must be the last term before the closing {}.
bool getActiveChips() const
Get whether chips are sensitive.
bool m_onlyActiveMaterial
If this is true, only active Materials will be placed for tracking studies.
double m_activeStepSize
Stepsize to be used inside active volumes.
float m_distanceTolerance
tolerance for Geant4 steps to be merged to a single step
bool m_onlyPrimaryTrueHits
If true only create TrueHits from primary particles and ignore secondaries.
std::string getDefaultMaterial() const
Get default material.
float m_electronTolerance
tolerance for the energy deposition in electrons to be merged in a single step
float getElectronTolerance() const
Get tolerance for the energy deposition in electrons to be merged in a single step.
bool getOnlyPrimaryTrueHits() const
Get if true only create TrueHits from primary particles and ignore secondaries.
VXDGlobalPar(float electronTolerance, float minimumElectrons, double activeStepSize, bool activeChips, bool seeNeutrons, bool onlyPrimaryTrueHits, bool onlyActiveMaterial, float distanceTolerance, const std::string &defaultMaterial)
Constructor.
double getActiveStepSize() const
Get stepsize to be used inside active volumes.
bool m_seeNeutrons
Make sensitive detectors also see neutrons.
std::string m_defaultMaterial
default material
bool m_activeChips
Make also chips sensitive.
float getDistanceTolerance() const
Get tolerance for Geant4 steps to be merged to a single step.
Abstract base class for different kinds of events.