Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:55:22

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 DDEVE_FACTORIES_H
0014 #define DDEVE_FACTORIES_H
0015 
0016 #ifndef __CINT__
0017 #include "DD4hep/Plugins.h"
0018 #endif
0019 #include "DDEve/View.h"
0020 #include "DDEve/Display.h"
0021 
0022 namespace {
0023   /// Base factory template
0024   template <typename P, typename S> class Factory;
0025   
0026   /// DDEve view factory
0027   DD4HEP_PLUGIN_FACTORY_ARGS_2(dd4hep::View*,dd4hep::Display*,const char*) { return new P(a0,a1); }
0028 }
0029 
0030 #define DECLARE_VIEW_FACTORY(x) \
0031 DD4HEP_PLUGINSVC_FACTORY(x,DD4hep_DDEve_##x,dd4hep::View*(dd4hep::Display*, const char*),__LINE__)
0032 
0033 #endif // DDEVE_FACTORIES_H