Belle II Software development
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
12using namespace std;
13
14namespace Belle2 {
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
const std::string & getCoolMaterial() const
Returns cooling plate material name.
std::string m_baseMaterial
base plate material name
double getCoolWidth() const
Returns cooling plate width.
const std::string & getBaseMaterial() const
Returns base plate material name.
float m_coolThickness
cooling plate thickness
std::string m_coolMaterial
cooling plate material name
float m_coolWidth
cooling plate width
double getCoolThickness() const
Returns cooling plate thickness.
float m_baseThickness
base plate thickness
double getBaseThickness() const
Returns base plate thickness.
bool isConsistent() const override
Check for consistency of data members.
virtual void print(const std::string &title) const
Print the content of the class.
Definition: TOPGeoBase.cc:28
static std::string s_unitName
conversion unit name
Definition: TOPGeoBase.h:87
virtual void print(const std::string &title="QBB cold plate geometry parameters") const override
Print the content of the class.
Abstract base class for different kinds of events.
STL namespace.