Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-21 09:58:04

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 // Framework include files
0017 #include <DD4hep/DetElement.h>
0018 
0019 /// Namespace for the AIDA detector description toolkit
0020 namespace dd4hep {
0021 
0022   // Forward declarations
0023   class WorldObject;
0024 
0025   /// Handle class to hold the information of the top DetElement object 'world'
0026   /**
0027    *  \author  M.Frank
0028    *  \version 1.0
0029    *  \ingroup DD4HEP_CORE
0030    */
0031   class World : public Handle<WorldObject>  {
0032   public:
0033     /// Default constructor
0034     World() = default;
0035     /// Copy from handle
0036     World(const World& w) = default;
0037     /// Copy from named handle
0038     World(const Handle<WorldObject>& o) : Handle<WorldObject>(o) {}
0039     /// Copy from pointer
0040     World(Object* p) : Handle<WorldObject>(p) {}
0041     /// Templated constructor for handle conversions
0042     template <typename Q> World(const Handle<Q>& e) : Handle<WorldObject>(e) {}
0043 
0044     /// Assignment operator
0045     World& operator=(const World& sd)  = default;
0046 #ifndef __CINT__
0047     Detector& detectorDescription() const;
0048 #endif
0049   };
0050 } /* End namespace dd4hep            */
0051 #endif // DD4HEP_WORLD_H