Belle II Software  release-05-01-25
ARICHGeoBase.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2016 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Luka Santelj *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <TObject.h>
14 #include <geometry/dbobjects/GeoOpticalSurface.h>
15 #include <string>
16 
17 namespace Belle2 {
26  class ARICHGeoBase: public TObject {
27  public:
28 
32  ARICHGeoBase() {};
33 
38  explicit ARICHGeoBase(const std::string& name): m_name(name)
39  {}
40 
45  void setName(const std::string& name) {m_name = name;}
46 
51  const std::string& getName() const {return m_name;}
52 
57  virtual bool isConsistent() const {return false;}
58 
63  virtual void print(const std::string& title) const;
64 
69  virtual void printSurface(const GeoOpticalSurface& surface) const;
70 
80  virtual void printPlacement(double x, double y, double z, double rx, double ry, double rz) const;
81 
82  protected:
83 
84  std::string m_name;
85  static double s_unit;
86  static std::string s_unitName;
90  };
91 
93 } // end namespace Belle2
Belle2::ARICHGeoBase::printSurface
virtual void printSurface(const GeoOpticalSurface &surface) const
Print the content of optical surface.
Definition: ARICHGeoBase.cc:34
Belle2::ARICHGeoBase::m_name
std::string m_name
geometry object name
Definition: ARICHGeoBase.h:92
Belle2::ARICHGeoBase::print
virtual void print(const std::string &title) const
Print the content of the class.
Definition: ARICHGeoBase.cc:22
Belle2::ARICHGeoBase::getName
const std::string & getName() const
Returns object name.
Definition: ARICHGeoBase.h:59
Belle2::ARICHGeoBase::ClassDef
ClassDef(ARICHGeoBase, 2)
ClassDef.
Belle2::ARICHGeoBase::s_unitName
static std::string s_unitName
conversion unit name
Definition: ARICHGeoBase.h:94
Belle2::ARICHGeoBase::isConsistent
virtual bool isConsistent() const
Check for consistency of data members.
Definition: ARICHGeoBase.h:65
Belle2::ARICHGeoBase::s_unit
static double s_unit
conversion unit for length
Definition: ARICHGeoBase.h:93
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::ARICHGeoBase::printPlacement
virtual void printPlacement(double x, double y, double z, double rx, double ry, double rz) const
Print volume positioning parameters.
Definition: ARICHGeoBase.cc:27
Belle2::ARICHGeoBase::setName
void setName(const std::string &name)
Sets object name.
Definition: ARICHGeoBase.h:53
Belle2::ARICHGeoBase::ARICHGeoBase
ARICHGeoBase()
Default constructor.
Definition: ARICHGeoBase.h:40