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