DD4hep  1.32.1
Detector Description Toolkit for High Energy Physics
World.h
Go to the documentation of this file.
1 //==========================================================================
2 // AIDA Detector description implementation
3 //--------------------------------------------------------------------------
4 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
5 // All rights reserved.
6 //
7 // For the licensing terms see $DD4hepINSTALL/LICENSE.
8 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
9 //
10 // Author : M.Frank
11 //
12 //==========================================================================
13 #ifndef DD4HEP_WORLD_H
14 #define DD4HEP_WORLD_H
15 
16 #include <DD4hep/Handle.h>
17 
19 namespace dd4hep {
20 
21  // Forward declarations
22  class WorldObject;
23 
25 
30  class World : public Handle<WorldObject> {
31  public:
33  World() = default;
35  World(const World& w) = default;
41  template <typename Q> World(const Handle<Q>& e) : Handle<WorldObject>(e) {}
42 
44  World& operator=(const World& sd) = default;
45 #ifndef __CINT__
47 #endif
48  };
49 } /* End namespace dd4hep */
50 
51 #endif // DD4HEP_WORLD_H
dd4hep::World
Handle class to hold the information of the top DetElement object 'world'.
Definition: World.h:30
dd4hep::World::detectorDescription
Detector & detectorDescription() const
Access the detector description tree.
Definition: World.cpp:19
dd4hep::WorldObject
Data class with properties of a detector element.
Definition: DetectorInterna.h:185
dd4hep::World::World
World(const World &w)=default
Copy from handle.
dd4hep::World::World
World(const Handle< Q > &e)
Templated constructor for handle conversions.
Definition: World.h:41
dd4hep::World::World
World(Object *p)
Copy from pointer.
Definition: World.h:39
Handle.h
dd4hep::Handle
Handle: a templated class like a shared pointer, which allows specialized access to tgeometry objects...
Definition: Handle.h:82
dd4hep::World::operator=
World & operator=(const World &sd)=default
Assignment operator.
dd4hep::World::World
World()=default
Default constructor.
dd4hep::World::World
World(const Handle< WorldObject > &o)
Copy from named handle.
Definition: World.h:37
dd4hep
Namespace for the AIDA detector description toolkit.
Definition: AlignmentsCalib.h:28
dd4hep::Detector
The main interface to the dd4hep detector description package.
Definition: Detector.h:90