Changeset 1347 for trunk/source/persistency/ascii/src/G4tgbVolume.cc
- Timestamp:
- Dec 22, 2010, 3:52:27 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/persistency/ascii/src/G4tgbVolume.cc
r1228 r1347 24 24 // ******************************************************************** 25 25 // 26 // 27 // $Id: G4tgbVolume.cc,v 1.23 2010/11/05 08:58:36 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 26 29 // 27 30 // … … 110 113 //------------------------------------------------------------------- 111 114 G4tgbVolume::G4tgbVolume() 115 : theTgrVolume(0), theG4AssemblyVolume(0) 112 116 { 113 117 } … … 155 159 g4vmgr->RegisterMe( logvol ); 156 160 g4vmgr->RegisterChildParentLVs( logvol, parentLV ); 157 158 } 159 } 161 } 162 else 163 { 164 return; 165 } 166 } 167 else 168 { 169 return; 170 } 160 171 } 161 172 //--- Construct PhysVol … … 291 302 G4Exception("G4tgbVolume::FindOrConstructG4Solid()", 292 303 "InvalidSetup", FatalException, ErrMessage); 304 return 0; 293 305 } 294 306 … … 367 379 G4Exception("G4tgbVolume::FindOrConstructG4Solid()", 368 380 "InvalidSetup", FatalException, ErrMessage); 381 return 0; 369 382 } 370 383 … … 427 440 G4Exception("G4tgbVolume::FindOrConstructG4Solid()", 428 441 "InvalidSetup", FatalException, ErrMessage); 442 return 0; 429 443 } 430 444 … … 655 669 G4Exception("G4tgbVolume::FindOrConstructG4Solid()", 656 670 "InvalidSetup", FatalException, ErrMessage); 671 return 0; 657 672 } 658 673 … … 679 694 G4Exception("G4tgbVolume::FindOrConstructG4Solid()", 680 695 "InvalidSetup", FatalException, ErrMessage); 696 return 0; 681 697 } 682 698 facet = new G4TriangularFacet( pt0, vt1, vt2, vertexType ); … … 705 721 G4Exception("G4tgbVolume::FindOrConstructG4Solid()", 706 722 "InvalidSetup", FatalException, ErrMessage); 723 return 0; 707 724 } 708 725 facet = new G4QuadrangularFacet( pt0, vt1, vt2, vt3, vertexType ); … … 716 733 G4Exception("G4tgbVolume::FindOrConstructG4Solid()", 717 734 "InvalidSetup", FatalException, ErrMessage); 735 return 0; 718 736 } 719 737 … … 748 766 { 749 767 const G4tgrSolidBoolean* solb = dynamic_cast<const G4tgrSolidBoolean*>(sol); 768 if (!solb) 769 { 770 G4Exception("G4tgbVolume::FindOrConstructG4Solid()", 771 "InvalidSetup", FatalException, "Invalid Solid pointer"); 772 return 0; 773 } 750 774 G4VSolid* sol1 = FindOrConstructG4Solid( solb->GetSolid(0)); 751 775 G4VSolid* sol2 = FindOrConstructG4Solid( solb->GetSolid(1)); … … 771 795 G4Exception("G4tgbVolume::FindOrConstructG4Solid()", 772 796 "InvalidSetup", FatalException, ErrMessage); 797 return 0; 773 798 } 774 799 } … … 779 804 G4Exception("G4tgbVolume::FindOrConstructG4Solid()", "NotImplemented", 780 805 FatalException, ErrMessage); 806 return 0; 781 807 } 782 808 … … 1069 1095 G4Exception("G4tgbVolume::ConstructG4PhysVol", "WrongArgument", 1070 1096 FatalException, ErrMessage); 1097 return 0; 1071 1098 } 1072 1099 #ifdef G4VERBOSE … … 1249 1276 } 1250 1277 #endif 1251 1252 1278 } 1253 1279 } … … 1384 1410 G4Exception("G4tgbVolume::BuildSolidForDivision()", "NotImplemented", 1385 1411 FatalException, ErrMessage); 1412 return 0; 1386 1413 } 1387 1414
Note: See TracChangeset
for help on using the changeset viewer.