Belle II Software  release-08-01-10
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 
14 //root
15 #include <TVector3.h>
16 
17 using namespace std;
18 using namespace Belle2;
19 
20 void ARICHGeoCablesEnvelope::print(const std::string& title) const
21 {
22 
23  ARICHGeoBase::print(title);
24 
25  cout << "Outer radius of cables envelop : " << getEnvelopeOuterRadius() << endl
26  << "Inner radius of cables envelop : " << getEnvelopeInnerRadius() << endl
27  << "Thickness of cables envelop : " << getEnvelopeThickness() << endl
28  << "Effective material name describing cables : " << getCablesEffectiveMaterialName() << endl;
29  cout << "X0 of ARICH cables envelop center : " << getEnvelopeCenterPosition().X() << endl
30  << "Y0 of ARICH cables envelop center : " << getEnvelopeCenterPosition().Y() << endl
31  << "Z0 of ARICH cables envelop center : " << getEnvelopeCenterPosition().Z() << endl;
32 
33 }
34 
35 void ARICHGeoCablesEnvelope::checkCablesEnvelopDataConsistency() const
36 {
37 
38  B2ASSERT("Data of the ARICH cables envelop is inconsisten : getEnvelopeThickness() > 0 ", getEnvelopeThickness() > 0);
39  B2ASSERT("Data of the ARICH cables envelop is inconsisten : getEnvelopeOuterRadius() > getEnvelopeInnerRadius() ",
40  getEnvelopeOuterRadius() > getEnvelopeInnerRadius());
41 
42 }
Abstract base class for different kinds of events.