Belle II Software  release-05-01-25
VXDRotationSolidPar.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Benjamin Schwenker *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #pragma once
11 
12 
13 #include <TObject.h>
14 #include <string>
15 #include <list>
16 
17 
18 namespace Belle2 {
28  class VXDRotationSolidPar: public TObject {
29  public:
31  VXDRotationSolidPar(const std::string& name, const std::string& material, const std::string& color,
32  double minPhi, double maxPhi, bool exists):
33  m_name(name), m_material(material), m_color(color), m_minPhi(minPhi), m_maxPhi(maxPhi), m_exists(exists)
34  {}
35 
38  m_name(""), m_material(""), m_color(""), m_minPhi(0), m_maxPhi(0), m_exists(false)
39  {}
40 
42  bool getExists() const { return m_exists; }
44  const std::string& getName() const { return m_name; }
46  const std::string& getMaterial() const { return m_material; }
48  const std::string& getColor() const { return m_color; }
50  double getMinPhi() const { return m_minPhi; }
52  double getMaxPhi() const { return m_maxPhi; }
54  const std::list< std::pair<double, double> >& getInnerPoints() const { return m_innerPoints; }
56  const std::list< std::pair<double, double> >& getOuterPoints() const { return m_outerPoints; }
58  std::list< std::pair<double, double> >& getInnerPoints() { return m_innerPoints; }
60  std::list< std::pair<double, double> >& getOuterPoints() { return m_outerPoints; }
61 
62  private:
64  std::string m_name;
66  std::string m_material;
68  std::string m_color;
70  double m_minPhi;
72  double m_maxPhi;
74  bool m_exists;
76  std::list< std::pair<double, double> > m_innerPoints;
78  std::list< std::pair<double, double> > m_outerPoints;
79 
81  };
82 
84 } // end of namespace Belle2
85 
Belle2::VXDRotationSolidPar::m_exists
bool m_exists
Flags rotation solid (envelope) exists.
Definition: VXDRotationSolidPar.h:82
Belle2::VXDRotationSolidPar::getOuterPoints
const std::list< std::pair< double, double > > & getOuterPoints() const
get outer XZ points
Definition: VXDRotationSolidPar.h:64
Belle2::VXDRotationSolidPar::getInnerPoints
const std::list< std::pair< double, double > > & getInnerPoints() const
get inner XZ points
Definition: VXDRotationSolidPar.h:62
Belle2::VXDRotationSolidPar::getName
const std::string & getName() const
get name of the envelope
Definition: VXDRotationSolidPar.h:52
Belle2::VXDRotationSolidPar::ClassDef
ClassDef(VXDRotationSolidPar, 5)
ClassDef, must be the last term before the closing {}.
Belle2::VXDRotationSolidPar::m_maxPhi
double m_maxPhi
Maximum phi angle.
Definition: VXDRotationSolidPar.h:80
Belle2::VXDRotationSolidPar
The Class for VXD Envelope parameters.
Definition: VXDRotationSolidPar.h:36
Belle2::VXDRotationSolidPar::m_name
std::string m_name
Name of rotation solid (envelope)
Definition: VXDRotationSolidPar.h:72
Belle2::VXDRotationSolidPar::m_innerPoints
std::list< std::pair< double, double > > m_innerPoints
List of inner points in the ZX plane.
Definition: VXDRotationSolidPar.h:84
Belle2::VXDRotationSolidPar::m_color
std::string m_color
Name of color.
Definition: VXDRotationSolidPar.h:76
Belle2::VXDRotationSolidPar::VXDRotationSolidPar
VXDRotationSolidPar()
Constructor.
Definition: VXDRotationSolidPar.h:45
Belle2::VXDRotationSolidPar::getExists
bool getExists() const
returns if rotation solid has inner points
Definition: VXDRotationSolidPar.h:50
Belle2::VXDRotationSolidPar::getMaxPhi
double getMaxPhi() const
get max Phi
Definition: VXDRotationSolidPar.h:60
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::VXDRotationSolidPar::m_minPhi
double m_minPhi
Minimum phi angle.
Definition: VXDRotationSolidPar.h:78
Belle2::VXDRotationSolidPar::getMinPhi
double getMinPhi() const
get min Phi
Definition: VXDRotationSolidPar.h:58
Belle2::VXDRotationSolidPar::m_material
std::string m_material
Name of the material.
Definition: VXDRotationSolidPar.h:74
Belle2::VXDRotationSolidPar::getColor
const std::string & getColor() const
get color
Definition: VXDRotationSolidPar.h:56
Belle2::VXDRotationSolidPar::m_outerPoints
std::list< std::pair< double, double > > m_outerPoints
List of outer points in the ZX plane.
Definition: VXDRotationSolidPar.h:86
Belle2::VXDRotationSolidPar::getMaterial
const std::string & getMaterial() const
get name of the material
Definition: VXDRotationSolidPar.h:54