1 #include "gearimpl/FixedPadSizeDiskLayout.h"
2 #include "gearimpl/Util.h"
3 #include "gearxml/GearXML.h"
4 #include "gear/GearMgr.h"
12 using namespace gear ;
15 void gear_unexpected(){
21 }
catch( std::exception& e) {
23 std::cout <<
" A runtime error has occured : "
26 <<
" the program will have to be terminated - sorry." << std::endl ;
36 int main(
int argc,
char**argv){
39 std::set_terminate( gear_unexpected ) ;
42 std::cout <<
" printParameters: " << std::endl
43 <<
" usage: printParameters input.xml " << std::endl ;
47 std::string fileName( argv[1] ) ;
51 GearMgr* gearMgr = gearXML.createGearMgr() ;
54 std::cout << std::endl
55 <<
" printParameters - instantiated GearMgr from file " << fileName
56 << std::endl << std::endl ;
58 std::cout << *gearMgr << std::endl ;
Implementation of GEAR using XML.
Abstract interface for a manager class that returns the Gear classes for the relevant subdetectors...