Belle II Software  release-08-01-10
ARICHGeoSupport.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 <arich/dbobjects/ARICHGeoSupport.h>
10 #include <iostream>
11 #include <iomanip>
12 
13 using namespace std;
14 using namespace Belle2;
15 
16 
17 bool ARICHGeoSupport::isConsistent() const
18 {
19  return true;
20 }
21 
22 
23 void ARICHGeoSupport::print(const std::string& title) const
24 {
25  ARICHGeoBase::print(title);
26 
27  cout << " Default material: " << getMaterial() << endl;
28  cout << " Placed tubes" << endl;
29 
30  unsigned nTube = getNTubes();
31  for (unsigned i = 0; i < nTube; i++) {
32  cout << " " << getTubeName(i) << ", inner R: " << getTubeInnerR(i) << " " << s_unitName << ", outer R: " << getTubeOuterR(
33  i) << " " << s_unitName << ", length: " << getTubeLength(i) << " " << s_unitName << ", Z position: " << getTubeZPosition(
34  i) << " " << s_unitName << ", material: " << getTubeMaterial(i) << endl; ;
35  }
36 
37  cout << " Parameters of wedges" << endl;
38 
39  for (unsigned i = 1; i < m_nWedgeType + 1; i++) {
40  cout << " type: " << i << " par. vector: ";
41  for (auto par : getWedge(i)) cout << par << " " << s_unitName << " ";
42  cout << endl;
43  }
44 
45  cout << " Placed wedges" << endl;
46  unsigned nWedge = getNWedges();
47  for (unsigned i = 0; i < nWedge; i++) {
48  cout << " ID: " << setprecision(4) << setw(2) << i << ", type: " << getWedgeType(i) << ", radius: " << getWedgeR(
49  i) << " " << s_unitName << ", phi: " << setw(6) << getWedgePhi(i) << ", Z position: " << getWedgeZ(
50  i) << " " << s_unitName << ", material: " << getWedgeMaterial(i) << endl;
51  }
52 }
Abstract base class for different kinds of events.