Import Geant4 10.5.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2018-06-29 10:58:11 +02:00
parent fe81a77428
commit 6aa23be517
1581 changed files with 124288 additions and 83758 deletions
@@ -26,7 +26,7 @@
/// \file DetectorConstruction.cc
/// \brief Implementation of the DetectorConstruction class
//
// $Id: DetectorConstruction.cc 98748 2016-08-09 13:42:11Z gcosmo $
// $Id: DetectorConstruction.cc 108917 2018-03-16 07:18:27Z gcosmo $
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -85,17 +85,37 @@ void DetectorConstruction::DefineMaterials()
//NE213
G4Element* H = new G4Element("Hydrogen" ,"H" , 1., 1.01*g/mole);
G4Element* C = new G4Element("Hydrogen" ,"C" , 6., 12.00*g/mole);
G4Element* C = new G4Element("Carbon" ,"C" , 6., 12.00*g/mole);
G4Material* ne213 =
new G4Material("NE213", 0.874*g/cm3, 2);
ne213->AddElement(H, 9.2*perCent);
ne213->AddElement(C, 90.8*perCent);
ne213->AddElement(C, 90.8*perCent);
G4Material* hydrogen =
new G4Material("hydrogen", 1.0*g/cm3, 1);
hydrogen->AddElement(H, 1);
G4Material* carbon =
new G4Material("carbon", 1.0*g/cm3, 1);
carbon->AddElement(C, 1);
G4Material* plastic =
new G4Material("plastic", 1.0*g/cm3, 2);
plastic->AddElement(H, 1);
plastic->AddElement(C, 1);
// or use G4-NIST materials data base
//
G4NistManager* man = G4NistManager::Instance();
man->FindOrBuildMaterial("G4_B");
G4Element* O = man->FindOrBuildElement("O");
G4Element* Hf = man->FindOrBuildElement("Hf");
G4Material* HfO2 = new G4Material("HfO2", 9.68*g/cm3, 2);
HfO2->AddElement(Hf, 1);
HfO2->AddElement(O , 2);
///G4cout << *(G4Material::GetMaterialTable()) << G4endl;
}
@@ -26,7 +26,7 @@
/// \file PhysicsList.cc
/// \brief Implementation of the PhysicsList class
//
// $Id: PhysicsList.cc 105744 2017-08-16 13:13:16Z gcosmo $
// $Id: PhysicsList.cc 108917 2018-03-16 07:18:27Z gcosmo $
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -80,8 +80,8 @@ PhysicsList::PhysicsList()
// Hadron Inelastic physics
//
////RegisterPhysics( new G4HadronPhysicsFTFP_BERT_HP(verb));
RegisterPhysics( new G4HadronPhysicsQGSP_BIC_HP(verb));
RegisterPhysics( new G4HadronPhysicsFTFP_BERT_HP(verb));
////RegisterPhysics( new G4HadronPhysicsQGSP_BIC_HP(verb));
////RegisterPhysics( new G4HadronPhysicsQGSP_BIC_AllHP(verb));
////RegisterPhysics( new G4HadronInelasticQBBC(verb));
////RegisterPhysics( new G4HadronPhysicsINCLXX(verb));
@@ -134,7 +134,7 @@ void PhysicsList::ConstructParticle()
void PhysicsList::SetCuts()
{
SetCutValue(0*mm, "proton");
SetCutValue(0.*mm, "proton");
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......