From fc65d1575e07c4970a0c2bba59be30a2c45c794a Mon Sep 17 00:00:00 2001 From: Markus Frank <markus.frank@cern.ch> Date: Thu, 21 Feb 2013 20:08:32 +0000 Subject: [PATCH] Use standard plusgin directory and create plugin library --- DDCore/src/StandardPlugins.cpp | 50 ---------------------------------- 1 file changed, 50 deletions(-) delete mode 100644 DDCore/src/StandardPlugins.cpp diff --git a/DDCore/src/StandardPlugins.cpp b/DDCore/src/StandardPlugins.cpp deleted file mode 100644 index aa8b0af37..000000000 --- a/DDCore/src/StandardPlugins.cpp +++ /dev/null @@ -1,50 +0,0 @@ -// $Id:$ -//==================================================================== -// AIDA Detector description implementation for LCD -//-------------------------------------------------------------------- -// -// Standard plugins necessary for nearly everything. -// -// Author : M.Frank -// -//==================================================================== - -// Framework include files -#include "DD4hep/Factories.h" -#include "DD4hep/LCDD.h" -// ROOT includes -#include "TGeoManager.h" -#include "TGeoVolume.h" - -using namespace std; -using namespace DD4hep::Geometry; - -static long display(LCDD& /* lcdd */,int argc,char** argv) { - TGeoManager* mgr = gGeoManager; - const char* opt = "ogl"; - if ( argc > 0 ) { - opt = argv[0]; - } - if ( mgr ) { - mgr->SetVisLevel(4); - mgr->SetVisOption(1); - TGeoVolume* vol = mgr->GetTopVolume(); - if ( vol ) { - vol->Draw(opt); - return 1; - } - } - return 0; -} -DECLARE_APPLY(DD4hepGeometryDisplay,display); - -static long load_compact(LCDD& lcdd,int argc,char** argv) { - for(size_t j=0; j<argc; ++j) { - string input = argv[j]; - cout << "Processing compact input file : " << input << endl; - lcdd.fromCompact(input); - } - return 1; -} -DECLARE_APPLY(DD4hepCompactLoader,load_compact); - -- GitLab