Belle II Software  release-05-01-25
TOPGeoSideRails.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/TOPGeoSideRails.h>
12 #include <iostream>
13 
14 using namespace std;
15 
16 namespace Belle2 {
22  bool TOPGeoSideRails::isConsistent() const
23  {
24  if (m_thickness <= 0) return false;
25  if (m_reducedThickness <= 0) return false;
26  if (m_height <= 0) return false;
27  if (m_material.empty()) return false;
28  return true;
29  }
30 
31 
32  void TOPGeoSideRails::print(const std::string& title) const
33  {
34  TOPGeoBase::print(title);
35 
36  cout << " thickness = " << getThickness() << " " << s_unitName;
37  cout << ", reduced thickness = " << getReducedThickness() << " " << s_unitName;
38  cout << ", height = " << getHeight() << " " << s_unitName;
39  cout << ", material = " << getMaterial() << endl;
40 
41  }
42 
44 } // end Belle2 namespace
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19