10 #include <arich/dbobjects/ARICHGeoMergerCooling.h>
11 #include <arich/dbobjects/tessellatedSolidStr.h>
12 #include <framework/gearbox/Unit.h>
13 #include <framework/logging/Logger.h>
24 void ARICHGeoMergerCooling::print(
const std::string& title)
const
27 ARICHGeoBase::print(title);
29 cout <<
" Merger cooling bodies info" << endl;
30 cout <<
" Merger cooling bodies material name : " << getMergerCoolingBodiesMaterialName() << endl;
31 cout <<
" m_mergerCoolingBodiesInfo.size() = " << m_mergerCoolingBodiesInfo.size() << endl;
33 for (
unsigned i = 0; i < m_mergerCoolingBodiesInfo.size(); i++) {
35 mergerCoolingBodiesStr.printInfo();
39 cout <<
"mergerCoolingBodiesv2/mergerCoolingPositionID" << endl;
40 for (
unsigned i = 0; i < getMergerCoolingPositionID().size(); i++) {
41 cout << setw(20) << i + 1
42 << setw(25) << getMergerCoolingPositionID().at(i) << endl;
47 void ARICHGeoMergerCooling::checkMergerCoolingSystemDataConsistency()
const
50 B2ASSERT(
"Data of the cooling system V2 is inconsisten : getMergerCoolingPositionID().size() != 72",
51 getMergerCoolingPositionID().size() == 72);
52 for (
unsigned i = 0; i < m_mergerCoolingBodiesInfo.size(); i++) {
57 const tessellatedSolidStr ARICHGeoMergerCooling::getMergerCoolingBodiesInfo_globalMergerID(
unsigned int iMergerSlot)
const
59 B2ASSERT(
"iMergerSlot <=0 ", iMergerSlot > 0);
60 B2ASSERT(
"iMergerSlot > 72", iMergerSlot <= 72);
61 int positionID = (int)getMergerCoolingPositionID().at(iMergerSlot - 1);
62 B2ASSERT(
"positionID <=0 ", positionID > 0);
63 B2ASSERT(
"positionID > 12", positionID <= 12);
64 return getMergerCoolingBodiesInfo(positionID);
Abstract base class for different kinds of events.
Structure which holds apexes of the tessellation volumes.