Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// $Id:$
//====================================================================
// AIDA Detector description implementation for LCD
//--------------------------------------------------------------------
//
// Generic ROOT based geometry display program
//
// Author : M.Frank
//
//====================================================================
// Framework include files
#include "DD4hep/LCDD.h"
// C/C++ include files
#include <iostream>
#include <cstdlib>
#include <vector>
#include <cerrno>
#include <string>
using namespace std;
using namespace DD4hep::Geometry;
int run_plugin(LCDD& lcdd, const char* name, int argc, char** argv) {
try {
lcdd.apply(name,argc,argv);
return 0;
}
catch(const exception& e) {
cout << e.what() << endl;
}
catch(...) {
cout << "UNKNOWN Exception" << endl;
}
::exit(EINVAL);
return EINVAL;
}