2 #include "gearimpl/Util.h"
3 #include "gearxml/GearXML.h"
4 #include "gear/GearMgr.h"
18 #include "gear/geartgeo/MaterialMapFactory.h"
20 using namespace gear ;
23 void gear_unexpected(){
29 }
catch( std::exception& e) {
31 std::cout <<
" A runtime error has occured : "
34 <<
" the program will have to be terminated - sorry." << std::endl ;
44 int main(
int argc,
char**argv){
47 std::set_terminate( gear_unexpected ) ;
50 std::cout <<
" testgear: Testprogram for gear classes. " << std::endl
51 <<
" usage: testgear input.xml " << std::endl ;
55 std::string fileName( argv[1] ) ;
59 GearMgr* gearMgr = gearXML.createGearMgr() ;
68 double x=-200+200*drand48();
69 double y=-200+200*drand48();
70 double z=-400*drand48();
73 std::cout<<x<<
" "<<y<<
" "<<z<<
" "<<radiationLengthsFromIp<<std::endl;
Material map using GearDistanceProperties.
double getRadiationLength(double x, double y, double z) const
Returns the radiation length from the vertex at (0,0,0) to (x,y,z) using a distance wheighted interpo...
MaterialMap * createMaterialMap(double xmin, double xmax, int nxsteps, double ymin, double ymax, int nysteps, double zmin, double zmax, int nzsteps, int coord)
Creating a material map in memory.
Implementation of GEAR using XML.
NotImplementedException used for features that are not implemented.
Factory to create material maps using GearDistanceProperties.
Abstract interface for a manager class that returns the Gear classes for the relevant subdetectors...