Import Geant4 7.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 11:11:55 +02:00
parent e083ffb441
commit 516dbf1a58
5914 changed files with 202605 additions and 71141 deletions
@@ -29,8 +29,8 @@
// * *
// *******************************
//
// $Id: BrachyAnalysisManager.cc,v 1.14 2004/05/13 14:47:46 guatelli Exp $
// GEANT4 tag $Name: geant4-06-02 $
// $Id: BrachyAnalysisManager.cc,v 1.15 2004/11/24 09:53:05 guatelli Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
#ifdef G4ANALYSIS_USE
#include <stdlib.h>
@@ -60,16 +60,11 @@ BrachyAnalysisManager::BrachyAnalysisManager() :
aFact = AIDA_createAnalysisFactory();
AIDA::ITreeFactory *treeFact = aFact->createTreeFactory();
//parameters for the TreeFactory
std::string fileName = "brachytherapy.hbk";
G4String fileName = "brachytherapy.hbk";
theTree = treeFact->create(fileName,"hbook",false, true);
delete treeFact;
histFact = aFact->createHistogramFactory( *theTree );
tupFact = aFact->createTupleFactory ( *theTree );
}
BrachyAnalysisManager::~BrachyAnalysisManager()
@@ -94,7 +89,9 @@ BrachyAnalysisManager* BrachyAnalysisManager::getInstance()
}
void BrachyAnalysisManager::book()
{
{
histFact = aFact->createHistogramFactory( *theTree );
tupFact = aFact->createTupleFactory ( *theTree );
//creating a 1D histogram ...
h1 = histFact->createHistogram2D("10","Energy, pos", //histoID,histo name
300 ,-150.,150., //bins'number,xmin,xmax
@@ -34,8 +34,8 @@
// * *
// ****************************************
//
// $Id: BrachyDetectorConstruction.cc,v 1.25 2004/05/13 14:47:46 guatelli Exp $
// GEANT4 tag $Name: geant4-06-02 $
// $Id: BrachyDetectorConstruction.cc,v 1.26 2004/11/24 09:53:05 guatelli Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
#include "BrachyPhantomROGeometry.hh"
#include "BrachyPhantomSD.hh"
@@ -169,7 +169,7 @@ void BrachyDetectorConstruction::SelectBrachytherapicSeed(G4String val)
}
}
}
G4cout << "Now Detector is " << val << G4endl;
G4cout << "Now the source is " << val << G4endl;
}
void BrachyDetectorConstruction::ConstructPhantom()
@@ -34,7 +34,7 @@
// ****************************************
//
// $Id: BrachyDetectorConstructionI.cc,v 1.6 2003/12/09 15:29:56 gunter Exp $
// GEANT4 tag $Name: geant4-06-00-patch-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
#include "globals.hh"
#include "BrachyDetectorConstructionI.hh"
@@ -35,7 +35,7 @@
// ****************************************
//
// $Id: BrachyDetectorConstructionIr.cc,v 1.8 2004/03/11 15:38:42 guatelli Exp $
// GEANT4 tag $Name: geant4-06-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
#include "globals.hh"
#include "BrachyDetectorConstructionIr.hh"
@@ -36,7 +36,7 @@
//
//
// $Id: BrachyDetectorConstructionLeipzig.cc,v 1.7 2003/12/09 15:29:58 gunter Exp $
// GEANT4 tag $Name: geant4-06-00-patch-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
#include "globals.hh"
@@ -31,8 +31,8 @@
// *********************************
//
//
// $Id: BrachyDetectorMessenger.cc,v 1.8 2003/05/26 09:20:14 guatelli Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// $Id: BrachyDetectorMessenger.cc,v 1.9 2004/11/24 09:53:05 guatelli Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
//
@@ -52,7 +52,7 @@ BrachyDetectorMessenger::BrachyDetectorMessenger( BrachyDetectorConstruction* De
detectorDir->SetGuidance(" phantom control.");
phantomMaterialCmd = new G4UIcmdWithAString("/phantom/selectMaterial",this);
phantomMaterialCmd->SetGuidance("Select Material of the detector.");
phantomMaterialCmd->SetGuidance("Select Material of the phantom.");
phantomMaterialCmd->SetParameterName("choice",false);
phantomMaterialCmd->AvailableForStates(G4State_Idle);
@@ -30,7 +30,7 @@
// *******************************
//
// $Id: BrachyEventAction.cc,v 1.19 2004/03/11 16:05:03 guatelli Exp $
// GEANT4 tag $Name: geant4-06-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
#include "BrachyEventAction.hh"
#include "BrachyPhantomHit.hh"
@@ -32,7 +32,7 @@
// *******************************
//
// $Id: BrachyFactory.cc,v 1.5 2003/12/09 15:29:59 gunter Exp $
// GEANT4 tag $Name: geant4-06-00-patch-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
#include"BrachyFactory.hh"
@@ -30,7 +30,7 @@
// *******************************
//
// $Id: BrachyFactoryI.cc,v 1.4 2003/05/22 17:20:43 guatelli Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
#include "BrachyFactoryI.hh"
#include "BrachyPrimaryGeneratorActionI.hh"
@@ -30,7 +30,7 @@
// *******************************
//
// $Id: BrachyFactoryIr.cc,v 1.4 2003/05/22 17:20:43 guatelli Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
#include "globals.hh"
#include "BrachyFactoryIr.hh"
@@ -30,7 +30,7 @@
// *******************************
//
// $Id: BrachyFactoryLeipzig.cc,v 1.4 2003/05/22 17:20:43 guatelli Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
#include "globals.hh"
@@ -30,7 +30,7 @@
// *******************************
//
// $Id: BrachyMaterial.cc,v 1.5 2004/03/11 15:38:42 guatelli Exp $
// GEANT4 tag $Name: geant4-06-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
#include "G4MaterialPropertiesTable.hh"
@@ -31,7 +31,7 @@
// ********************************
//
// $Id: BrachyPhantomHit.cc,v 1.5 2003/05/27 08:37:55 guatelli Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
#include "BrachyPhantomHit.hh"
#include "G4ios.hh"
@@ -31,7 +31,7 @@
// ************************************
//
// $Id: BrachyPhantomROGeometry.cc,v 1.9 2004/05/13 14:47:46 guatelli Exp $
// GEANT4 tag $Name: geant4-06-02 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
#include "BrachyPhantomROGeometry.hh"
#include "BrachyDummySD.hh"
@@ -31,7 +31,7 @@
// ********************************
//
// $Id: BrachyPhantomSD.cc,v 1.8 2004/05/13 14:47:46 guatelli Exp $
// GEANT4 tag $Name: geant4-06-02 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
#include "BrachyPhantomSD.hh"
#include "BrachyPhantomHit.hh"
@@ -31,7 +31,7 @@
// **********************************
//
// $Id: BrachyPhysicsList.cc,v 1.10 2004/01/08 17:25:13 silvarod Exp $
// GEANT4 tag $Name: geant4-06-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
#include "BrachyPhysicsList.hh"
@@ -35,7 +35,7 @@
// ********************************************
//
// $Id: BrachyPrimaryGeneratorAction.cc,v 1.16 2003/12/09 15:30:00 gunter Exp $
// GEANT4 tag $Name: geant4-06-00-patch-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
#include "globals.hh"
#include "BrachyPrimaryGeneratorAction.hh"
@@ -35,7 +35,7 @@
// ********************************************
//
// $Id: BrachyPrimaryGeneratorActionI.cc,v 1.7 2003/12/09 15:30:01 gunter Exp $
// GEANT4 tag $Name: geant4-06-00-patch-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
#include "BrachyPrimaryGeneratorActionI.hh"
@@ -35,7 +35,7 @@
// ********************************************
//
// $Id: BrachyPrimaryGeneratorActionIr.cc,v 1.8 2004/03/11 15:38:43 guatelli Exp $
// GEANT4 tag $Name: geant4-06-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
#include "BrachyPrimaryGeneratorActionIr.hh"
@@ -35,8 +35,8 @@
// * *
// *******************************
//
// $Id: BrachyRunAction.cc,v 1.13 2003/12/09 15:30:03 gunter Exp $
// GEANT4 tag $Name: geant4-06-00-patch-01 $
// $Id: BrachyRunAction.cc,v 1.14 2004/11/24 09:53:06 guatelli Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
#include "BrachyRunAction.hh"
@@ -70,11 +70,19 @@ BrachyRunAction::~BrachyRunAction()
delete runMessenger;
delete detector;
}
void BrachyRunAction::BeginOfRunAction(const G4Run*)
void BrachyRunAction::BeginOfRunAction(const G4Run* aRun)
{
G4cout << "### Run " << aRun -> GetRunID() << " start." << G4endl;
#ifdef G4ANALYSIS_USE
BrachyAnalysisManager* analysis = BrachyAnalysisManager::getInstance();
analysis->book();
G4int runNb = aRun -> GetRunID();
if (runNb == 0)
{
BrachyAnalysisManager* analysis = BrachyAnalysisManager::getInstance();
analysis->book();
}
else { G4cout << "The results of Run:"<< runNb << " are summed to the" <<
" results of the previous Run in brachytherapy.hbk" << G4endl;}
#endif
G4RunManager* runManager = G4RunManager::GetRunManager();
@@ -103,14 +111,7 @@ void BrachyRunAction::SelectEnergy(G4int choice)
void BrachyRunAction::EndOfRunAction(const G4Run* aRun)
{
#ifdef G4ANALYSIS_USE
BrachyAnalysisManager* analysis = BrachyAnalysisManager::getInstance();
#endif
G4cout << "number of event = " << aRun->GetNumberOfEvent() << G4endl;
#ifdef G4ANALYSIS_USE
analysis->finish();
#endif
delete factory;
}
@@ -24,7 +24,7 @@
// S.Guatelli
//
// $Id: BrachyRunMessenger.cc,v 1.4 2003/05/22 17:20:44 guatelli Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
//
//
@@ -29,7 +29,7 @@
// *******************************
//
// $Id: BrachyVisManager.cc,v 1.7 2003/11/12 16:44:13 johna Exp $
// GEANT4 tag $Name: geant4-06-00-patch-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
#ifdef G4VIS_USE