Import Geant4 10.6.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2019-06-28 11:59:04 +02:00
parent 28a70706e0
commit d0f911957d
1056 changed files with 95168 additions and 78160 deletions
@@ -26,7 +26,6 @@
/// \file hadronic/Hadr01/src/HistoManager.cc
/// \brief Implementation of the HistoManager class
//
//
//---------------------------------------------------------------------------
//
// ClassName: HistoManager
@@ -97,7 +96,7 @@ HistoManager::HistoManager()
fVerbose(0),
fNBinsE (100),
fNSlices(300),
fNHisto (25),
fNHisto (28),
fBeamFlag(true),
fHistoBooked(false)
{
@@ -159,6 +158,10 @@ void HistoManager::BookHisto()
fHisto->Add1D("25",
"Proton energy deposition in the target normalized to beam energy",
110,0.0,1.1,1.0);
fHisto->Add1D("26","Energy (MeV) of pi+",fNBinsE,0.,500.,1.0);
fHisto->Add1D("27","Energy (MeV) of pi-",fNBinsE,0.,500.,1.0);
fHisto->Add1D("28","Energy (MeV) of pi0",fNBinsE,0.,500.,1.0);
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
@@ -324,7 +327,8 @@ void HistoManager::ScoreNewTrack(const G4Track* track)
{
const G4ParticleDefinition* pd = track->GetDefinition();
G4String name = pd->GetParticleName();
G4double e = track->GetKineticEnergy();
G4double ee = track->GetKineticEnergy();
G4double e = ee;
// Primary track
if(0 == track->GetParentID()) {
@@ -372,15 +376,19 @@ void HistoManager::ScoreNewTrack(const G4Track* track)
fNcpions++;
fHisto->Fill(6,e,1.0);
fHisto->Fill(19,e,1.0);
fHisto->Fill(25,ee,1.0);
} else if ( pd == G4PionMinus::PionMinus()) {
fNcpions++;
fHisto->Fill(6,e,1.0);
fHisto->Fill(20,e,1.0);
fHisto->Fill(26,ee,1.0);
} else if ( pd == G4PionZero::PionZero()) {
fNpi0++;
fHisto->Fill(7,e,1.0);
fHisto->Fill(27,ee,1.0);
} else if ( pd == G4KaonPlus::KaonPlus() ||
pd == G4KaonMinus::KaonMinus()) {
fNkaons++;