Belle II Software development
TOPGeoEndPlate.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#include <top/dbobjects/TOPGeoBase.h>
12#include <string>
13
14namespace Belle2 {
23 class TOPGeoEndPlate: public TOPGeoBase {
24 public:
25
30 {}
31
39 TOPGeoEndPlate(double thickness, double height,
40 const std::string& material,
41 const std::string& name = "TOPEndPlate"): TOPGeoBase(name),
42 m_thickness(thickness), m_height(height), m_material(material)
43 {}
44
49 double getThickness() const {return m_thickness / s_unit;}
50
55 double getHeight() const {return m_height / s_unit;}
56
61 const std::string& getMaterial() const {return m_material;}
62
67 bool isConsistent() const override;
68
73 virtual void print(const std::string& title = "QBB forward end plate geometry parameters") const override;
74
75 private:
76
77 float m_thickness = 0;
78 float m_height = 0;
79 std::string m_material;
83 };
84
86} // namespace Belle2
Base class for geometry parameters.
Definition: TOPGeoBase.h:25
Geometry parameters of forward end plate (simplified)
TOPGeoEndPlate(double thickness, double height, const std::string &material, const std::string &name="TOPEndPlate")
Full constructor.
double getHeight() const
Returns height.
std::string m_material
material name
double getThickness() const
Returns thickness.
float m_thickness
thickness
ClassDefOverride(TOPGeoEndPlate, 1)
ClassDef.
const std::string & getMaterial() const
Returns material name.
TOPGeoEndPlate()
Default constructor.
bool isConsistent() const override
Check for consistency of data members.
static double s_unit
conversion unit for length
Definition: TOPGeoBase.h:86
virtual void print(const std::string &title="QBB forward end plate geometry parameters") const override
Print the content of the class.
Abstract base class for different kinds of events.