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