Import Geant4 5.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 16:57:27 +02:00
parent 330b82b769
commit 37fff30d2e
5733 changed files with 263867 additions and 74574 deletions
@@ -23,7 +23,7 @@
//
// $Id: DetectorConstruction.cc,v 1.1 2002/05/23 13:30:36 maire Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: DetectorMessenger.cc,v 1.1 2002/05/23 13:30:36 maire Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: DetectorMessenger.cc,v 1.3 2002/12/12 12:48:16 maire Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -42,40 +42,40 @@
DetectorMessenger::DetectorMessenger(DetectorConstruction * Det)
:Detector(Det)
{
detDir = new G4UIdirectory("/calor/");
detDir->SetGuidance(" detector control.");
testemDir = new G4UIdirectory("/testem/");
testemDir->SetGuidance(" detector control.");
MaterCmd = new G4UIcmdWithAString("/calor/setMat",this);
MaterCmd = new G4UIcmdWithAString("/testem/det/setMat",this);
MaterCmd->SetGuidance("Select material of the box.");
MaterCmd->SetParameterName("choice",false);
MaterCmd->AvailableForStates(PreInit,Idle);
MaterCmd->AvailableForStates(G4State_PreInit,G4State_Idle);
SizeCmd = new G4UIcmdWithADoubleAndUnit("/calor/setSize",this);
SizeCmd = new G4UIcmdWithADoubleAndUnit("/testem/det/setSize",this);
SizeCmd->SetGuidance("Set size of the box");
SizeCmd->SetParameterName("Size",false);
SizeCmd->SetRange("Size>0.");
SizeCmd->SetUnitCategory("Length");
SizeCmd->AvailableForStates(PreInit,Idle);
SizeCmd->AvailableForStates(G4State_PreInit,G4State_Idle);
MagFieldCmd = new G4UIcmdWithADoubleAndUnit("/calor/setField",this);
MagFieldCmd = new G4UIcmdWithADoubleAndUnit("/testem/det/setField",this);
MagFieldCmd->SetGuidance("Define magnetic field.");
MagFieldCmd->SetGuidance("Magnetic field will be in Z direction.");
MagFieldCmd->SetParameterName("Bz",false);
MagFieldCmd->SetUnitCategory("Magnetic flux density");
MagFieldCmd->AvailableForStates(PreInit,Idle);
MagFieldCmd->AvailableForStates(G4State_PreInit,G4State_Idle);
UpdateCmd = new G4UIcmdWithoutParameter("/calor/update",this);
UpdateCmd = new G4UIcmdWithoutParameter("/testem/det/update",this);
UpdateCmd->SetGuidance("Update calorimeter geometry.");
UpdateCmd->SetGuidance("This command MUST be applied before \"beamOn\" ");
UpdateCmd->SetGuidance("if you changed geometrical value(s).");
UpdateCmd->AvailableForStates(Idle);
UpdateCmd->AvailableForStates(G4State_Idle);
MaxStepCmd = new G4UIcmdWithADoubleAndUnit("/tracking/stepMax",this);
MaxStepCmd = new G4UIcmdWithADoubleAndUnit("/testem/tracking/stepMax",this);
MaxStepCmd->SetGuidance("Set max allowed step size");
MaxStepCmd->SetParameterName("Size",false);
MaxStepCmd->SetRange("Size>0.");
MaxStepCmd->SetUnitCategory("Length");
MaxStepCmd->AvailableForStates(Idle);
MaxStepCmd->AvailableForStates(G4State_Idle);
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -87,7 +87,7 @@ DetectorMessenger::~DetectorMessenger()
delete MagFieldCmd;
delete UpdateCmd;
delete MaxStepCmd;
delete detDir;
delete testemDir;
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -22,7 +22,7 @@
//
//
// $Id: EventAction.cc,v 1.1 2002/05/23 13:30:41 maire Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: EventActionMessenger.cc,v 1.1 2002/05/23 13:30:42 maire Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: EventActionMessenger.cc,v 1.3 2002/12/12 12:48:16 maire Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -41,19 +41,19 @@
EventActionMessenger::EventActionMessenger(EventAction* EvAct)
:eventAction(EvAct)
{
DrawCmd = new G4UIcmdWithAString("/event/drawTracks",this);
DrawCmd = new G4UIcmdWithAString("/testem/event/drawTracks",this);
DrawCmd->SetGuidance("Draw the tracks in the event");
DrawCmd->SetGuidance(" Choice : none,charged, all");
DrawCmd->SetParameterName("choice",true);
DrawCmd->SetDefaultValue("all");
DrawCmd->SetCandidates("none charged all");
DrawCmd->AvailableForStates(Idle);
DrawCmd->AvailableForStates(G4State_Idle);
PrintCmd = new G4UIcmdWithAnInteger("/event/printModulo",this);
PrintCmd = new G4UIcmdWithAnInteger("/testem/event/printModulo",this);
PrintCmd->SetGuidance("Print events modulo n");
PrintCmd->SetParameterName("EventNb",false);
PrintCmd->SetRange("EventNb>0");
PrintCmd->AvailableForStates(Idle);
PrintCmd->AvailableForStates(G4State_Idle);
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -22,7 +22,7 @@
//
//
// $Id: PhysicsList.cc,v 1.1 2002/05/23 13:30:42 maire Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: PhysicsListMessenger.cc,v 1.1 2002/05/23 13:30:43 maire Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: PhysicsListMessenger.cc,v 1.3 2002/12/12 12:48:16 maire Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -41,12 +41,12 @@ PhysicsListMessenger::PhysicsListMessenger(PhysicsList* physL)
:physList(physL)
{
GammaToMuPairFac=new G4UIcmdWithADouble
("/run/process/setGammaToMuPairFac",this);
("/testem/phys/setGammaToMuPairFac",this);
GammaToMuPairFac->SetGuidance(
"Set factor to artificially increase the GammaToMuPair cross section");
GammaToMuPairFac->SetParameterName("GammaToMuPairFac",false);
GammaToMuPairFac->SetRange("GammaToMuPairFac>0.0");
GammaToMuPairFac->AvailableForStates(PreInit,Idle);
GammaToMuPairFac->AvailableForStates(G4State_PreInit,G4State_Idle);
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -22,7 +22,7 @@
//
//
// $Id: PrimaryGeneratorAction.cc,v 1.1 2002/05/23 13:30:43 maire Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: PrimaryGeneratorMessenger.cc,v 1.1 2002/05/23 13:30:43 maire Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: PrimaryGeneratorMessenger.cc,v 1.3 2002/12/12 12:48:16 maire Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -40,12 +40,12 @@ PrimaryGeneratorMessenger::PrimaryGeneratorMessenger(
PrimaryGeneratorAction* Gun)
:Action(Gun)
{
RndmCmd = new G4UIcmdWithADouble("/gun/rndm",this);
RndmCmd = new G4UIcmdWithADouble("/testem/gun/rndm",this);
RndmCmd->SetGuidance("random lateral extension on the beam");
RndmCmd->SetGuidance("in fraction of 0.5*sizeYZ");
RndmCmd->SetParameterName("rBeam",false);
RndmCmd->SetRange("rBeam>=0.&&rBeam<=1.");
RndmCmd->AvailableForStates(Idle);
RndmCmd->AvailableForStates(G4State_Idle);
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: RunAction.cc,v 1.2 2002/06/05 14:21:00 maire Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: RunAction.cc,v 1.3 2002/12/12 12:48:17 maire Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -40,15 +40,7 @@
#include "Randomize.hh"
#ifndef G4NOHIST
#include "AIDA/IAnalysisFactory.h"
#include "AIDA/ITreeFactory.h"
#include "AIDA/ITree.h"
#include "AIDA/IHistogramFactory.h"
#include "AIDA/IHistogram1D.h"
#include "AIDA/IAxis.h"
#include "AIDA/IAnnotation.h"
#include "AIDA/ITupleFactory.h"
#include "AIDA/ITuple.h"
#include "AIDA/AIDA.h"
#endif
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -69,24 +61,26 @@ void RunAction::bookHisto()
{
#ifndef G4NOHIST
// Creating the analysis factory
IAnalysisFactory* af = AIDA_createAnalysisFactory();
AIDA::IAnalysisFactory* af = AIDA_createAnalysisFactory();
// Creating the tree factory
ITreeFactory* tf = af->createTreeFactory();
AIDA::ITreeFactory* tf = af->createTreeFactory();
// Creating a tree mapped to an hbook file.
tree = tf->create("testem6.paw", false, false, "hbook");
G4bool readOnly = false;
G4bool createNew = true;
tree = tf->create("testem6.paw", "hbook", readOnly, createNew);
// Creating a histogram factory, whose histograms will be handled by the tree
IHistogramFactory* hf = af->createHistogramFactory(*tree);
AIDA::IHistogramFactory* hf = af->createHistogramFactory(*tree);
// Creating histograms
histo[0] = hf->create1D("1","1/(1+(theta+[g]+)**2)",100, 0 ,1.);
histo[1] = hf->create1D("2","log10(theta+ [g]+)", 100,-3.,1.);
histo[2] = hf->create1D("3","log10(theta- [g]-)", 100,-3.,1.);
histo[3] = hf->create1D("4","log10(theta+ [g]+ -theta- [g]-)",100,-3.,1.);
histo[4] = hf->create1D("5","xPlus" ,100,0.,1.);
histo[5] = hf->create1D("6","xMinus",100,0.,1.);
histo[0] = hf->createHistogram1D("1","1/(1+(theta+[g]+)**2)",100, 0 ,1.);
histo[1] = hf->createHistogram1D("2","log10(theta+ [g]+)", 100,-3.,1.);
histo[2] = hf->createHistogram1D("3","log10(theta- [g]-)", 100,-3.,1.);
histo[3] = hf->createHistogram1D("4","log10(theta+ [g]+ -theta- [g]-)",100,-3.,1.);
histo[4] = hf->createHistogram1D("5","xPlus" ,100,0.,1.);
histo[5] = hf->createHistogram1D("6","xMinus",100,0.,1.);
delete hf;
delete tf;
@@ -22,7 +22,7 @@
//
//
// $Id: SteppingAction.cc,v 1.2 2002/06/05 14:21:00 maire Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: SteppingVerbose.cc,v 1.1 2002/05/23 13:30:45 maire Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
+5 -3
View File
@@ -21,10 +21,10 @@
// ********************************************************************
//
//
// $Id: VisManager.cc,v 1.1 2002/05/23 13:30:45 maire Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: VisManager.cc,v 1.2 2002/11/13 21:40:02 duns Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
//
//
// John Allison 24th January 1998.
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -41,6 +41,7 @@
#include "G4DAWNFILE.hh"
#include "G4GAGTree.hh"
#include "G4HepRepFile.hh"
#include "G4HepRep.hh"
#include "G4RayTracer.hh"
#include "G4VRML1File.hh"
#include "G4VRML2File.hh"
@@ -97,6 +98,7 @@ void VisManager::RegisterGraphicsSystems () {
RegisterGraphicsSystem (new G4DAWNFILE);
RegisterGraphicsSystem (new G4GAGTree);
RegisterGraphicsSystem (new G4HepRepFile);
RegisterGraphicsSystem (new G4HepRep);
RegisterGraphicsSystem (new G4RayTracer);
RegisterGraphicsSystem (new G4VRML1File);
RegisterGraphicsSystem (new G4VRML2File);