Belle II Software development
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
18using namespace std;
19using namespace Belle2;
20
21void ARICHGeoFEBCooling::print(const std::string& title) const
22{
23
25
26 cout << " Size of the small square in mm : " << getSmallSquareSize() << endl
27 << " Thickness of the small square in mm : " << getSmallSquareThickness() << endl
28 << " Size of the big square in mm : " << getBigSquareSize() << endl
29 << " Thickness of the big square in mm : " << getBigSquareThickness() << endl;
30 cout << " Length of the rectangle in mm : " << getRectangleL() << endl
31 << " Width of the rectangle in mm : " << getRectangleW() << endl
32 << " Thickness of the rectangle in mm : " << getRectangleThickness() << endl
33 << " Distance from center of the rectangle in mm : " << getRectangleDistanceFromCenter() << endl;
34
35 cout << setw(20) << "hapdID"
36 << setw(25) << "FEB cooling GeometryID" << endl;
37 for (unsigned i = 0; i < getFebcoolingv2GeometryID().size(); i++) {
38 cout << setw(20) << i + 1
39 << setw(25) << getFebcoolingv2GeometryID().at(i) << endl;
40 }
41}
42
44{
45 B2ASSERT("Data of the cooling system V2 is inconsistent : getFebcoolingv2GeometryID().size() != 420",
46 getFebcoolingv2GeometryID().size() == 420);
47}
virtual void print(const std::string &title) const
Print the content of the class.
Definition: ARICHGeoBase.cc:20
double getBigSquareThickness() const
Returns thickness of the big square in mm.
double getBigSquareSize() const
Returns size of the big square in mm.
double getSmallSquareSize() const
Returns size of the small square in mm.
double getRectangleThickness() const
Returns thickness of the rectangle in mm.
void print(const std::string &title="Upgraded after phase two cooling system (v2) geometry parameters") const
Print the content of the class.
double getSmallSquareThickness() const
Returns thickness of the small square in mm.
const std::vector< double > & getFebcoolingv2GeometryID() const
Returns vector of feb cooling configuration/geometry ID.
void checkCoolingSystemV2DataConsistency() const
Check data consistency of the cooling system (v2) positions In case of failure print the basf2 ERROR ...
double getRectangleW() const
Returns width of the rectangle in mm.
double getRectangleL() const
Returns length of the rectangle in mm.
double getRectangleDistanceFromCenter() const
Returns distance from center of the rectangle in mm.
Abstract base class for different kinds of events.
STL namespace.