Import Geant4 10.2.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-10 14:11:04 +02:00
parent c9b32a6c0a
commit d4af681f38
4886 changed files with 420149 additions and 1023309 deletions
@@ -26,7 +26,7 @@
/// \file runAndEvent/RE01/src/RE01EventAction.cc
/// \brief Implementation of the RE01EventAction class
//
// $Id: RE01EventAction.cc 66379 2012-12-18 09:46:33Z gcosmo $
// $Id: RE01EventAction.cc 90679 2015-06-08 07:58:19Z gcosmo $
//
#include "RE01EventAction.hh"
@@ -50,7 +50,7 @@
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
RE01EventAction::RE01EventAction()
:G4UserEventAction(),
fTrackerCollID(-1),fCalorimeterCollID(-1),fMuonCollID(-1)
fTrackerCollID(-1),fCalorimeterCollID(-1)
{;}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -61,7 +61,7 @@ RE01EventAction::~RE01EventAction()
void RE01EventAction::BeginOfEventAction(const G4Event*)
{
G4SDManager * SDman = G4SDManager::GetSDMpointer();
if(fTrackerCollID<0||fCalorimeterCollID<0||fMuonCollID<0)
if(fTrackerCollID<0||fCalorimeterCollID<0)
{
G4String colNam;
fTrackerCollID = SDman->GetCollectionID(colNam="trackerCollection");
@@ -94,9 +94,12 @@ void RE01EventAction::EndOfEventAction(const G4Event* evt)
<< G4endl;
G4cout << n_hit << " hits are stored in RE01TrackerHitsCollection."
<< G4endl;
G4cout << "List of hits in tracker" << G4endl;
for(int i=0;i<n_hit;i++)
{ (*THC)[i]->Print(); }
if(fpEventManager->GetVerboseLevel()>0)
{
G4cout << "List of hits in tracker" << G4endl;
for(int i=0;i<n_hit;i++)
{ (*THC)[i]->Print(); }
}
}
if(CHC)
{
@@ -123,11 +126,14 @@ void RE01EventAction::EndOfEventAction(const G4Event* evt)
G4cout << "Trajectories in tracker "<<
"--------------------------------------------------------------"
<< G4endl;
for(G4int i=0; i<n_trajectories; i++)
if(fpEventManager->GetVerboseLevel()>0)
{
RE01Trajectory* trj =
(RE01Trajectory*)((*(evt->GetTrajectoryContainer()))[i]);
trj->ShowTrajectory();
for(G4int i=0; i<n_trajectories; i++)
{
RE01Trajectory* trj =
(RE01Trajectory*)((*(evt->GetTrajectoryContainer()))[i]);
trj->ShowTrajectory();
}
}
G4cout << G4endl;
@@ -142,11 +148,14 @@ void RE01EventAction::EndOfEventAction(const G4Event* evt)
G4cout << "Primary vertex "
<< G4ThreeVector(pv->GetX0(),pv->GetY0(),pv->GetZ0())
<< " at t = " << (pv->GetT0())/ns << " [ns]" << G4endl;
G4PrimaryParticle* pp = pv->GetPrimary();
while(pp)
if(fpEventManager->GetVerboseLevel()>0)
{
PrintPrimary(pp,0);
pp = pp->GetNext();
G4PrimaryParticle* pp = pv->GetPrimary();
while(pp)
{
PrintPrimary(pp,0);
pp = pp->GetNext();
}
}
}
}
@@ -26,7 +26,7 @@
/// \file runAndEvent/RE01/src/RE01PrimaryGeneratorAction.cc
/// \brief Implementation of the RE01PrimaryGeneratorAction class
//
// $Id: RE01PrimaryGeneratorAction.cc 75295 2013-10-30 09:32:52Z gcosmo $
// $Id: RE01PrimaryGeneratorAction.cc 90679 2015-06-08 07:58:19Z gcosmo $
//
#include "RE01PrimaryGeneratorAction.hh"
@@ -62,7 +62,6 @@ RE01PrimaryGeneratorAction::RE01PrimaryGeneratorAction()
fMessenger = new RE01PrimaryGeneratorMessenger(this);
fUseHEPEvt = true;
G4cout << "*********************************************2" << G4endl;
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -26,7 +26,7 @@
/// \file runAndEvent/RE01/src/RE01StackingAction.cc
/// \brief Implementation of the RE01StackingAction class
//
// $Id: RE01StackingAction.cc 66379 2012-12-18 09:46:33Z gcosmo $
// $Id: RE01StackingAction.cc 90679 2015-06-08 07:58:19Z gcosmo $
//
#include "RE01StackingAction.hh"
@@ -104,7 +104,7 @@ G4VHitsCollection* RE01StackingAction::GetCalCollection()
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
void RE01StackingAction::NewStage()
{
G4cout << "+++++++++++ Stage " << fStage << G4endl;
// G4cout << "+++++++++++ Stage " << fStage << G4endl;
if(fStage==0)
{
// display trajetory information in the tracking region