Belle II Software  release-05-01-25
TOPGeoEndPlate.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2016 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Marko Staric *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <top/dbobjects/TOPGeoBase.h>
14 #include <string>
15 
16 namespace Belle2 {
25  class TOPGeoEndPlate: public TOPGeoBase {
26  public:
27 
32  {}
33 
41  TOPGeoEndPlate(double thickness, double height,
42  const std::string& material,
43  const std::string& name = "TOPEndPlate"): TOPGeoBase(name),
44  m_thickness(thickness), m_height(height), m_material(material)
45  {}
46 
51  double getThickness() const {return m_thickness / s_unit;}
52 
57  double getHeight() const {return m_height / s_unit;}
58 
63  const std::string& getMaterial() const {return m_material;}
64 
69  bool isConsistent() const override;
70 
75  virtual void print(const std::string& title = "QBB forward end plate geometry parameters") const override;
76 
77  private:
78 
79  float m_thickness = 0;
80  float m_height = 0;
81  std::string m_material;
85  };
86 
88 } // namespace Belle2
Belle2::TOPGeoEndPlate::m_thickness
float m_thickness
thickness
Definition: TOPGeoEndPlate.h:87
Belle2::TOPGeoEndPlate::print
virtual void print(const std::string &title="QBB forward end plate geometry parameters") const override
Print the content of the class.
Definition: TOPGeoEndPlate.cc:31
Belle2::TOPGeoEndPlate::m_material
std::string m_material
material name
Definition: TOPGeoEndPlate.h:89
Belle2::TOPGeoBase
Base class for geometry parameters.
Definition: TOPGeoBase.h:35
Belle2::TOPGeoEndPlate::m_height
float m_height
height
Definition: TOPGeoEndPlate.h:88
Belle2::TOPGeoEndPlate::getHeight
double getHeight() const
Returns height.
Definition: TOPGeoEndPlate.h:65
Belle2::TOPGeoEndPlate::getMaterial
const std::string & getMaterial() const
Returns material name.
Definition: TOPGeoEndPlate.h:71
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TOPGeoBase::s_unit
static double s_unit
conversion unit for length
Definition: TOPGeoBase.h:96
Belle2::TOPGeoEndPlate::isConsistent
bool isConsistent() const override
Check for consistency of data members.
Definition: TOPGeoEndPlate.cc:22
Belle2::TOPGeoEndPlate::TOPGeoEndPlate
TOPGeoEndPlate()
Default constructor.
Definition: TOPGeoEndPlate.h:39
Belle2::TOPGeoEndPlate::getThickness
double getThickness() const
Returns thickness.
Definition: TOPGeoEndPlate.h:59
Belle2::TOPGeoEndPlate::ClassDefOverride
ClassDefOverride(TOPGeoEndPlate, 1)
ClassDef.