// // $Id: readGeometry.cpp,v 1.5 2001/03/16 01:49:34 hobbs Exp $ // // File: readGeometry.cpp // Purpose: // Created: 21-FEB-1998 John Hobbs // // $Revision: 1.5 $ // // // Include files #include #include #include #include "d0om/d0_Ref.hpp" #include #include using namespace std; int main(int argc, char **argv) { bool dump=false; int fnoffs=1; char* ftype="DSPACK"; if( argc<2 || argc >4 ) { cerr << "Usage: readGeometry [-d] [-z] input_file_name" << endl; return(1); } for( int i=1 ; i base = BaseGeometry::readGeometry(argv[fnoffs],ftype); if( base.is_null() ) throw "Fatal error getting geometry"; // Dump it. cout << endl << endl << " *** d0Geometry addresses ***\n" << " Base: " << base << endl << " SMT: " << base->get_silicon() << endl << " CFT: " << base->get_cft() << endl << " CPS: " << base->get_cps() << endl << " FPS: " << base->get_fps() << endl << " CAL: " << base->get_calorimeter() << endl << " MUO: " << base->get_muon() << endl << endl; if( dump ) cout << *base << endl; return(0); }