Ignore:
Timestamp:
Dec 22, 2010, 3:52:27 PM (13 years ago)
Author:
garnier
Message:

geant4 tag 9.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/persistency/ascii/src/G4tgbVolume.cc

    r1228 r1347  
    2424// ********************************************************************
    2525//
     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 $
    2629//
    2730//
     
    110113//-------------------------------------------------------------------
    111114G4tgbVolume::G4tgbVolume()
     115  : theTgrVolume(0), theG4AssemblyVolume(0)
    112116{
    113117}
     
    155159        g4vmgr->RegisterMe( logvol );
    156160        g4vmgr->RegisterChildParentLVs( logvol, parentLV );
    157        
    158       }
    159     }
     161      }
     162      else
     163      {
     164        return;
     165      }
     166    }
     167    else
     168    {
     169      return;
     170    }
    160171  }
    161172  //--- Construct PhysVol
     
    291302      G4Exception("G4tgbVolume::FindOrConstructG4Solid()",
    292303                  "InvalidSetup", FatalException, ErrMessage);
     304      return 0;
    293305    }
    294306   
     
    367379      G4Exception("G4tgbVolume::FindOrConstructG4Solid()",
    368380                  "InvalidSetup", FatalException, ErrMessage);
     381      return 0;
    369382    }
    370383
     
    427440      G4Exception("G4tgbVolume::FindOrConstructG4Solid()",
    428441                  "InvalidSetup", FatalException, ErrMessage);
     442      return 0;
    429443    }
    430444   
     
    655669        G4Exception("G4tgbVolume::FindOrConstructG4Solid()",
    656670                    "InvalidSetup", FatalException, ErrMessage);
     671        return 0;
    657672      }
    658673     
     
    679694          G4Exception("G4tgbVolume::FindOrConstructG4Solid()",
    680695                      "InvalidSetup", FatalException, ErrMessage);
     696          return 0;
    681697        }
    682698        facet = new G4TriangularFacet( pt0, vt1, vt2, vertexType );
     
    705721          G4Exception("G4tgbVolume::FindOrConstructG4Solid()",
    706722                      "InvalidSetup", FatalException, ErrMessage);
     723          return 0;
    707724        }
    708725        facet = new G4QuadrangularFacet( pt0, vt1, vt2, vt3, vertexType );
     
    716733        G4Exception("G4tgbVolume::FindOrConstructG4Solid()",
    717734                    "InvalidSetup", FatalException, ErrMessage);
     735        return 0;
    718736      }
    719737     
     
    748766  {
    749767    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    }
    750774    G4VSolid* sol1 = FindOrConstructG4Solid( solb->GetSolid(0));
    751775    G4VSolid* sol2 = FindOrConstructG4Solid( solb->GetSolid(1));
     
    771795      G4Exception("G4tgbVolume::FindOrConstructG4Solid()",
    772796                  "InvalidSetup", FatalException, ErrMessage);
     797      return 0;
    773798    }
    774799  }
     
    779804    G4Exception("G4tgbVolume::FindOrConstructG4Solid()", "NotImplemented",
    780805                FatalException, ErrMessage);
     806    return 0;
    781807  }
    782808 
     
    10691095          G4Exception("G4tgbVolume::ConstructG4PhysVol", "WrongArgument",
    10701096                      FatalException, ErrMessage);
     1097          return 0;
    10711098        }
    10721099#ifdef G4VERBOSE
     
    12491276          }
    12501277#endif
    1251 
    12521278        }
    12531279      }
     
    13841410    G4Exception("G4tgbVolume::BuildSolidForDivision()", "NotImplemented",
    13851411                FatalException, ErrMessage);
     1412    return 0;
    13861413  }
    13871414
Note: See TracChangeset for help on using the changeset viewer.