Belle II Software development
TOPGeoFrontEnd.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/TOPGeoFrontEnd.h>
10#include <iostream>
11
12using namespace std;
13
14namespace Belle2 {
21 {
22 if (m_FBWidth <= 0) return false;
23 if (m_FBHeight <= 0) return false;
24 if (m_FBThickness <= 0) return false;
25 if (m_FBGap < 0) return false;
26 if (m_FBMaterial.empty()) return false;
27
28 if (m_HVWidth <= 0) return false;
29 if (m_HVLength <= 0) return false;
30 if (m_HVThickness <= 0) return false;
31 if (m_HVGap < 0) return false;
32 if (m_HVMaterial.empty()) return false;
33
34 if (m_BSWidth <= 0) return false;
35 if (m_BSHeight <= 0) return false;
36 if (m_BSLength <= 0) return false;
37 if (m_BSGap < 0) return false;
38 if (m_BSMaterial.empty()) return false;
39 if (m_spacerWidth <= 0) return false;
40 if (m_spacerMaterial.empty()) return false;
41
42 return true;
43 }
44
45
46 void TOPGeoFrontEnd::print(const std::string& title) const
47 {
49
50 cout << " Front board: " << getFrontBoardWidth() << " X " <<
52 cout << ", gap = " << getFrontBoardGap() << " " << s_unitName;
53 cout << ", y = " << getFrontBoardY() << " " << s_unitName;
54 cout << ", material = " << getFrontBoardMaterial() << endl;
55
56 cout << " HV board: " << getHVBoardWidth() << " X " <<
57 getHVBoardLength() << " X " << getHVBoardThickness() << " " << s_unitName;
58 cout << ", gap = " << getHVBoardGap() << " " << s_unitName;
59 cout << ", y = " << getHVBoardY() << " " << s_unitName;
60 cout << ", material = " << getHVBoardMaterial() << endl;
61
62 cout << " Board stack: " << getBoardStackWidth() << " X " <<
63 getBoardStackHeight() << " X " << getBoardStackLength() << " " << s_unitName;
64 cout << ", gap = " << getBoardStackGap() << " " << s_unitName;
65 cout << ", y = " << getBoardStackY() << " " << s_unitName;
66 cout << ", material = " << getBoardStackMaterial() << endl;
67
68 cout << " spacers: width = " << getSpacerWidth() << " " << s_unitName;
69 cout << ", material = " << getSpacerMaterial() << endl;
70
71 }
72
74} // end Belle2 namespace
float m_HVGap
gap between HV board and front board
double getHVBoardGap() const
Returns gap between HV board and front board.
float m_FBGap
gap between front board and PMT array
float m_HVWidth
HV board width.
float m_BSHeight
board stack height
float m_HVLength
HV board length.
std::string m_BSMaterial
board stack material
const std::string & getHVBoardMaterial() const
Returns HV board material.
double getFrontBoardGap() const
Returns gap between front board and PMT array.
double getHVBoardThickness() const
Returns HV board thickness.
double getFrontBoardThickness() const
Returns front board thickness.
double getHVBoardLength() const
Returns HV board length.
const std::string & getBoardStackMaterial() const
Returns board stack material.
double getBoardStackLength() const
Returns board stack length.
float m_BSWidth
board stack width
float m_BSLength
board stack length
double getBoardStackY() const
Returns position of board stack center in bar frame.
double getBoardStackWidth() const
Returns board stack width.
double getFrontBoardWidth() const
Returns front board width.
const std::string & getFrontBoardMaterial() const
Returns front board material.
double getBoardStackHeight() const
Returns board stack height.
float m_spacerWidth
board stack spacer width
float m_FBThickness
front board thickness
std::string m_FBMaterial
front board material
double getBoardStackGap() const
Returns gap between board stack and front board.
std::string m_HVMaterial
HV board material.
float m_FBHeight
front board height
double getHVBoardY() const
Returns position of HV board center in bar frame.
double getHVBoardWidth() const
Returns HV board width.
double getFrontBoardY() const
Returns position of front board center in bar frame.
float m_BSGap
gap between board stack and front board
double getFrontBoardHeight() const
Returns front board height.
const std::string & getSpacerMaterial() const
Returns board stack spacer material.
std::string m_spacerMaterial
board stack spacer material
double getSpacerWidth() const
Returns board stack spacer width.
float m_HVThickness
HV board thickness.
float m_FBWidth
front board width
bool isConsistent() const override
Check for consistency of data members.
void printUnderlined(const std::string &title) const
Print the content of the class.
Definition: TOPGeoBase.cc:35
static std::string s_unitName
conversion unit name
Definition: TOPGeoBase.h:87
virtual void print(const std::string &title="Front-end geometry parameters") const override
Print the content of the class.
Abstract base class for different kinds of events.
STL namespace.