13 #include "DD4hep/Detector.h"
14 #include "DD4hep/DD4hepUnits.h"
15 #include "DD4hep/Fields.h"
17 #include "TGeoManager.h"
20 #include "gear/GEAR.h"
21 #include "gearxml/GearXML.h"
23 #include "gearimpl/Util.h"
24 #include "gearimpl/ConstantBField.h"
25 #include "gearimpl/GearMgrImpl.h"
27 #include "geartgeo/TGeoGearPointProperties.h"
28 #include "geartgeo/TGeoGearDistanceProperties.h"
33 using namespace dd4hep ;
34 using namespace dd4hep::detail;
35 using namespace dd4hep::rec ;
39 int main(
int argc,
char** argv ){
43 <<
" plugin: name of a plugin with a signature \"long int (Detector*, int, char**)\" \n "
44 <<
" e.g. GearForILD (same as 'default'), GearForCLIC, ..." <<
std::endl ;
57 description.fromCompact( inFile );
59 gear::GearMgr* gearMgr = ( pluginName ==
"default" ) ?
createGearMgr( description ) :
createGearMgr( description , pluginName ) ;
70 if( outFile.
empty() ){
72 outFile =
"gear_" + gearMgr->getDetectorName() +
".xml" ;
75 gear::GearXML::createXMLFile ( gearMgr, outFile ) ;
78 std::cout <<
" ************************************************************** " <<
std::endl ;
80 std::cout <<
" ************************************************************** " <<
std::endl ;
gear::GearMgr * createGearMgr(Detector &description, const std::string &pluginName="GearForILD")
Factory method that creates a GearMgr object pobulated with the GearParametersImpl objects from all (...
int main(int argc, char **argv)