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