Belle II Software development
TOPGeoSideRails.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/TOPGeoSideRails.h>
10#include <iostream>
11
12using namespace std;
13
14namespace Belle2 {
21 {
22 if (m_thickness <= 0) return false;
23 if (m_reducedThickness <= 0) return false;
24 if (m_height <= 0) return false;
25 if (m_material.empty()) return false;
26 return true;
27 }
28
29
30 void TOPGeoSideRails::print(const std::string& title) const
31 {
32 TOPGeoBase::print(title);
33
34 cout << " thickness = " << getThickness() << " " << s_unitName;
35 cout << ", reduced thickness = " << getReducedThickness() << " " << s_unitName;
36 cout << ", height = " << getHeight() << " " << s_unitName;
37 cout << ", material = " << getMaterial() << endl;
38
39 }
40
42} // end Belle2 namespace
double getHeight() const
Returns height.
std::string m_material
material name
float m_reducedThickness
thickness at prism enclosure
double getThickness() const
Returns thickness.
float m_thickness
thickness
const std::string & getMaterial() const
Returns material name.
double getReducedThickness() const
Returns thickness at prism enclosure.
bool isConsistent() const override
Check for consistency of data members.
virtual void print(const std::string &title="QBB side rails 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.