Belle II Software development
TOPGeoEndPlate.cc
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#include <top/dbobjects/TOPGeoEndPlate.h>
10#include <iostream>
11
12using namespace std;
13
14namespace Belle2 {
21 {
22 if (m_thickness <= 0) return false;
23 if (m_height <= 0) return false;
24 if (m_material.empty()) return false;
25 return true;
26 }
27
28
29 void TOPGeoEndPlate::print(const std::string& title) const
30 {
31 TOPGeoBase::print(title);
32
33 cout << " thickness = " << getThickness() << " " << s_unitName;
34 cout << ", height = " << getHeight() << " " << s_unitName;
35 cout << ", material = " << getMaterial() << endl;
36
37 }
38
40} // end Belle2 namespace
double getHeight() const
Returns height.
std::string m_material
material name
double getThickness() const
Returns thickness.
float m_thickness
thickness
const std::string & getMaterial() const
Returns material name.
bool isConsistent() const override
Check for consistency of data members.
virtual void print(const std::string &title="QBB forward end plate geometry parameters") const override
Print the content of the class.
virtual void print(const std::string &title) const
Print the content of the class.
Definition: TOPGeoBase.cc:28
static std::string s_unitName
conversion unit name
Definition: TOPGeoBase.h:87
Abstract base class for different kinds of events.
STL namespace.