Import Geant4 11.2.0 source tree
This commit is contained in:
@@ -169,7 +169,7 @@ G4VPhysicalVolume* STCyclotronDetectorConstruction::Construct()
|
||||
G4double vacuum_atomic_number, vacuum_mass_of_mole, vacuum_density,vacuum_pressure,vacuum_temperature;
|
||||
vacuum_atomic_number = 1.;
|
||||
vacuum_mass_of_mole = 1.008*g/mole;
|
||||
vacuum_density = 1.e-30*g/cm3;
|
||||
vacuum_density = 1.e-25*g/cm3;
|
||||
vacuum_pressure = 1.e-8*bar;
|
||||
vacuum_temperature = 293.*kelvin; //from PhysicalConstants.h
|
||||
G4Material* vacuum_beam = new G4Material("vacuumBeam", vacuum_atomic_number,
|
||||
|
||||
@@ -60,8 +60,8 @@ void STCyclotronPrimaryGeneratorAction::GeneratePrimaries(G4Event* anEvent)
|
||||
G4double chargeParticle = fParticleBeam->GetParticleDefinition()->GetPDGCharge()*1.6E-19;
|
||||
G4double numberOfPart = std::abs(fBeamCurrent*timePerEvent/chargeParticle);
|
||||
G4String name = fParticleBeam->GetParticleDefinition()->GetParticleName();
|
||||
G4double energy = fParticleBeam->GetParticleEnergy();
|
||||
|
||||
// G4double energy = fParticleBeam->GetParticleEnergy();
|
||||
G4double energy = fParticleBeam -> GetCurrentSource()->GetEneDist()->GetMonoEnergy();
|
||||
G4int fPrimariesPerEvent = (G4int)numberOfPart;
|
||||
|
||||
if(fPrimariesPerEvent < 1){
|
||||
|
||||
Reference in New Issue
Block a user