From 98de6b423820f77fb1a68a7525288fd0ed665bd2 Mon Sep 17 00:00:00 2001
From: Markus Frank <markus.frank@cern.ch>
Date: Tue, 25 Nov 2014 10:38:39 +0000
Subject: [PATCH] Remove main program. No longer needed, functionality covered
 by UtilityApps

---
 examples/CLICSiD/test/main.cpp | 61 ----------------------------------
 1 file changed, 61 deletions(-)
 delete mode 100644 examples/CLICSiD/test/main.cpp

diff --git a/examples/CLICSiD/test/main.cpp b/examples/CLICSiD/test/main.cpp
deleted file mode 100644
index 6e0a4518a..000000000
--- a/examples/CLICSiD/test/main.cpp
+++ /dev/null
@@ -1,61 +0,0 @@
-#include "DD4hep/LCDD.h"
-//#include "TGDMLWrite.h"
-#include "TGeoManager.h"
-#include <iostream>
-#include <vector>
-#include <string>
-
-
-using namespace std;
-using namespace DD4hep;
-
-Geometry::LCDD& compact2geo(int argc, char **argv)  {
-  string input;
-#ifdef _WIN32
-  input = "file:../cmt/compact.xml";
-#else
-  //input = "file:/afs/cern.ch/user/f/frankb/scratch0/ONLINE/ONLINE_HEAD/Online/GeoTest/cmt/compact.xml";
-
-  input = "compact.xml";
-  //input = "file://../cmt/compact.xml";
-  //input = "http://www.cern.ch/frankm/compact.xml";
-
-#endif
-  if ( argc>1 ) {
-    input = argv[1];
-  }
-  //Geometry::LCDDImp *lcdd = new Geometry::LCDDImp;
-  Geometry::LCDD& lcdd = Geometry::LCDD::getInstance();  
-  cout << argc << " Input file : " << input << endl;
-  lcdd.fromCompact(input);
-  lcdd.dump();
-  return lcdd;
-}
-
-#include "TRint.h"
-//______________________________________________________________________________
-int run_interpreter(int argc, char **argv)   {
-  vector<char*> args;
-
-  for(int i=0; i<argc;++i) args.push_back((char*)argv[i]);
-
-  // Create an interactive ROOT application
-  int     r_argc = 0;
-  char**  r_argv = 0; 
-  TRint *theApp = new TRint("Rint", &r_argc, r_argv);
-  
-  Geometry::LCDD& lcdd = compact2geo((int)args.size(),&args[0]);
-  //TGDMLWrite wr;
-  //wr.WriteGDMLfile(gGeoManager,"ILCEx.gdml","");
-
-  // and enter the event loop...
-  theApp->Run();
-  delete theApp;
-  return 0;
-}
-
-int main(int argc,char** argv)  {
-  //return read_compact();
-  //return compact2lcdd();
-  return run_interpreter(argc,argv);
-}
-- 
GitLab