Belle II Software development
ARICHGeoCablesEnvelope.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/ARICHGeoCablesEnvelope.h>
11#include <framework/logging/Logger.h>
12#include <iostream>
13
14using namespace std;
15using namespace Belle2;
16
17void ARICHGeoCablesEnvelope::print(const std::string& title) const
18{
19
21
22 cout << "Outer radius of cables envelop : " << getEnvelopeOuterRadius() << endl
23 << "Inner radius of cables envelop : " << getEnvelopeInnerRadius() << endl
24 << "Thickness of cables envelop : " << getEnvelopeThickness() << endl
25 << "Effective material name describing cables : " << getCablesEffectiveMaterialName() << endl;
26 cout << "X0 of ARICH cables envelop center : " << getEnvelopeCenterPosition().X() << endl
27 << "Y0 of ARICH cables envelop center : " << getEnvelopeCenterPosition().Y() << endl
28 << "Z0 of ARICH cables envelop center : " << getEnvelopeCenterPosition().Z() << endl;
29
30}
31
33{
34
35 B2ASSERT("Data of the ARICH cables envelop is inconsisten : getEnvelopeThickness() > 0 ", getEnvelopeThickness() > 0);
36 B2ASSERT("Data of the ARICH cables envelop is inconsisten : getEnvelopeOuterRadius() > getEnvelopeInnerRadius() ",
38
39}
virtual void print(const std::string &title) const
Print the content of the class.
Definition: ARICHGeoBase.cc:20
const std::string & getCablesEffectiveMaterialName() const
Returns Effective material name describing cables.
double getEnvelopeOuterRadius() const
Returns Outer radius of cables envelop.
void print(const std::string &title="Merger PCB geometry parameters") const
Print the content of the class.
ROOT::Math::XYZVector getEnvelopeCenterPosition() const
Returns position vector (ROOT::Math::XYZVector) of cables envelop.
void checkCablesEnvelopDataConsistency() const
Check data consistency of cables envelop In case of failure print the basf2 ERROR message using B2ASS...
double getEnvelopeInnerRadius() const
Returns Inner radius of cables envelop.
double getEnvelopeThickness() const
Returns Thickness of cables envelop.
Abstract base class for different kinds of events.
STL namespace.