Import Geant4 10.3.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-12-09 12:35:28 +01:00
parent 4ec577e5c4
commit a3452e42ac
3514 changed files with 210500 additions and 89628 deletions
+11 -1
View File
@@ -1,4 +1,4 @@
$Id: History 96677 2016-04-29 12:20:20Z gcosmo $
$Id: History 101687 2016-11-21 09:43:18Z gcosmo $
-------------------------------------------------------------------
=========================================================
@@ -17,6 +17,16 @@ committal in the CVS repository !
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
18 November 2016 Witek Pokorski (gdml-V10-02-09)
- Fixing check for correctness of the units for replicas in case of angular axis.
13 September Gabriele Cosmo (gdml-V10-02-08)
- Replaced obsolete call to 'Invisible' with 'G4VisAttributes::GetInvisible()'
in G4GDMLReadStructure::GetWorldVolume().
26 July 2016 Witek Pokorski (gdml-V10-02-07)
- Fixing check for correctness of the units for divisions along angular axis.
29 April 2016 Gabriele Cosmo (gdml-V10-02-06)
- Added missing new dependency on digits_hits/detector in GNUmakefile.
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: G4GDMLReadStructure.cc 96190 2016-03-29 08:07:36Z gcosmo $
// $Id: G4GDMLReadStructure.cc 101687 2016-11-21 09:43:18Z gcosmo $
//
// class G4GDMLReadStructure Implementation
//
@@ -135,6 +135,7 @@ DivisionvolRead(const xercesc::DOMElement* const divisionvolElement)
const xercesc::DOMNamedNodeMap* const attributes
= divisionvolElement->getAttributes();
XMLSize_t attributeCount = attributes->getLength();
G4String unitname;
for (XMLSize_t attribute_index=0;
attribute_index<attributeCount; attribute_index++)
@@ -156,10 +157,8 @@ DivisionvolRead(const xercesc::DOMElement* const divisionvolElement)
const G4String attValue = Transcode(attribute->getValue());
if (attName=="name") { name = attValue; } else
if (attName=="unit") { unit = G4UnitDefinition::GetValueOf(attValue);
if (G4UnitDefinition::GetCategory(attValue)!="Length") {
G4Exception("G4GDMLReadStructure::DivisionvolRead()", "InvalidRead",
FatalException, "Invalid unit for length!"); }
if (attName=="unit") { unit = G4UnitDefinition::GetValueOf(attValue);
unitname = G4UnitDefinition::GetCategory(attValue);
} else
if (attName=="width") { width = eval.Evaluate(attValue); } else
if (attName=="offset") { offset = eval.Evaluate(attValue); } else
@@ -174,6 +173,11 @@ DivisionvolRead(const xercesc::DOMElement* const divisionvolElement)
}
}
if ( ((axis == kXAxis || axis == kYAxis || axis == kZAxis) && unitname!="Length") ||
((axis == kRho || axis == kPhi) && unitname!="Angle")) {
G4Exception("G4GDMLReadStructure::DivisionvolRead()", "InvalidRead",
FatalException, "Invalid unit!"); }
width *= unit;
offset *= unit;
@@ -555,9 +559,9 @@ QuantityRead(const xercesc::DOMElement* const readElement)
const G4String attValue = Transcode(attribute->getValue());
if (attName=="unit") { unit = G4UnitDefinition::GetValueOf(attValue);
if (G4UnitDefinition::GetCategory(attValue)!="Length") {
if (G4UnitDefinition::GetCategory(attValue)!="Length" && G4UnitDefinition::GetCategory(attValue)!="Angle") {
G4Exception("G4GDMLReadStructure::QuantityRead()", "InvalidRead",
FatalException, "Invalid unit for length!"); }
FatalException, "Invalid unit for lenght or angle (width, offset)!"); }
} else
if (attName=="value"){ value= eval.Evaluate(attValue); }
}
@@ -876,7 +880,7 @@ GetWorldVolume(const G4String& setupName)
if (sname == "") { return 0; }
G4LogicalVolume* volume = GetVolume(GenerateName(sname, dostrip));
volume->SetVisAttributes(G4VisAttributes::Invisible);
volume->SetVisAttributes(G4VisAttributes::GetInvisible());
G4VPhysicalVolume* pvWorld = 0;
+5
View File
@@ -15,6 +15,11 @@ committal in the CVS repository !
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
6 July, 16 G.Cosmo (mctruth-V10-02-00)
- Fixed typo in G4PersistencyCenterMessenger::GetCurrentValue() in
selection of verbose mode.
Addressing problem report #1876
26 February, 13 G.Cosmo (mctruth-V09-06-00)
- Removed unused data member in G4PersistencyCenter. Cleanup of MT changes.
@@ -204,7 +204,7 @@ G4String G4PersistencyCenterMessenger::GetCurrentValue(G4UIcommand* command)
{
G4String ustr="Undefined";
if (command==select)
if (command==verboseCmd)
{
return pc->VerboseLevel();
}