Import Geant4 9.6.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 17:01:34 +02:00
parent b1eb5424d2
commit e2d2f9810a
10384 changed files with 698580 additions and 628834 deletions
@@ -23,8 +23,10 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: DetectorConstruction.hh,v 1.3 2006-06-29 16:56:34 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
/// \file electromagnetic/TestEm6/include/DetectorConstruction.hh
/// \brief Definition of the DetectorConstruction class
//
// $Id$
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -52,7 +54,7 @@ class DetectorConstruction : public G4VUserDetectorConstruction
public:
G4VPhysicalVolume* Construct();
virtual G4VPhysicalVolume* Construct();
void SetSize (G4double);
void SetMaterial (G4String);
@@ -64,24 +66,24 @@ class DetectorConstruction : public G4VUserDetectorConstruction
public:
const
G4VPhysicalVolume* GetWorld() {return pBox;};
G4VPhysicalVolume* GetWorld() {return fP_Box;};
G4double GetSize() {return BoxSize;};
G4Material* GetMaterial() {return aMaterial;};
G4double GetSize() {return fBoxSize;};
G4Material* GetMaterial() {return fMaterial;};
void PrintParameters();
private:
G4VPhysicalVolume* pBox;
G4LogicalVolume* lBox;
G4VPhysicalVolume* fP_Box;
G4LogicalVolume* fL_Box;
G4double BoxSize;
G4Material* aMaterial;
G4UniformMagField* magField;
G4UserLimits* userLimits;
G4double fBoxSize;
G4Material* fMaterial;
G4UniformMagField* fMagField;
G4UserLimits* fUserLimits;
DetectorMessenger* detectorMessenger;
DetectorMessenger* fDetectorMessenger;
private:
@@ -23,8 +23,10 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: DetectorMessenger.hh,v 1.4 2006-06-29 16:56:37 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
/// \file electromagnetic/TestEm6/include/DetectorMessenger.hh
/// \brief Definition of the DetectorMessenger class
//
// $Id$
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -50,19 +52,19 @@ class DetectorMessenger: public G4UImessenger
DetectorMessenger(DetectorConstruction* );
~DetectorMessenger();
void SetNewValue(G4UIcommand*, G4String);
virtual void SetNewValue(G4UIcommand*, G4String);
private:
DetectorConstruction* Detector;
DetectorConstruction* fDetector;
G4UIdirectory* testemDir;
G4UIdirectory* detDir;
G4UIcmdWithAString* MaterCmd;
G4UIcmdWithADoubleAndUnit* SizeCmd;
G4UIcmdWithADoubleAndUnit* MagFieldCmd;
G4UIcmdWithADoubleAndUnit* MaxStepCmd;
G4UIcmdWithoutParameter* UpdateCmd;
G4UIdirectory* fTestemDir;
G4UIdirectory* fDetDir;
G4UIcmdWithAString* fMaterCmd;
G4UIcmdWithADoubleAndUnit* fSizeCmd;
G4UIcmdWithADoubleAndUnit* fMagFieldCmd;
G4UIcmdWithADoubleAndUnit* fMaxStepCmd;
G4UIcmdWithoutParameter* fUpdateCmd;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -23,8 +23,10 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: EventAction.hh,v 1.3 2006-06-29 16:56:40 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
/// \file electromagnetic/TestEm6/include/EventAction.hh
/// \brief Definition of the EventAction class
//
// $Id$
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -46,17 +48,17 @@ class EventAction : public G4UserEventAction
~EventAction();
public:
void BeginOfEventAction(const G4Event*);
void EndOfEventAction(const G4Event*);
virtual void BeginOfEventAction(const G4Event*);
virtual void EndOfEventAction(const G4Event*);
void SetDrawFlag(G4String val) {drawFlag = val;};
void SetPrintModulo(G4int val) {printModulo = val;};
void SetDrawFlag(G4String val) { fDrawFlag = val;};
void SetPrintModulo(G4int val) { fPrintModulo = val;};
private:
G4String drawFlag;
G4int printModulo;
EventActionMessenger* eventMessenger;
G4String fDrawFlag;
G4int fPrintModulo;
EventActionMessenger* fEventMessenger;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -23,8 +23,10 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: EventActionMessenger.hh,v 1.3 2006-06-29 16:56:43 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
/// \file electromagnetic/TestEm6/include/EventActionMessenger.hh
/// \brief Definition of the EventActionMessenger class
//
// $Id$
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -48,13 +50,13 @@ class EventActionMessenger: public G4UImessenger
EventActionMessenger(EventAction*);
~EventActionMessenger();
void SetNewValue(G4UIcommand*, G4String);
virtual void SetNewValue(G4UIcommand*, G4String);
private:
EventAction* eventAction;
G4UIdirectory* eventDir;
G4UIcmdWithAString* DrawCmd;
G4UIcmdWithAnInteger* PrintCmd;
EventAction* fEventAction;
G4UIdirectory* fEventDir;
G4UIcmdWithAString* fDrawCmd;
G4UIcmdWithAnInteger* fPrintCmd;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -23,8 +23,10 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: PhysicsList.hh,v 1.8 2009-11-27 14:54:58 hbu Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
/// \file electromagnetic/TestEm6/include/PhysicsList.hh
/// \brief Definition of the PhysicsList class
//
// $Id$
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -49,7 +51,7 @@ class PhysicsList: public G4VUserPhysicsList
~PhysicsList();
// Construct particles
void ConstructParticle();
virtual void ConstructParticle();
void ConstructBosons();
void ConstructLeptons();
void ConstructHadrons();
@@ -57,7 +59,7 @@ class PhysicsList: public G4VUserPhysicsList
void SetCuts();
// Construct processes and register them
void ConstructProcess();
virtual void ConstructProcess();
void ConstructGeneral();
void ConstructEM();
@@ -66,7 +68,7 @@ class PhysicsList: public G4VUserPhysicsList
void SetAnnihiToHadronFac(G4double);
private:
PhysicsListMessenger* pMes;
PhysicsListMessenger* fMes;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -23,8 +23,10 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: PhysicsListMessenger.hh,v 1.6 2009-11-27 14:54:58 hbu Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
/// \file electromagnetic/TestEm6/include/PhysicsListMessenger.hh
/// \brief Definition of the PhysicsListMessenger class
//
// $Id$
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -48,16 +50,16 @@ class PhysicsListMessenger: public G4UImessenger
PhysicsListMessenger(PhysicsList*);
~PhysicsListMessenger();
void SetNewValue(G4UIcommand*, G4String);
virtual void SetNewValue(G4UIcommand*, G4String);
private:
PhysicsList* physList;
PhysicsList* fPhysList;
G4UIdirectory* physDir;
G4UIcmdWithADouble* GammaToMuPairFacCmd;
G4UIcmdWithADouble* AnnihiToMuPairFacCmd;
G4UIcmdWithADouble* AnnihiToHadronFacCmd;
G4UIdirectory* fPhysDir;
G4UIcmdWithADouble* fGammaToMuPairFacCmd;
G4UIcmdWithADouble* fAnnihiToMuPairFacCmd;
G4UIcmdWithADouble* fAnnihiToHadronFacCmd;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -23,8 +23,10 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: PrimaryGeneratorAction.hh,v 1.3 2006-06-29 16:56:49 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
/// \file electromagnetic/TestEm6/include/PrimaryGeneratorAction.hh
/// \brief Definition of the PrimaryGeneratorAction class
//
// $Id$
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -49,14 +51,14 @@ class PrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
~PrimaryGeneratorAction();
public:
void SetRndmBeam(G4double val) {rndmBeam = val;}
void GeneratePrimaries(G4Event*);
void SetRndmBeam(G4double val) {fRndmBeam = val;}
virtual void GeneratePrimaries(G4Event*);
private:
G4ParticleGun* particleGun;
DetectorConstruction* Detector;
G4double rndmBeam;
PrimaryGeneratorMessenger* gunMessenger;
G4ParticleGun* fParticleGun;
DetectorConstruction* fDetector;
G4double fRndmBeam;
PrimaryGeneratorMessenger* fGunMessenger;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -23,8 +23,10 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: PrimaryGeneratorMessenger.hh,v 1.3 2006-06-29 16:56:52 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
/// \file electromagnetic/TestEm6/include/PrimaryGeneratorMessenger.hh
/// \brief Definition of the PrimaryGeneratorMessenger class
//
// $Id$
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -47,12 +49,12 @@ class PrimaryGeneratorMessenger: public G4UImessenger
PrimaryGeneratorMessenger(PrimaryGeneratorAction*);
~PrimaryGeneratorMessenger();
void SetNewValue(G4UIcommand*, G4String);
virtual void SetNewValue(G4UIcommand*, G4String);
private:
PrimaryGeneratorAction* Action;
G4UIdirectory* gunDir;
G4UIcmdWithADouble* RndmCmd;
PrimaryGeneratorAction* fAction;
G4UIdirectory* fGunDir;
G4UIcmdWithADouble* fRndmCmd;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -23,8 +23,10 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: ProcessesCount.hh,v 1.1 2009-11-27 14:54:58 hbu Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
/// \file electromagnetic/TestEm6/include/ProcessesCount.hh
/// \brief Definition of the ProcessesCount class
//
// $Id$
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -40,17 +42,17 @@
class OneProcessCount
{
public:
OneProcessCount(G4String name) {Name=name; Counter=0;};
OneProcessCount(G4String name) {fName=name; fCounter=0;};
~OneProcessCount() {};
public:
G4String GetName() {return Name;};
G4int GetCounter() {return Counter;};
void Count() {Counter++;};
G4String GetName() {return fName;};
G4int GetCounter() {return fCounter;};
void Count() {fCounter++;};
private:
G4String Name; // process name
G4int Counter; // process counter
G4String fName; // process name
G4int fCounter; // process counter
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -23,8 +23,10 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: RunAction.hh,v 1.10 2009-11-27 14:54:58 hbu Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
/// \file electromagnetic/TestEm6/include/RunAction.hh
/// \brief Definition of the RunAction class
//
// $Id$
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -36,16 +38,13 @@
#include "ProcessesCount.hh"
#include "globals.hh"
#include "g4root.hh"
////#include "g4xml.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
class G4Run;
namespace AIDA {
class IAnalysisFactory;
class ITree;
class IHistogram1D;
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
class RunAction : public G4UserRunAction
@@ -55,17 +54,12 @@ class RunAction : public G4UserRunAction
~RunAction();
public:
void BeginOfRunAction(const G4Run*);
void EndOfRunAction(const G4Run*);
virtual void BeginOfRunAction(const G4Run*);
virtual void EndOfRunAction(const G4Run*);
void CountProcesses(G4String);
AIDA::IHistogram1D* GetHisto(G4int id) {return histo[id];}
private:
AIDA::IAnalysisFactory* af;
AIDA::ITree* tree;
AIDA::IHistogram1D* histo[6];
ProcessesCount* ProcCounter;
ProcessesCount* fProcCounter;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -23,8 +23,10 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: StackingAction.hh,v 1.1 2009-11-27 14:54:58 hbu Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
/// \file electromagnetic/TestEm6/include/StackingAction.hh
/// \brief Definition of the StackingAction class
//
// $Id$
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -46,7 +48,7 @@ class StackingAction : public G4UserStackingAction
StackingAction();
~StackingAction();
G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track* );
virtual G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track* );
};
@@ -23,8 +23,10 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: SteppingAction.hh,v 1.4 2006-06-29 16:56:56 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
/// \file electromagnetic/TestEm6/include/SteppingAction.hh
/// \brief Definition of the SteppingAction class
//
// $Id$
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -43,13 +45,13 @@ class SteppingAction : public G4UserSteppingAction
{
public:
SteppingAction(RunAction*);
~SteppingAction();
~SteppingAction();
void UserSteppingAction(const G4Step*);
virtual void UserSteppingAction(const G4Step*);
private:
RunAction* runAction;
G4double muonMass;
RunAction* fRunAction;
G4double fMuonMass;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -23,8 +23,10 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: SteppingVerbose.hh,v 1.3 2006-06-29 16:56:58 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
/// \file electromagnetic/TestEm6/include/SteppingVerbose.hh
/// \brief Definition of the SteppingVerbose class
//
// $Id$
//
// This class manages the verbose outputs in G4SteppingManager.
// It inherits from G4SteppingVerbose.
@@ -47,8 +49,8 @@ public:
SteppingVerbose();
~SteppingVerbose();
void StepInfo();
void TrackingStarted();
virtual void StepInfo();
virtual void TrackingStarted();
};