Import Geant4 10.4.0 source tree

This commit is contained in:
Gabriele Cosmo
2017-12-08 12:52:30 +01:00
parent 98e455a940
commit fc6af9e721
2166 changed files with 276760 additions and 100873 deletions
@@ -35,6 +35,7 @@
#include "DetectorConstruction.hh"
#include "G4PhysicalConstants.hh"
#include "G4SystemOfUnits.hh"
#include "G4MagIntegratorDriver.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
+10 -11
View File
@@ -168,17 +168,16 @@ void RunAction::EndOfRunAction(const G4Run* /*aRun*/)
for (G4int i=0; i<fNbOfPixels; i++)
{
G4ThreeVector v;
v = fMapVoxels[i];
if ( (GetNumEvent()+1) !=0)
{
//Fill ntuple #5
man->FillNtupleDColumn(5,0,v.x());
man->FillNtupleDColumn(5,1,v.y());
man->FillNtupleDColumn(5,2,v.z());
man->FillNtupleDColumn(5,3,fDose3DDose[i]/(GetNumEvent()+1));
man->AddNtupleRow(5);
}
if (fDose3DDose[i]>0)
{
G4ThreeVector v;
v = fMapVoxels[i];
man->FillNtupleDColumn(5,0,v.x());
man->FillNtupleDColumn(5,1,v.y());
man->FillNtupleDColumn(5,2,v.z());
man->FillNtupleDColumn(5,3,fDose3DDose[i]);
man->AddNtupleRow(5);
}
}
G4cout << "-> Total number of particles detected by the gas detector : " << GetNbOfHitsGas() << G4endl;