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