Import Geant4 10.3.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-12-09 12:35:28 +01:00
parent 4ec577e5c4
commit a3452e42ac
3514 changed files with 210500 additions and 89628 deletions
@@ -26,7 +26,7 @@
/// \file polarisation/Pol01/include/DetectorConstruction.hh
/// \brief Definition of the DetectorConstruction class
//
// $Id: DetectorConstruction.hh 68753 2013-04-05 10:26:04Z gcosmo $
// $Id: DetectorConstruction.hh 98772 2016-08-09 14:25:31Z gcosmo $
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -63,33 +63,31 @@ public:
public:
const G4VPhysicalVolume* GetWorld() {return pWorld;};
const G4VPhysicalVolume* GetBox() {return pBox;};
const G4VPhysicalVolume* GetWorld() {return fWorld;};
const G4VPhysicalVolume* GetBox() {return fBox;};
G4double GetWorldSize() {return worldSize;};
G4double GetBoxSizeXY() {return boxSizeXY;};
G4double GetBoxSizeZ() {return boxSizeZ;};
G4Material* GetMaterial() {return aMaterial;};
G4double GetWorldSize() {return fWorldSize;};
G4double GetBoxSizeXY() {return fBoxSizeXY;};
G4double GetBoxSizeZ() {return fBoxSizeZ;};
G4Material* GetMaterial() {return fTargetMaterial;};
void PrintParameters();
private:
G4VPhysicalVolume* pWorld;
G4VPhysicalVolume* pBox;
G4VPhysicalVolume* fWorld;
G4VPhysicalVolume* fBox;
G4double boxSizeXY;
G4double boxSizeZ;
G4double worldSize;
G4Material* aMaterial;
G4Material* wMaterial;
G4double fBoxSizeXY;
G4double fBoxSizeZ;
G4double fWorldSize;
G4Material* fTargetMaterial;
G4Material* fWorldMaterial;
DetectorMessenger* detectorMessenger;
DetectorMessenger* fMessenger;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#endif
@@ -26,7 +26,7 @@
/// \file polarisation/Pol01/include/DetectorMessenger.hh
/// \brief Definition of the DetectorMessenger class
//
// $Id: DetectorMessenger.hh 68753 2013-04-05 10:26:04Z gcosmo $
// $Id: DetectorMessenger.hh 98772 2016-08-09 14:25:31Z gcosmo $
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -52,21 +52,20 @@ 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* SizeXYCmd;
G4UIcmdWithADoubleAndUnit* SizeZCmd;
G4UIcmdWithoutParameter* UpdateCmd;
G4UIdirectory* fTestemDir;
G4UIdirectory* fDetDir;
G4UIcmdWithAString* fMaterCmd;
G4UIcmdWithADoubleAndUnit* fSizeXYCmd;
G4UIcmdWithADoubleAndUnit* fSizeZCmd;
G4UIcmdWithoutParameter* fUpdateCmd;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#endif
@@ -26,7 +26,7 @@
/// \file polarisation/Pol01/include/EventAction.hh
/// \brief Definition of the EventAction class
//
// $Id: EventAction.hh 86418 2014-11-11 10:39:38Z gcosmo $
// $Id: EventAction.hh 98772 2016-08-09 14:25:31Z gcosmo $
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -50,11 +50,9 @@ public:
virtual void EndOfEventAction(const G4Event*);
private:
RunAction* runAction;
RunAction* fRunAction;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#endif
@@ -27,7 +27,7 @@
/// \brief Definition of the PhysListEmPolarized class
//
//
// $Id: PhysListEmPolarized.hh 68753 2013-04-05 10:26:04Z gcosmo $
// $Id: PhysListEmPolarized.hh 98772 2016-08-09 14:25:31Z gcosmo $
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -48,22 +48,14 @@ class PhysListEmPolarized : public G4VPhysicsConstructor
public:
// This method is dummy for physics
void ConstructParticle() {};
virtual void ConstructParticle() {};
// This method will be invoked in the Construct() method.
// each physics process will be instantiated and
// registered to the process manager of each particle type
void ConstructProcess();
virtual void ConstructProcess();
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#endif
@@ -27,7 +27,7 @@
/// \brief Definition of the PhysicsList class
//
//
// $Id: PhysicsList.hh 86418 2014-11-11 10:39:38Z gcosmo $
// $Id: PhysicsList.hh 98772 2016-08-09 14:25:31Z gcosmo $
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//
@@ -62,13 +62,12 @@ public:
private:
G4VPhysicsConstructor* emPhysicsList;
G4String emName;
G4VPhysicsConstructor* fEmPhysicsList;
G4String fEmName;
PhysicsListMessenger* pMessenger;
PhysicsListMessenger* fMessenger;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#endif
@@ -26,7 +26,7 @@
/// \file polarisation/Pol01/include/PhysicsListMessenger.hh
/// \brief Definition of the PhysicsListMessenger class
//
// $Id: PhysicsListMessenger.hh 86418 2014-11-11 10:39:38Z gcosmo $
// $Id: PhysicsListMessenger.hh 98772 2016-08-09 14:25:31Z gcosmo $
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -54,14 +54,13 @@ public:
private:
PhysicsList* pPhysicsList;
PhysicsList* fPhysicsList;
G4UIdirectory* physDir;
G4UIcmdWithAString* pListCmd;
G4UIdirectory* fPhysDir;
G4UIcmdWithAString* fListCmd;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#endif
@@ -26,7 +26,7 @@
/// \file polarisation/Pol01/include/PrimaryGeneratorAction.hh
/// \brief Definition of the PrimaryGeneratorAction class
//
// $Id: PrimaryGeneratorAction.hh 68753 2013-04-05 10:26:04Z gcosmo $
// $Id: PrimaryGeneratorAction.hh 98772 2016-08-09 14:25:31Z gcosmo $
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -50,16 +50,14 @@ class PrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
~PrimaryGeneratorAction();
public:
void GeneratePrimaries(G4Event*);
G4ParticleGun* GetParticleGun() {return particleGun;};
virtual void GeneratePrimaries(G4Event*);
G4ParticleGun* GetParticleGun() {return fParticleGun;};
private:
G4ParticleGun* particleGun;
DetectorConstruction* detector;
G4ParticleGun* fParticleGun;
DetectorConstruction* fDetector;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#endif
@@ -26,7 +26,7 @@
/// \file polarisation/Pol01/include/ProcessesCount.hh
/// \brief Definition of the ProcessesCount class
//
// $Id: ProcessesCount.hh 68753 2013-04-05 10:26:04Z gcosmo $
// $Id: ProcessesCount.hh 98772 2016-08-09 14:25:31Z gcosmo $
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -39,30 +39,24 @@
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
class OneProcessCount
class ProcessCount
{
public:
OneProcessCount(G4String name) {Name=name; Counter=0;};
~OneProcessCount() {};
ProcessCount(G4String name) {fName=name; fCounter=0;};
~ProcessCount() {};
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......
typedef std::vector<OneProcessCount*> ProcessesCount;
typedef std::vector<ProcessCount*> ProcessesCount;
#endif
@@ -26,7 +26,7 @@
/// \file polarisation/Pol01/include/RunAction.hh
/// \brief Definition of the RunAction class
//
// $Id: RunAction.hh 86418 2014-11-11 10:39:38Z gcosmo $
// $Id: RunAction.hh 98772 2016-08-09 14:25:31Z gcosmo $
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -60,11 +60,11 @@ class RunAction : public G4UserRunAction
void PrintResults(G4int totalNumberOfEvents);
void Clear();
private:
G4int currentNumber;
G4int totalNumber, totalNumber2;
G4double sumEnergy, sumEnergy2;
G4double sumPolarization, sumPolarization2;
G4double sumCosTheta, sumCosTheta2;
G4int fCurrentNumber;
G4int fTotalNumber, fTotalNumber2;
G4double fSumEnergy, fSumEnergy2;
G4double fSumPolarization, fSumPolarization2;
G4double fSumCosTheta, fSumCosTheta2;
};
public:
@@ -72,8 +72,8 @@ public:
RunAction(DetectorConstruction*, PrimaryGeneratorAction*);
virtual ~RunAction();
void BeginOfRunAction(const G4Run*);
void EndOfRunAction(const G4Run*);
virtual void BeginOfRunAction(const G4Run*);
virtual void EndOfRunAction(const G4Run*);
void CountProcesses(G4String);
@@ -92,20 +92,19 @@ private:
const G4ParticleDefinition* fElectron;
const G4ParticleDefinition* fPositron;
DetectorConstruction* detector;
PrimaryGeneratorAction* primary;
ProcessesCount* ProcCounter;
DetectorConstruction* fDetector;
PrimaryGeneratorAction* fPrimary;
ProcessesCount* fProcCounter;
G4AnalysisManager* fAnalysisManager;
G4int totalEventCount;
G4int fTotalEventCount;
ParticleStatistics photonStats;
ParticleStatistics electronStats;
ParticleStatistics positronStats;
ParticleStatistics fPhotonStats;
ParticleStatistics fElectronStats;
ParticleStatistics fPositronStats;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#endif
@@ -26,7 +26,7 @@
/// \file polarisation/Pol01/include/StepMax.hh
/// \brief Definition of the StepMax class
//
// $Id: StepMax.hh 68753 2013-04-05 10:26:04Z gcosmo $
// $Id: StepMax.hh 98772 2016-08-09 14:25:31Z gcosmo $
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -36,10 +36,10 @@
#include "globals.hh"
#include "G4VDiscreteProcess.hh"
#include "G4ParticleDefinition.hh"
#include "G4Step.hh"
class StepMaxMessenger;
class G4ParticleDefinition;
class G4Step;
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -50,23 +50,23 @@ class StepMax : public G4VDiscreteProcess
StepMax(const G4String& processName ="stepMax");
~StepMax();
G4bool IsApplicable(const G4ParticleDefinition&);
virtual G4bool IsApplicable(const G4ParticleDefinition&);
void SetMaxStep(G4double);
G4double GetMaxStep() {return MaxChargedStep;};
G4double GetMaxStep() {return fMaxChargedStep;};
G4double PostStepGetPhysicalInteractionLength( const G4Track& track,
virtual G4double PostStepGetPhysicalInteractionLength( const G4Track& track,
G4double previousStepSize,
G4ForceCondition* condition);
G4VParticleChange* PostStepDoIt(const G4Track&, const G4Step&);
virtual G4VParticleChange* PostStepDoIt(const G4Track&, const G4Step&);
G4double GetMeanFreePath(const G4Track&, G4double, G4ForceCondition*)
virtual G4double GetMeanFreePath(const G4Track&, G4double, G4ForceCondition*)
{return 0.;}; // it is not needed here !
private:
G4double MaxChargedStep;
StepMaxMessenger* pMess;
G4double fMaxChargedStep;
StepMaxMessenger* fMessenger;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -26,7 +26,7 @@
/// \file polarisation/Pol01/include/StepMaxMessenger.hh
/// \brief Definition of the StepMaxMessenger class
//
// $Id: StepMaxMessenger.hh 68753 2013-04-05 10:26:04Z gcosmo $
// $Id: StepMaxMessenger.hh 98772 2016-08-09 14:25:31Z gcosmo $
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -48,11 +48,11 @@ class StepMaxMessenger: public G4UImessenger
StepMaxMessenger(StepMax*);
~StepMaxMessenger();
void SetNewValue(G4UIcommand*, G4String);
virtual void SetNewValue(G4UIcommand*, G4String);
private:
StepMax* pStepMax;
G4UIcmdWithADoubleAndUnit* StepMaxCmd;
StepMax* fStepMax;
G4UIcmdWithADoubleAndUnit* fStepMaxCmd;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -26,7 +26,7 @@
/// \file polarisation/Pol01/include/SteppingAction.hh
/// \brief Definition of the SteppingAction class
//
// $Id: SteppingAction.hh 86418 2014-11-11 10:39:38Z gcosmo $
// $Id: SteppingAction.hh 98772 2016-08-09 14:25:31Z gcosmo $
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -53,9 +53,9 @@ public:
virtual void UserSteppingAction(const G4Step*);
private:
DetectorConstruction* detector;
PrimaryGeneratorAction* primary;
RunAction* runAction;
DetectorConstruction* fDetector;
PrimaryGeneratorAction* fPrimary;
RunAction* fRunAction;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......