Import Geant4 10.5.0.beta source tree
This commit is contained in:
@@ -108,6 +108,12 @@ void DetectorConstruction::DefineMaterials()
|
||||
H2O->AddElement(H, 2);
|
||||
H2O->AddElement(O, 1);
|
||||
H2O->GetIonisation()->SetMeanExcitationEnergy(78.0*eV);
|
||||
|
||||
G4Element* Hf = man->FindOrBuildElement("Hf");
|
||||
|
||||
G4Material* HfO2 = new G4Material("HfO2", 9.68*g/cm3, 2);
|
||||
HfO2->AddElement(Hf, 1);
|
||||
HfO2->AddElement(O , 2);
|
||||
|
||||
// example of vacuum
|
||||
G4double density = universe_mean_density; //from PhysicalConstants.h
|
||||
|
||||
@@ -77,6 +77,7 @@ void SteppingAction::UserSteppingAction(const G4Step* step)
|
||||
G4ThreeVector P1 = prePoint ->GetPosition();
|
||||
G4ThreeVector P2 = postPoint->GetPosition();
|
||||
G4ThreeVector point = P1 + G4UniformRand()*(P2 - P1);
|
||||
if (step->GetTrack()->GetDefinition()->GetPDGCharge() == 0.) point = P2;
|
||||
G4double x = point.x();
|
||||
G4double xshifted = x + 0.5*fDetector->GetAbsorSizeX();
|
||||
analysisManager->FillH1(10, xshifted, edep);
|
||||
|
||||
Reference in New Issue
Block a user