Import Geant4 10.6.0 source tree

This commit is contained in:
Gabriele Cosmo
2019-12-06 15:12:28 +01:00
parent b2a62ae692
commit 5baee230e9
2997 changed files with 141580 additions and 98673 deletions
+3
View File
@@ -15,6 +15,9 @@ committal in the CVS repository !
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
30 October 2019 - G.Cosmo (ascii-V10-05-01)
- Fixed printout syntax in G4tgrUtils::GetDouble().
19 December 2018 - G.Cosmo (ascii-V10-05-00)
- Fixed shadowing compilation warning in G4tgbGeometryDumper and G4tgbVolume.
+1 -1
View File
@@ -392,7 +392,7 @@ G4double G4tgrUtils::GetDouble( const G4String& str, G4double unitval )
}
if( !bWordOK )
{
G4String ErrMess = "String word is not a parameter, nor a unit\n";
G4String ErrMess = "String word is not a parameter, nor a unit\n"
+ G4String("definition nor a function: ") + word
+ G4String(" in string: ") + str;
G4Exception("G4tgrUtils::GetDouble()", "ParseError",
+11
View File
@@ -16,6 +16,17 @@ committal in the CVS repository !
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
13 November 2019 Makoto Asai (gdml-V10-05-09)
- G4GDMLRead.cc : avoid double-definition of units.
25th September 2019 Ben Morgan (gdml-V10-05-08)
- sources.cmake: Replace use of XercesC include/library by imported
XercesC::XercesC target
18,19 July 2019 Makoto Asai (gdml-V10-05-06, -07)
- G4GDMLMessenger.cc : avoid UI commands from being broadcasted to worker
threads.
17 May 2019 Witek Pokorski (gdml-V10-05-05)
- Adding support for writing out assemblies.
+1 -4
View File
@@ -18,9 +18,6 @@
include_directories(${CLHEP_INCLUDE_DIRS})
include_directories(${USOLIDS_INCLUDE_DIRS})
# Need XercesC
include_directories(${XERCESC_INCLUDE_DIRS})
# List internal includes needed.
include_directories(${CMAKE_SOURCE_DIR}/source/digits_hits/digits/include)
include_directories(${CMAKE_SOURCE_DIR}/source/digits_hits/hits/include)
@@ -137,7 +134,7 @@ GEANT4_DEFINE_MODULE(NAME G4gdml
G4track
G4tracking
LINK_LIBRARIES
${XERCESC_LIBRARIES}
XercesC::XercesC
)
# List any source specific properties here
@@ -57,15 +57,18 @@ G4GDMLMessenger::G4GDMLMessenger(G4GDMLParser* myPars)
ReaderCmd->SetGuidance("Read GDML file.");
ReaderCmd->SetParameterName("filename",false);
ReaderCmd->AvailableForStates(G4State_PreInit,G4State_Idle);
ReaderCmd->SetToBeBroadcasted(false);
TopVolCmd = new G4UIcmdWithAString("/persistency/gdml/topvol",this);
TopVolCmd->SetGuidance("Set the top volume for writing the GDML file.");
TopVolCmd->SetParameterName("topvol",false);
TopVolCmd->SetToBeBroadcasted(false);
WriterCmd = new G4UIcmdWithAString("/persistency/gdml/write",this);
WriterCmd->SetGuidance("Write GDML file.");
WriterCmd->SetParameterName("filename",false);
WriterCmd->AvailableForStates(G4State_Idle);
WriterCmd->SetToBeBroadcasted(false);
StripCmd = new G4UIcmdWithABool("/persistency/gdml/strip_pointers",this);
StripCmd->SetGuidance("Enable/disable stripping of pointers on names");
@@ -73,6 +76,7 @@ G4GDMLMessenger::G4GDMLMessenger(G4GDMLParser* myPars)
StripCmd->SetParameterName("strip_pointers",true);
StripCmd->SetDefaultValue(true);
StripCmd->AvailableForStates(G4State_Idle);
StripCmd->SetToBeBroadcasted(false);
AppendCmd = new G4UIcmdWithABool("/persistency/gdml/add_pointers",this);
AppendCmd->SetGuidance("Enable/disable appending of pointers to names");
@@ -80,6 +84,7 @@ G4GDMLMessenger::G4GDMLMessenger(G4GDMLParser* myPars)
AppendCmd->SetParameterName("append_pointers",true);
AppendCmd->SetDefaultValue(true);
AppendCmd->AvailableForStates(G4State_Idle);
AppendCmd->SetToBeBroadcasted(false);
RegionCmd = new G4UIcmdWithABool("/persistency/gdml/export_regions",this);
RegionCmd->SetGuidance("Enable export of geometrical regions");
@@ -87,6 +92,7 @@ G4GDMLMessenger::G4GDMLMessenger(G4GDMLParser* myPars)
RegionCmd->SetParameterName("export_regions",false);
RegionCmd->SetDefaultValue(false);
RegionCmd->AvailableForStates(G4State_Idle);
RegionCmd->SetToBeBroadcasted(false);
EcutsCmd = new G4UIcmdWithABool("/persistency/gdml/export_Ecuts",this);
EcutsCmd->SetGuidance("Enable export of energy cuts associated");
@@ -97,6 +103,7 @@ G4GDMLMessenger::G4GDMLMessenger(G4GDMLParser* myPars)
EcutsCmd->SetParameterName("export_Ecuts",false);
EcutsCmd->SetDefaultValue(false);
EcutsCmd->AvailableForStates(G4State_Idle);
EcutsCmd->SetToBeBroadcasted(false);
SDCmd = new G4UIcmdWithABool("/persistency/gdml/export_SD",this);
SDCmd->SetGuidance("Enable export of SD associated");
@@ -104,10 +111,12 @@ G4GDMLMessenger::G4GDMLMessenger(G4GDMLParser* myPars)
SDCmd->SetParameterName("export_SD",false);
SDCmd->SetDefaultValue(false);
SDCmd->AvailableForStates(G4State_Idle);
SDCmd->SetToBeBroadcasted(false);
ClearCmd = new G4UIcmdWithoutParameter("/persistency/gdml/clear",this);
ClearCmd->SetGuidance("Clear geometry (before reading a new one from GDML).");
ClearCmd->AvailableForStates(G4State_Idle);
ClearCmd->SetToBeBroadcasted(false);
}
G4GDMLMessenger::~G4GDMLMessenger()
@@ -144,6 +153,7 @@ void G4GDMLMessenger::SetNewValue(G4UIcommand* command, G4String newValue)
G4GeometryManager::GetInstance()->OpenGeometry();
myParser->Read(newValue);
G4RunManager::GetRunManager()->DefineWorldVolume(myParser->GetWorldVolume());
G4RunManager::GetRunManager()->GeometryDirectlyUpdated();
}
if( command == RegionCmd )
+2 -1
View File
@@ -44,7 +44,8 @@
G4GDMLRead::G4GDMLRead()
: validate(true), check(false), dostrip(true), inLoop(0), loopCount(0)
{
G4UnitDefinition::BuildUnitsTable();
// Make sure units are defined.
G4UnitDefinition::GetUnitsTable();
}
G4GDMLRead::~G4GDMLRead()