Belle II Software  release-05-02-19
GeoComponent.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2016 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Martin Ritter *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <TObject.h>
14 
15 namespace Belle2 {
21  class GeoComponent: public TObject {
22  public:
24  GeoComponent() = default;
26  GeoComponent(const std::string& name, const std::string& creator, const std::string& library): TObject(),
27  m_name(name), m_creator(creator), m_library(library) {}
29  void setName(const std::string& name) { m_name = name; }
31  void setCreator(const std::string& creator) { m_creator = creator; }
33  void setLibrary(const std::string& library) { m_library = library; }
35  const std::string& getName() const { return m_name; }
37  const std::string& getCreator() const { return m_creator; }
39  const std::string& getLibrary() const { return m_library; }
40  private:
42  std::string m_name;
44  std::string m_creator;
46  std::string m_library;
49  };
51 }; // Belle2 namespace
Belle2::GeoComponent::getCreator
const std::string & getCreator() const
get name of the creator used to construct the component
Definition: GeoComponent.h:45
Belle2::GeoComponent::ClassDef
ClassDef(GeoComponent, 1)
Add ROOT reflection info.
Belle2::GeoComponent::GeoComponent
GeoComponent()=default
empty constructor for ROOT
Belle2::GeoComponent
Describe one component of the Geometry.
Definition: GeoComponent.h:29
Belle2::GeoComponent::m_library
std::string m_library
name of the library to load for the creator
Definition: GeoComponent.h:54
Belle2::GeoComponent::getLibrary
const std::string & getLibrary() const
get name of the library to load for the creator
Definition: GeoComponent.h:47
Belle2::GeoComponent::m_name
std::string m_name
name of the component
Definition: GeoComponent.h:50
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::GeoComponent::m_creator
std::string m_creator
name of the creator used to construct the component
Definition: GeoComponent.h:52
Belle2::GeoComponent::setCreator
void setCreator(const std::string &creator)
set name of the creator used to construct the component
Definition: GeoComponent.h:39
Belle2::GeoComponent::setName
void setName(const std::string &name)
set name of the component
Definition: GeoComponent.h:37
Belle2::GeoComponent::getName
const std::string & getName() const
get name of the component
Definition: GeoComponent.h:43
Belle2::GeoComponent::setLibrary
void setLibrary(const std::string &library)
set name of the library to load for the creator
Definition: GeoComponent.h:41