DD4hep - The AIDA detector description toolkit for high energy physics experiments
DD4hep  Rev:Unversioneddirectory
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
World.h
Go to the documentation of this file.
1 //==========================================================================
2 // AIDA Detector description implementation for LCD
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 // Framework include files
17 #include "DD4hep/Conditions.h"
18 #include "DD4hep/Alignments.h"
19 
21 namespace DD4hep {
22 
24  namespace Geometry {
25 
26  // Forward declarations
27  class WorldObject;
28 
30 
35  class World : public Handle<WorldObject> {
36  public:
45 
46  public:
48  World() : RefObject() { }
49 
51  World(const RefObject& o) : RefObject(o) {}
52 
54  World(const World& w) : RefObject(w) {}
55 
57  World(Object* p) : RefObject(p) {}
58 
60  template <typename Q> World(const Handle<Q>& e) : RefObject(e) {}
61 
63  World& operator=(const World& sd) {
64  m_element = sd.m_element;
65  return *this;
66  }
67 #ifndef __CINT__
68  LCDD& lcdd() const;
69 #endif
74  };
75 
76  } /* End namespace Conditions */
77 } /* End namespace DD4hep */
78 
79 #endif /* DD4HEP_WORLD_H */
World(const RefObject &o)
Copy from named handle.
Definition: World.h:51
Alignments::AlignmentsLoader AlignmentsLoader
Alignment stuff.
Definition: World.h:44
The data class behind a alignments container handle.
World(const World &w)
Copy from handle.
Definition: World.h:54
World()
Default constructor.
Definition: World.h:48
WorldObject Object
Internal object type.
Definition: World.h:38
Conditions::ConditionsLoader ConditionsLoader
Conditions stuff.
Definition: World.h:42
Handle class to hold the information of the top DetElement object 'world'.
Definition: World.h:35
LCDD & lcdd() const
Access the detector descrion tree.
Definition: World.cpp:40
World(Object *p)
Copy from pointer.
Definition: World.h:57
The data class behind a conditions container handle.
return e
Definition: Volumes.cpp:297
World(const Handle< Q > &e)
Templated constructor for handle conversions.
Definition: World.h:60
AlignmentsLoader & alignmentsLoader() const
Access to the alignment loading.
Definition: World.cpp:31
Handle< Object > RefObject
Definition of the base handle type.
Definition: World.h:40
Alignments::AlignmentsLoader AlignmentsLoader
ConditionsLoader & conditionsLoader() const
Access the conditions loading.
Definition: World.cpp:22
Handle: a templated class like a shared pointer, which allows specialized access to tgeometry objects...
Definition: Handle.h:87
World & operator=(const World &sd)
Assignment operator.
Definition: World.h:63
The main interface to the DD4hep detector description package.
Definition: LCDD.h:82
T * m_element
Single and only data member: Reference to the actual element.
Definition: Handle.h:96
Data class with properties of a detector element.