Belle II Software  release-05-01-25
ARICHGeoFEBCooling.cc
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2019 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Leonid Burmistrov *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 //basf2
12 #include <arich/dbobjects/ARICHGeoFEBCooling.h>
13 #include <arich/dbobjects/tessellatedSolidStr.h>
14 #include <framework/gearbox/Unit.h>
15 #include <framework/logging/Logger.h>
16 #include <math.h>
17 #include <iostream>
18 #include <iomanip>
19 
20 //root
21 #include <TVector3.h>
22 
23 using namespace std;
24 using namespace Belle2;
25 
26 void ARICHGeoFEBCooling::print(const std::string& title) const
27 {
28 
29  ARICHGeoBase::print(title);
30 
31  cout << " Size of the small square in mm : " << getSmallSquareSize() << endl
32  << " Thickness of the small square in mm : " << getSmallSquareThickness() << endl
33  << " Size of the big square in mm : " << getBigSquareSize() << endl
34  << " Thickness of the big square in mm : " << getBigSquareThickness() << endl;
35  cout << " Length of the rectangle in mm : " << getRectangleL() << endl
36  << " Width of the rectangle in mm : " << getRectangleW() << endl
37  << " Thickness of the rectangle in mm : " << getRectangleThickness() << endl
38  << " Distance from center of the rectangle in mm : " << getRectangleDistanceFromCenter() << endl;
39 
40  cout << setw(20) << "hapdID"
41  << setw(25) << "FEB cooling GeometryID" << endl;
42  for (unsigned i = 0; i < getFebcoolingv2GeometryID().size(); i++) {
43  cout << setw(20) << i + 1
44  << setw(25) << getFebcoolingv2GeometryID().at(i) << endl;
45  }
46 }
47 
48 void ARICHGeoFEBCooling::checkCoolingSystemV2DataConsistency() const
49 {
50  B2ASSERT("Data of the cooling system V2 is inconsistent : getFebcoolingv2GeometryID().size() != 420",
51  getFebcoolingv2GeometryID().size() == 420);
52 }
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19