Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-15 10:11:53

0001 //==========================================================================
0002 //  AIDA Detector description implementation 
0003 //--------------------------------------------------------------------------
0004 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
0005 // All rights reserved.
0006 //
0007 // For the licensing terms see $DD4hepINSTALL/LICENSE.
0008 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
0009 //
0010 // Author     : M.Frank
0011 //
0012 //==========================================================================
0013 #ifndef DD4HEP_WORLD_H
0014 #define DD4HEP_WORLD_H
0015 
0016 #include <DD4hep/Handle.h>
0017 
0018 /// Namespace for the AIDA detector description toolkit
0019 namespace dd4hep {
0020 
0021   // Forward declarations
0022   class WorldObject;
0023 
0024   /// Handle class to hold the information of the top DetElement object 'world'
0025   /**
0026    *  \author  M.Frank
0027    *  \version 1.0
0028    *  \ingroup DD4HEP_CORE
0029    */
0030   class World : public Handle<WorldObject>  {
0031   public:
0032     /// Default constructor
0033     World() = default;
0034     /// Copy from handle
0035     World(const World& w) = default;
0036     /// Copy from named handle
0037     World(const Handle<WorldObject>& o) : Handle<WorldObject>(o) {}
0038     /// Copy from pointer
0039     World(Object* p) : Handle<WorldObject>(p) {}
0040     /// Templated constructor for handle conversions
0041     template <typename Q> World(const Handle<Q>& e) : Handle<WorldObject>(e) {}
0042 
0043     /// Assignment operator
0044     World& operator=(const World& sd)  = default;
0045 #ifndef __CINT__
0046     Detector& detectorDescription() const;
0047 #endif
0048   };
0049 } /* End namespace dd4hep            */
0050 
0051 #endif // DD4HEP_WORLD_H