Mu2eG4/src/ConstructMaterials.cc
CheckedG4String ConstructMaterials::uniqueMaterialOrThrow( G4String const& name){
    if ( G4Material::GetMaterial(name,false) != 0 ){
      throw cet::exception("GEOM")
        << "mu2e::ConstructMaterials::constructMu2eMaterials(): "
        << "The requested material is already defined: "
        << name
        << "\n";
    }
    return name;
  }
// Check to see if the named material already exists.
Check to see if the named material already exists.
Check to see if the named material already exists .
CheckedG4String ConstructMaterials::uniqueMaterialOrThrow( G4String const& name){
    if ( G4Material::GetMaterial(name,false) != 0 ){
      throw cet::exception("GEOM")
        << "mu2e::ConstructMaterials::constructMu2eMaterials(): "
        << "The requested material is already defined: "
        << name
        << "\n";
    }
    return name;
  }
CheckedG4String ConstructMaterials :: uniqueMaterialOrThrow ( G4String const & name ) { if ( G4Material :: GetMaterial ( name , false ) != 0 ) { throw cet :: exception ( " " ) << " " << " " << name << " \n " ; } return name ; }
Check to see if the named material already exists.
Check to see if the named material already exists .