Belle II Software  release-05-01-25
TOPGeoEndPlate.cc
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2016 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Marko Staric *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #include <top/dbobjects/TOPGeoEndPlate.h>
12 #include <iostream>
13 
14 using namespace std;
15 
16 namespace Belle2 {
22  bool TOPGeoEndPlate::isConsistent() const
23  {
24  if (m_thickness <= 0) return false;
25  if (m_height <= 0) return false;
26  if (m_material.empty()) return false;
27  return true;
28  }
29 
30 
31  void TOPGeoEndPlate::print(const std::string& title) const
32  {
33  TOPGeoBase::print(title);
34 
35  cout << " thickness = " << getThickness() << " " << s_unitName;
36  cout << ", height = " << getHeight() << " " << s_unitName;
37  cout << ", material = " << getMaterial() << endl;
38 
39  }
40 
42 } // end Belle2 namespace
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19