Belle II Software  release-08-01-10
ARICHGeoFEBCooling.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 //basf2
10 #include <arich/dbobjects/ARICHGeoFEBCooling.h>
11 #include <arich/dbobjects/tessellatedSolidStr.h>
12 #include <framework/gearbox/Unit.h>
13 #include <framework/logging/Logger.h>
14 #include <math.h>
15 #include <iostream>
16 #include <iomanip>
17 
18 //root
19 #include <TVector3.h>
20 
21 using namespace std;
22 using namespace Belle2;
23 
24 void ARICHGeoFEBCooling::print(const std::string& title) const
25 {
26 
27  ARICHGeoBase::print(title);
28 
29  cout << " Size of the small square in mm : " << getSmallSquareSize() << endl
30  << " Thickness of the small square in mm : " << getSmallSquareThickness() << endl
31  << " Size of the big square in mm : " << getBigSquareSize() << endl
32  << " Thickness of the big square in mm : " << getBigSquareThickness() << endl;
33  cout << " Length of the rectangle in mm : " << getRectangleL() << endl
34  << " Width of the rectangle in mm : " << getRectangleW() << endl
35  << " Thickness of the rectangle in mm : " << getRectangleThickness() << endl
36  << " Distance from center of the rectangle in mm : " << getRectangleDistanceFromCenter() << endl;
37 
38  cout << setw(20) << "hapdID"
39  << setw(25) << "FEB cooling GeometryID" << endl;
40  for (unsigned i = 0; i < getFebcoolingv2GeometryID().size(); i++) {
41  cout << setw(20) << i + 1
42  << setw(25) << getFebcoolingv2GeometryID().at(i) << endl;
43  }
44 }
45 
46 void ARICHGeoFEBCooling::checkCoolingSystemV2DataConsistency() const
47 {
48  B2ASSERT("Data of the cooling system V2 is inconsistent : getFebcoolingv2GeometryID().size() != 420",
49  getFebcoolingv2GeometryID().size() == 420);
50 }
Abstract base class for different kinds of events.