Belle II Software  release-08-01-10
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 
12 using namespace std;
13 
14 namespace Belle2 {
20  bool TOPGeoSideRails::isConsistent() const
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
Abstract base class for different kinds of events.