Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DD4hep
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cepc
externals
mirroring
DD4hep
Commits
98de6b42
Commit
98de6b42
authored
10 years ago
by
Markus Frank
Browse files
Options
Downloads
Patches
Plain Diff
Remove main program. No longer needed, functionality covered by UtilityApps
parent
955ca6d2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/CLICSiD/test/main.cpp
+0
-61
0 additions, 61 deletions
examples/CLICSiD/test/main.cpp
with
0 additions
and
61 deletions
examples/CLICSiD/test/main.cpp
deleted
100644 → 0
+
0
−
61
View file @
955ca6d2
#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
);
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment