Belle II Software light-2406-ragdoll
GeoComponent.h
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#pragma once
10
11#include <TObject.h>
12
13namespace Belle2 {
19 class GeoComponent: public TObject {
20 public:
22 GeoComponent() = default;
24 GeoComponent(const std::string& name, const std::string& creator, const std::string& library): TObject(),
25 m_name(name), m_creator(creator), m_library(library) {}
27 void setName(const std::string& name) { m_name = name; }
29 void setCreator(const std::string& creator) { m_creator = creator; }
31 void setLibrary(const std::string& library) { m_library = library; }
33 const std::string& getName() const { return m_name; }
35 const std::string& getCreator() const { return m_creator; }
37 const std::string& getLibrary() const { return m_library; }
38 private:
40 std::string m_name;
42 std::string m_creator;
44 std::string m_library;
47 };
49}; // Belle2 namespace
Describe one component of the Geometry.
Definition: GeoComponent.h:19
std::string m_library
name of the library to load for the creator
Definition: GeoComponent.h:44
const std::string & getName() const
get name of the component
Definition: GeoComponent.h:33
GeoComponent()=default
empty constructor for ROOT
void setLibrary(const std::string &library)
set name of the library to load for the creator
Definition: GeoComponent.h:31
void setCreator(const std::string &creator)
set name of the creator used to construct the component
Definition: GeoComponent.h:29
GeoComponent(const std::string &name, const std::string &creator, const std::string &library)
full constructor
Definition: GeoComponent.h:24
std::string m_creator
name of the creator used to construct the component
Definition: GeoComponent.h:42
void setName(const std::string &name)
set name of the component
Definition: GeoComponent.h:27
ClassDef(GeoComponent, 1)
Add ROOT reflection info.
const std::string & getLibrary() const
get name of the library to load for the creator
Definition: GeoComponent.h:37
const std::string & getCreator() const
get name of the creator used to construct the component
Definition: GeoComponent.h:35
std::string m_name
name of the component
Definition: GeoComponent.h:40
Abstract base class for different kinds of events.
Definition: ClusterUtils.h:24