Belle II Software  release-08-01-10
TOPGeoColdPlate.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/TOPGeoColdPlate.h>
10 #include <iostream>
11 
12 using namespace std;
13 
14 namespace Belle2 {
20  bool TOPGeoColdPlate::isConsistent() const
21  {
22  if (m_baseThickness <= 0) return false;
23  if (m_baseMaterial.empty()) return false;
24  if (m_coolThickness <= 0) return false;
25  if (m_coolWidth <= 0) return false;
26  if (m_coolMaterial.empty()) return false;
27  return true;
28  }
29 
30 
31  void TOPGeoColdPlate::print(const std::string& title) const
32  {
33  TOPGeoBase::print(title);
34 
35  cout << " base plate: thickness = " << getBaseThickness() << " " << s_unitName;
36  cout << ", material = " << getBaseMaterial() << endl;
37 
38  cout << " cooling plate: thickness = " << getCoolThickness() << " " << s_unitName;
39  cout << ", width = " << getCoolWidth() << " " << s_unitName;
40  cout << ", material = " << getCoolMaterial() << endl;
41 
42  }
43 
45 } // end Belle2 namespace
Abstract base class for different kinds of events.