evovch@evovch-N550JK:~/Documents/RICH_geo$ root ------------------------------------------------------------ | Welcome to ROOT 6.12/06 http://root.cern.ch | | (c) 1995-2017, The ROOT Team | | Built for linuxx8664gcc | | From tag v6-12-06, 9 February 2018 | | Try '.help', '.demo', '.license', '.credits', '.quit'/'.q' | ------------------------------------------------------------ root [0] .q evovch@evovch-N550JK:~/Documents/RICH_geo$ cat Import_GDML.C void Import_GDML(TString richGeoFilename = "rich_v18a_3e.gdml") { TGeoManager *gdml = new TGeoManager("gdml", "FAIRGeom"); gdml->Import(richGeoFilename); gdml->CloseGeometry(); gdml->CheckOverlaps(); } evovch@evovch-N550JK:~/Documents/RICH_geo$ root -l Import_GDML.C root [0] Processing Import_GDML.C... Info in : Geometry gdml, FAIRGeom created Info in : Reading geometry from file: rich_v18a_3e.gdml Info in : Geometry GDMLImport, Geometry imported from GDML created input_line_50:2:114: error: called object type 'Double_t' (aka 'double') is not a function or function pointer ...TFormula____id3421474189592982042(Double_t *x,Double_t *p){ return (p[4](p[2]*p[2]+p[1]*p[1]+2*p[1]*p[4](p[2]*p[2]... ~~~~^ Error in : Can't find TFormula____id3421474189592982042 function prototype with arguments Double_t*,Double_t* Error in : Formula is invalid or not properly initialized - try calling TFormula::Compile Fatal in : Got bad value nan from string '(sqrt(RICH_camera_radius*RICH_camera_radius+RICH_camera_magic_length*RICH_camera_magic_length+2*RICH_camera_magic_length*sqrt(RICH_camera_radius*RICH_camera_radius-((3*RICH_pmt_size+2*RICH_camera_gap_size)/2)*((3*RICH_pmt_size+2*RICH_camera_gap_size)/2))))' aborting #0 0x00007fec7d2bc687 in __GI___waitpid (pid=22386, stat_loc=stat_loc entry=0x7fff61bf0cf8, options=options entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:30 #1 0x00007fec7d227067 in do_system (line=) at ../sysdeps/posix/system.c:149 #2 0x00007fec7de939e7 in TUnixSystem::Exec (shellcmd=, this=0x5634dce087c0) at /home/evovch/soft/root-6.12.06/core/unix/src/TUnixSystem.cxx:2118 #3 TUnixSystem::StackTrace (this=0x5634dce087c0) at /home/evovch/soft/root-6.12.06/core/unix/src/TUnixSystem.cxx:2412 #4 0x00007fec7dd7cdb0 in DefaultErrorHandler (level=, abort_bool=, location=0x7fec7e5ed019 "TGDMLParse::Value", msg=0x5634deac2a60 "Got bad value nan from string '(sqrt(RICH_camera_radius*RICH_camera_radius+RICH_camera_magic_length*RICH_camera_magic_length+2*RICH_camera_magic_length*sqrt(RICH_camera_radius*RICH_camera_radius-((3*R"...) at /home/evovch/soft/root-6.12.06/core/base/src/TError.cxx:192 #5 0x00007fec7dd7c742 in ErrorHandler(Int_t, const char *, const char *, typedef __va_list_tag __va_list_tag *) (level=6000, location=0x7fec7e5ed019 "TGDMLParse::Value", fmt=0x7fec70b3f3b8 "Got bad value %lf from string '%s'", ap=0x7fff61bf3210) at /home/evovch/soft/root-6.12.06/core/base/src/TError.cxx:251 #6 0x00007fec7dd91e71 in TObject::Fatal (this=0x5634de768270, location=, fmt=) at /home/evovch/soft/root-6.12.06/core/base/src/TObject.cxx:912 #7 0x00007fec70b1472e in TGDMLParse::Value (this=this entry=0x5634de768270, svalue=0x5634e0b0cfc0 "(sqrt(RICH_camera_radius*RICH_camera_radius+RICH_camera_magic_length*RICH_camera_magic_length+2*RICH_camera_magic_length*sqrt(RICH_camera_radius*RICH_camera_radius-((3*RICH_pmt_size+2*RICH_camera_gap_"...) at /home/evovch/soft/root-6.12.06/geom/gdml/src/TGDMLParse.cxx:580 #8 0x00007fec70b1d508 in TGDMLParse::Tube (this=this entry=0x5634de768270, gdml=gdml entry=0x5634df6e6050, node=node entry=0x5634e09e5870, attr=, attr entry=0x5634e096c590) at /home/evovch/soft/root-6.12.06/geom/gdml/src/TGDMLParse.cxx:2491 #9 0x00007fec70b28b8b in TGDMLParse::ParseGDML (this=this entry=0x5634de768270, gdml=gdml entry=0x5634df6e6050, node=node entry=0x5634e09e5870) at /home/evovch/soft/root-6.12.06/geom/gdml/src/TGDMLParse.cxx:281 #10 0x00007fec70b287f2 in TGDMLParse::ParseGDML (this=this entry=0x5634de768270, gdml=gdml entry=0x5634df6e6050, node=, node entry=0x5634e0ac0490) at /home/evovch/soft/root-6.12.06/geom/gdml/src/TGDMLParse.cxx:339 #11 0x00007fec70b287f2 in TGDMLParse::ParseGDML (this=this entry=0x5634de768270, gdml=gdml entry=0x5634df6e6050, node=) at /home/evovch/soft/root-6.12.06/geom/gdml/src/TGDMLParse.cxx:339 #12 0x00007fec70b28df1 in TGDMLParse::GDMLReadFile (this=0x5634de768270, filename=0x7fec7e60e31c "rich_v18a_3e.gdml") at /home/evovch/soft/root-6.12.06/geom/gdml/src/TGDMLParse.cxx:145 #13 0x00007fec7e61014b in ?? () #14 0x00005634e0852158 in ?? () #15 0x00005634dce67420 in ?? () #16 0x00005634de768270 in ?? () #17 0x00007fec7884fb00 in ?? () from /home/evovch/soft/root-6.12.06_install/lib/libCling.so #18 0x00005634de768270 in ?? () #19 0x00005634de768270 in ?? () #20 0x00007fec7e614290 in ?? () #21 0x00005634dd047fc0 in ?? () #22 0x00007fff61bf39f0 in ?? () #23 0x00005634dd4190d0 in ?? () #24 0x00005634de768270 in ?? () #25 0x00007fec7e60e31c in ?? () #26 0x00007fff61bf39b0 in ?? () #27 0x00007fec7e61003e in ?? () #28 0x00005634dd047fb8 in ?? () #29 0x00007fec78850101 in cling::MultiplexInterpreterCallbacks::EnteringUserCode() () from /home/evovch/soft/root-6.12.06_install/lib/libCling.so #30 0x00007fff61bf3c10 in ?? () #31 0x00007fec7e610000 in ?? () #32 0x00007fec78854678 in cling::Interpreter::RunFunction(clang::FunctionDecl const*, cling::Value*) [clone .part.303] () from /home/evovch/soft/root-6.12.06_install/lib/libCling.so #33 0x00007fec78854a09 in cling::Interpreter::EvaluateInternal(std::__cxx11::basic_string, std::allocator > const&, cling::CompilationOptions, cling::Value*, cling::Transaction**, unsigned long) () from /home/evovch/soft/root-6.12.06_install/lib/libCling.so #34 0x00007fec787ca591 in TCling::Calc (this=0x5634dce7af20, line=0x5634de3af5b0 "TGDMLParse::StartGDML(\"rich_v18a_3e.gdml\")", error=0x0) at /home/evovch/soft/root-6.12.06/core/metacling/src/TCling.cxx:3092 #35 0x00007fec7dcde028 in TROOT::ProcessLineFast (this=0x7fec7e196d80 , line=, error=error entry=0x0) at /home/evovch/soft/root-6.12.06/core/base/src/TROOT.cxx:2351 #36 0x00007fec70e6531d in TGeoManager::Import (filename=0x5634df0fae10 "rich_v18a_3e.gdml", name=) at /home/evovch/soft/root-6.12.06/geom/geom/src/TGeoManager.cxx:3844 #37 0x00007fec7e61415b in ?? () #38 0x00007fff61bf3dc0 in ?? () #39 0x00007fff61bf3dc0 in ?? () #40 0x00007fff61bf4440 in ?? () #41 0x0000000000000020 in ?? () #42 0x00007fff61bf3e50 in ?? () #43 0x00007fec7d87454c in operator new(unsigned long) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #44 0x00007fec7ddadb64 in TString::Init (this=0x7fff61bf3e10, this entry=0x5634de239710, capacity=, nchar=) at /home/evovch/soft/root-6.12.06/core/base/src/TString.cxx:243 #45 0x00007fec7ddadc54 in TString::TString (this=0x5634de239710, cs=0x7fec70e65240 "AWAVAUATUSH\203\354HdH\213\004%(") at /home/evovch/soft/root-6.12.06/core/base/src/TString.cxx:108 #46 0x00007fec7e614069 in ?? () #47 0x00005634dce888d0 in ?? () #48 0x00007fec787ca810 in TCling::RewindInterpreterMutex (this=0x7fff61bf3c40) at /home/evovch/soft/root-6.12.06/core/metacling/src/TCling.cxx:8486 #49 0x00007fec78850101 in cling::MultiplexInterpreterCallbacks::EnteringUserCode() () from /home/evovch/soft/root-6.12.06_install/lib/libCling.so #50 0x00007fff61bf4440 in ?? () #51 0x00007fec7e614000 in ?? () #52 0x00007fec78854678 in cling::Interpreter::RunFunction(clang::FunctionDecl const*, cling::Value*) [clone .part.303] () from /home/evovch/soft/root-6.12.06_install/lib/libCling.so #53 0x00007fec78854a09 in cling::Interpreter::EvaluateInternal(std::__cxx11::basic_string, std::allocator > const&, cling::CompilationOptions, cling::Value*, cling::Transaction**, unsigned long) () from /home/evovch/soft/root-6.12.06_install/lib/libCling.so #54 0x00007fec78901153 in cling::MetaSema::actOnxCommand(llvm::StringRef, llvm::StringRef, cling::Value*) () from /home/evovch/soft/root-6.12.06_install/lib/libCling.so #55 0x00007fec7890d5d7 in cling::MetaParser::isXCommand(cling::MetaSema::ActionResult&, cling::Value*) () from /home/evovch/soft/root-6.12.06_install/lib/libCling.so #56 0x00007fec7890e6b6 in cling::MetaParser::isCommand(cling::MetaSema::ActionResult&, cling::Value*) () from /home/evovch/soft/root-6.12.06_install/lib/libCling.so #57 0x00007fec788faccb in cling::MetaProcessor::process(llvm::StringRef, cling::Interpreter::CompilationResult&, cling::Value*, bool) () from /home/evovch/soft/root-6.12.06_install/lib/libCling.so #58 0x00007fec787ba40e in HandleInterpreterException (metaProcessor=0x5634dd1e72a0, input_line=, compRes= 0x7fff61bf442c: cling::Interpreter::kSuccess, result=result entry=0x7fff61bf4440) at /home/evovch/soft/root-6.12.06/core/metacling/src/TCling.cxx:2071 #59 0x00007fec787cbd7d in TCling::ProcessLine (this=0x5634dce7af20, line=, error=0x7fff61bf558c) at /home/evovch/soft/root-6.12.06/core/metacling/src/TCling.cxx:2213 #60 0x00007fec787c11a6 in TCling::ProcessLineSynch (this=0x5634dce7af20, line=0x5634dcee21e0 ".X /home/evovch/Documents/RICH_geo/./Import_GDML.C", error=0x7fff61bf558c) at /home/evovch/soft/root-6.12.06/core/metacling/src/TCling.cxx:3066 #61 0x00007fec7dd5825c in TApplication::ExecuteFile (file=, error=0x7fff61bf558c, keep=) at /home/evovch/soft/root-6.12.06/core/base/src/TApplication.cxx:1143 #62 0x00007fec7dd5a04d in TApplication::ProcessLine (this=0x5634dce66220, line=, sync=, err=0x7fff61bf558c) at /home/evovch/soft/root-6.12.06/core/base/src/TApplication.cxx:988 #63 0x00007fec7e1da0c2 in TRint::ProcessLineNr (this=this entry=0x5634dce66220, filestem=filestem entry=0x7fec7e1ebffc "ROOT_cli_", line=line entry=0x7fff61bf5590 ".x Import_GDML.C", error=error entry=0x7fff61bf558c) at /home/evovch/soft/root-6.12.06/core/rint/src/TRint.cxx:756 #64 0x00007fec7e1db798 in TRint::Run (this=0x5634dce66220, retrn=) at /home/evovch/soft/root-6.12.06/core/rint/src/TRint.cxx:416 #65 0x00005634dbee7edc in main (argc=, argv=0x7fff61bf7718) at /home/evovch/soft/root-6.12.06/main/src/rmain.cxx:30 [evovch@phi rich_geo]$ root Couldn't find font "-adobe-helvetica-medium-r-*-*-10-*-*-*-*-*-iso8859-1", trying "fixed". Please fix your system so helvetica can be found, this font typically is in the rpm (or pkg equivalent) package XFree86-[75,100]dpi-fonts or fonts-xorg-[75,100]dpi. ******************************************* * * * W E L C O M E to R O O T * * * * Version 5.34/30 23 April 2015 * * * * You are welcome to visit our Web site * * http://root.cern.ch * * * ******************************************* ROOT 5.34/30 (v5-34-30@v5-34-30, Apr 05 2017, 10:58:26 on linuxx8664gcc) CINT/ROOT C/C++ Interpreter version 5.18.00, July 2, 2010 Type ? for help. Commands must be C++ statements. Enclose multiple statements between { }. root [0] .q [evovch@phi rich_geo]$ cat Import_GDML.C void Import_GDML(TString richGeoFilename = "rich_v18a_3e.gdml") { TGeoManager *gdml = new TGeoManager("gdml", "FAIRGeom"); gdml->Import(richGeoFilename); gdml->CloseGeometry(); gdml->CheckOverlaps(); } [evovch@phi rich_geo]$ root -l Import_GDML.C root [0] Processing Import_GDML.C... Info in : Geometry gdml, FAIRGeom created Info in : Reading geometry from file: rich_v18a_3e.gdml Info in : Geometry GDMLImport, Geometry imported from GDML created Info in : Top volume is rich_v18a_3e. Master volume is rich_v18a_3e Info in : --- Maximum geometry depth set to 100 Info in : Fixing runtime shapes... Info in : ...Nothing to fix Info in : Counting nodes... Info in : Voxelizing... Info in : Building cache... Info in : max level = 8, max placements = 64 Info in : 82928 nodes/ 162 volume UID's in Geometry imported from GDML Info in : ----------------modeler ready---------------- Warning in : geometry already closed Info in : Checking overlaps for rich_v18a_3e and daughters within 0.1 Check overlaps: [==========] 82928 [100.00 %] 0:02 Info in : Number of illegal overlaps/extrusions : 0 root [1] .q [evovch@phi rich_geo]$