Import Geant4 10.3.0.beta source tree
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4PolarizationManager.hh 68046 2013-03-13 14:31:38Z gcosmo $
|
||||
// $Id: G4PolarizationManager.hh 97384 2016-06-02 09:59:17Z gcosmo $
|
||||
//
|
||||
// GEANT4 Class header file
|
||||
//
|
||||
@@ -52,7 +52,6 @@
|
||||
#include <map>
|
||||
|
||||
class G4LogicalVolume;
|
||||
class G4PolarizationManager;
|
||||
class G4PolarizationMessenger;
|
||||
|
||||
typedef std::map<G4LogicalVolume*,G4ThreeVector> PolarizationMap;
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
// $Id: G4PolarizationMessenger.hh 68046 2013-03-13 14:31:38Z gcosmo $
|
||||
// $Id: G4PolarizationMessenger.hh 96114 2016-03-16 18:51:33Z gcosmo $
|
||||
//
|
||||
// GEANT4 Class header file
|
||||
//
|
||||
@@ -61,12 +61,12 @@ class G4UIcommand;
|
||||
class G4PolarizationMessenger: public G4UImessenger
|
||||
{
|
||||
public:
|
||||
G4PolarizationMessenger(G4PolarizationManager* runMgr);
|
||||
explicit G4PolarizationMessenger(G4PolarizationManager* runMgr);
|
||||
~G4PolarizationMessenger();
|
||||
|
||||
public:
|
||||
void SetNewValue(G4UIcommand * command,G4String newValues);
|
||||
G4String GetCurrentValue(G4UIcommand * command);
|
||||
void SetNewValue(G4UIcommand * command,G4String newValues) override;
|
||||
G4String GetCurrentValue(G4UIcommand * command) override;
|
||||
private:
|
||||
G4PolarizationManager * polarizationManager;
|
||||
|
||||
|
||||
+8
-8
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
// $Id: G4PolarizedAnnihilationCrossSection.hh 68046 2013-03-13 14:31:38Z gcosmo $
|
||||
// $Id: G4PolarizedAnnihilationCrossSection.hh 96114 2016-03-16 18:51:33Z gcosmo $
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
// GEANT4 Class file
|
||||
@@ -60,22 +60,22 @@ public:
|
||||
public:
|
||||
virtual void Initialize(G4double eps, G4double gamma, G4double phi,
|
||||
const G4StokesVector & p0,const G4StokesVector & p1,
|
||||
G4int flag=0);
|
||||
G4int flag=0) override;
|
||||
|
||||
G4double DiceEpsilon();
|
||||
virtual G4double XSection(const G4StokesVector & pol2,
|
||||
const G4StokesVector & pol3);
|
||||
const G4StokesVector & pol3) override;
|
||||
virtual G4double TotalXSection(G4double xmin, G4double xmax,
|
||||
G4double y,
|
||||
const G4StokesVector & pol0,
|
||||
const G4StokesVector & pol1);
|
||||
const G4StokesVector & pol1) override;
|
||||
|
||||
// return expected mean polarisation
|
||||
G4StokesVector GetPol2();
|
||||
G4StokesVector GetPol3();
|
||||
G4StokesVector GetPol2() override;
|
||||
G4StokesVector GetPol3() override;
|
||||
|
||||
virtual G4double GetXmin(G4double y); // minimal energy fraction in TotalXSection
|
||||
virtual G4double GetXmax(G4double y); // maximal energy fraction in TotalXSection
|
||||
virtual G4double GetXmin(G4double y) override; // minimal energy fraction in TotalXSection
|
||||
virtual G4double GetXmax(G4double y) override; // maximal energy fraction in TotalXSection
|
||||
|
||||
G4double getVar(G4int );
|
||||
// test routine
|
||||
|
||||
+8
-7
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4PolarizedAnnihilationModel.hh 68046 2013-03-13 14:31:38Z gcosmo $
|
||||
// $Id: G4PolarizedAnnihilationModel.hh 96114 2016-03-16 18:51:33Z gcosmo $
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
@@ -65,18 +65,18 @@ class G4PolarizedAnnihilationModel : public G4eeToTwoGammaModel
|
||||
|
||||
public:
|
||||
|
||||
G4PolarizedAnnihilationModel(const G4ParticleDefinition* p = 0,
|
||||
explicit G4PolarizedAnnihilationModel(const G4ParticleDefinition* p = nullptr,
|
||||
const G4String& nam = "Polarized-Annihilation");
|
||||
|
||||
virtual ~G4PolarizedAnnihilationModel();
|
||||
|
||||
virtual void Initialise(const G4ParticleDefinition*,
|
||||
const G4DataVector&);
|
||||
const G4DataVector&) override;
|
||||
virtual G4double ComputeCrossSectionPerElectron(
|
||||
const G4ParticleDefinition*,
|
||||
G4double kinEnergy,
|
||||
G4double cut,
|
||||
G4double emax);
|
||||
G4double emax) override;
|
||||
void ComputeAsymmetriesPerElectron(G4double gammaEnergy,
|
||||
G4double & valueX,
|
||||
G4double & valueA,
|
||||
@@ -86,7 +86,7 @@ public:
|
||||
const G4MaterialCutsCouple*,
|
||||
const G4DynamicParticle*,
|
||||
G4double tmin,
|
||||
G4double maxEnergy);
|
||||
G4double maxEnergy) override;
|
||||
|
||||
// polarized routines
|
||||
inline void SetTargetPolarization(const G4ThreeVector & pTarget);
|
||||
@@ -98,8 +98,9 @@ public:
|
||||
private:
|
||||
|
||||
// hide assignment operator
|
||||
G4PolarizedAnnihilationModel & operator=(const G4PolarizedAnnihilationModel &right);
|
||||
G4PolarizedAnnihilationModel(const G4PolarizedAnnihilationModel&);
|
||||
G4PolarizedAnnihilationModel &
|
||||
operator=(const G4PolarizedAnnihilationModel &right) = delete;
|
||||
G4PolarizedAnnihilationModel(const G4PolarizedAnnihilationModel&) = delete;
|
||||
|
||||
G4PolarizedAnnihilationCrossSection * crossSectionCalculator;
|
||||
// incomming
|
||||
|
||||
+6
-6
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4PolarizedBhabhaCrossSection.hh 68046 2013-03-13 14:31:38Z gcosmo $
|
||||
// $Id: G4PolarizedBhabhaCrossSection.hh 96114 2016-03-16 18:51:33Z gcosmo $
|
||||
//
|
||||
// GEANT4 Class file
|
||||
//
|
||||
@@ -57,15 +57,15 @@ public:
|
||||
public:
|
||||
void Initialize(G4double x, G4double y, G4double phi,
|
||||
const G4StokesVector & p0,const G4StokesVector & p1,
|
||||
G4int flag=0);
|
||||
G4int flag=0) override;
|
||||
|
||||
G4double XSection(const G4StokesVector & pol2,const G4StokesVector & pol3);
|
||||
G4double XSection(const G4StokesVector & pol2,const G4StokesVector & pol3) override;
|
||||
G4double TotalXSection(G4double xmin, G4double xmax, G4double y,
|
||||
const G4StokesVector & pol0,
|
||||
const G4StokesVector & pol1);
|
||||
const G4StokesVector & pol1) override;
|
||||
// return expected mean polarisation
|
||||
G4StokesVector GetPol2();
|
||||
G4StokesVector GetPol3();
|
||||
G4StokesVector GetPol2() override;
|
||||
G4StokesVector GetPol3() override;
|
||||
private:
|
||||
G4double phi0;
|
||||
// - part depending on the polarization of the final positron
|
||||
|
||||
+5
-5
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4PolarizedBremsstrahlungCrossSection.hh 77295 2013-11-22 11:02:41Z gcosmo $
|
||||
// $Id: G4PolarizedBremsstrahlungCrossSection.hh 96114 2016-03-16 18:51:33Z gcosmo $
|
||||
//
|
||||
// GEANT4 Class file
|
||||
//
|
||||
@@ -58,13 +58,13 @@ class G4PolarizedBremsstrahlungCrossSection : public G4VPolarizedCrossSection
|
||||
virtual void Initialize(G4double eps, G4double X, G4double phi,
|
||||
const G4StokesVector & p0,
|
||||
const G4StokesVector & p1,
|
||||
G4int flag=0);
|
||||
G4int flag=0) override;
|
||||
virtual G4double XSection(const G4StokesVector & pol2,
|
||||
const G4StokesVector & pol3);
|
||||
const G4StokesVector & pol3) override;
|
||||
|
||||
// return expected mean polarisation
|
||||
G4StokesVector GetPol2(); // electron/positron
|
||||
G4StokesVector GetPol3(); // photon
|
||||
G4StokesVector GetPol2() override; // electron/positron
|
||||
G4StokesVector GetPol3() override; // photon
|
||||
private:
|
||||
|
||||
G4StokesVector theFinalLeptonPolarization;
|
||||
|
||||
@@ -74,34 +74,34 @@ class G4PolarizedCompton : public G4VEmProcess
|
||||
{
|
||||
public: // with description
|
||||
|
||||
G4PolarizedCompton(const G4String& processName ="pol-compt",
|
||||
explicit G4PolarizedCompton(const G4String& processName ="pol-compt",
|
||||
G4ProcessType type = fElectromagnetic);
|
||||
|
||||
virtual ~G4PolarizedCompton();
|
||||
|
||||
// true for Gamma only.
|
||||
virtual G4bool IsApplicable(const G4ParticleDefinition&);
|
||||
virtual G4bool IsApplicable(const G4ParticleDefinition&) override;
|
||||
|
||||
// Print few lines of informations about the process: validity range,
|
||||
virtual void PrintInfo();
|
||||
virtual void PrintInfo() override;
|
||||
|
||||
void SetModel(const G4String& name);
|
||||
|
||||
protected:
|
||||
|
||||
virtual void InitialiseProcess(const G4ParticleDefinition*);
|
||||
virtual void InitialiseProcess(const G4ParticleDefinition*) override;
|
||||
|
||||
// added for polarization treatment of polarized media:
|
||||
virtual void BuildPhysicsTable(const G4ParticleDefinition&);
|
||||
virtual void BuildPhysicsTable(const G4ParticleDefinition&) override;
|
||||
|
||||
virtual G4double GetMeanFreePath(const G4Track& aTrack,
|
||||
G4double previousStepSize,
|
||||
G4ForceCondition* condition);
|
||||
G4ForceCondition* condition) override;
|
||||
|
||||
virtual G4double PostStepGetPhysicalInteractionLength(
|
||||
const G4Track& track,
|
||||
G4double previousStepSize,
|
||||
G4ForceCondition* condition);
|
||||
G4ForceCondition* condition) override;
|
||||
|
||||
private:
|
||||
|
||||
@@ -117,8 +117,8 @@ private:
|
||||
|
||||
G4double ComputeSaturationFactor(const G4Track& aTrack);
|
||||
|
||||
G4PolarizedCompton& operator=(const G4PolarizedCompton &right);
|
||||
G4PolarizedCompton(const G4PolarizedCompton& );
|
||||
G4PolarizedCompton& operator=(const G4PolarizedCompton &right) = delete;
|
||||
G4PolarizedCompton(const G4PolarizedCompton& ) = delete;
|
||||
|
||||
G4bool buildAsymmetryTable;
|
||||
G4bool useAsymmetryTable;
|
||||
|
||||
+8
-7
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4PolarizedComptonCrossSection.hh 68046 2013-03-13 14:31:38Z gcosmo $
|
||||
// $Id: G4PolarizedComptonCrossSection.hh 96114 2016-03-16 18:51:33Z gcosmo $
|
||||
//
|
||||
// GEANT4 Class file
|
||||
//
|
||||
@@ -62,29 +62,30 @@ public:
|
||||
public:
|
||||
// prepares the ingredients for the calculation of a polarization
|
||||
// dependent differential cross section
|
||||
// the kinematics is fixed (X - incoming photon energy in units of electron mass, eps - outgoing photon energy in unit of incoming photon energy,
|
||||
// the kinematics is fixed (X - incoming photon energy in units of electron mass,
|
||||
// eps - outgoing photon energy in unit of incoming photon energy,
|
||||
// and polarization of the incoming particles fixed (p0, p1)
|
||||
// a flag specifies the extent to which polarization is taken
|
||||
// into account
|
||||
virtual void Initialize(G4double eps, G4double X, G4double phi,
|
||||
const G4StokesVector & p0,
|
||||
const G4StokesVector & p1,
|
||||
G4int flag=0);
|
||||
G4int flag=0) override;
|
||||
|
||||
// returns the differential cross section for a given polarisation state
|
||||
// of the final state particles to be used in the calculation of the
|
||||
// polarization transfer
|
||||
// the calculation has to be initialised by calling Initialize()
|
||||
// prior to the first call of this function (see above)
|
||||
G4double XSection(const G4StokesVector & pol2,const G4StokesVector & pol3);
|
||||
G4double XSection(const G4StokesVector & pol2,const G4StokesVector & pol3) override;
|
||||
// total cross section
|
||||
G4double TotalXSection(G4double xmin, G4double xmax, G4double y,
|
||||
const G4StokesVector & pol0,const G4StokesVector & pol1);
|
||||
const G4StokesVector & pol0,const G4StokesVector & pol1) override;
|
||||
|
||||
public:
|
||||
// return expected mean polarisation
|
||||
G4StokesVector GetPol2();
|
||||
G4StokesVector GetPol3();
|
||||
G4StokesVector GetPol2() override;
|
||||
G4StokesVector GetPol3() override;
|
||||
private:
|
||||
void DefineCoefficients(const G4StokesVector & pol0,
|
||||
const G4StokesVector & pol1);
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4PolarizedComptonModel.hh 93113 2015-10-07 07:49:04Z gcosmo $
|
||||
// $Id: G4PolarizedComptonModel.hh 96114 2016-03-16 18:51:33Z gcosmo $
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
@@ -63,7 +63,7 @@ class G4PolarizedComptonModel : public G4KleinNishinaCompton
|
||||
|
||||
public:
|
||||
|
||||
G4PolarizedComptonModel(const G4ParticleDefinition* p = 0,
|
||||
explicit G4PolarizedComptonModel(const G4ParticleDefinition* p = nullptr,
|
||||
const G4String& nam = "Polarized-Compton");
|
||||
|
||||
virtual G4double ComputeCrossSectionPerAtom(
|
||||
@@ -72,7 +72,7 @@ public:
|
||||
G4double Z,
|
||||
G4double A,
|
||||
G4double cut,
|
||||
G4double emax);
|
||||
G4double emax) override;
|
||||
G4double ComputeAsymmetryPerAtom(G4double gammaEnergy, G4double Z);
|
||||
virtual ~G4PolarizedComptonModel();
|
||||
|
||||
@@ -80,7 +80,7 @@ public:
|
||||
const G4MaterialCutsCouple*,
|
||||
const G4DynamicParticle*,
|
||||
G4double tmin,
|
||||
G4double maxEnergy);
|
||||
G4double maxEnergy) override;
|
||||
|
||||
// polarized routines
|
||||
inline void SetTargetPolarization(const G4ThreeVector & pTarget);
|
||||
@@ -95,8 +95,8 @@ private:
|
||||
G4double onecos, G4double phi, const G4String) const;
|
||||
|
||||
// hide assignment operator
|
||||
G4PolarizedComptonModel & operator=(const G4PolarizedComptonModel &right);
|
||||
G4PolarizedComptonModel(const G4PolarizedComptonModel&);
|
||||
G4PolarizedComptonModel & operator=(const G4PolarizedComptonModel &right) = delete;
|
||||
G4PolarizedComptonModel(const G4PolarizedComptonModel&) = delete;
|
||||
|
||||
G4PolarizedComptonCrossSection * crossSectionCalculator;
|
||||
// incomming
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4PolarizedGammaConversion.hh 68046 2013-03-13 14:31:38Z gcosmo $
|
||||
// $Id: G4PolarizedGammaConversion.hh 96114 2016-03-16 18:51:33Z gcosmo $
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
@@ -64,26 +64,27 @@ class G4PolarizedGammaConversion : public G4VEmProcess
|
||||
{
|
||||
public: // with description
|
||||
|
||||
G4PolarizedGammaConversion(const G4String& processName ="pol-conv",
|
||||
explicit G4PolarizedGammaConversion(const G4String& processName ="pol-conv",
|
||||
G4ProcessType type = fElectromagnetic);
|
||||
|
||||
virtual ~G4PolarizedGammaConversion();
|
||||
|
||||
// true for Gamma only.
|
||||
G4bool IsApplicable(const G4ParticleDefinition&);
|
||||
G4bool IsApplicable(const G4ParticleDefinition&) override;
|
||||
|
||||
// Print few lines of informations about the process: validity range,
|
||||
virtual void PrintInfo();
|
||||
virtual void PrintInfo() override;
|
||||
|
||||
protected:
|
||||
|
||||
virtual void InitialiseProcess(const G4ParticleDefinition*);
|
||||
virtual void InitialiseProcess(const G4ParticleDefinition*) override;
|
||||
|
||||
private:
|
||||
|
||||
// hide assignment operator as private
|
||||
G4PolarizedGammaConversion& operator=(const G4PolarizedGammaConversion &right);
|
||||
G4PolarizedGammaConversion(const G4PolarizedGammaConversion& );
|
||||
G4PolarizedGammaConversion&
|
||||
operator=(const G4PolarizedGammaConversion &right) = delete;
|
||||
G4PolarizedGammaConversion(const G4PolarizedGammaConversion& ) = delete;
|
||||
|
||||
G4bool isInitialised;
|
||||
};
|
||||
|
||||
+4
-4
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4PolarizedGammaConversionModel.hh 68046 2013-03-13 14:31:38Z gcosmo $
|
||||
// $Id: G4PolarizedGammaConversionModel.hh 96114 2016-03-16 18:51:33Z gcosmo $
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
@@ -60,18 +60,18 @@ class G4PolarizedGammaConversionModel : public G4BetheHeitlerModel
|
||||
|
||||
public:
|
||||
|
||||
G4PolarizedGammaConversionModel(const G4ParticleDefinition* p = 0,
|
||||
explicit G4PolarizedGammaConversionModel(const G4ParticleDefinition* p = nullptr,
|
||||
const G4String& nam = "polConv");
|
||||
|
||||
virtual ~G4PolarizedGammaConversionModel();
|
||||
|
||||
virtual void Initialise(const G4ParticleDefinition*, const G4DataVector&);
|
||||
virtual void Initialise(const G4ParticleDefinition*, const G4DataVector&) override;
|
||||
|
||||
virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*,
|
||||
const G4MaterialCutsCouple*,
|
||||
const G4DynamicParticle*,
|
||||
G4double tmin,
|
||||
G4double maxEnergy);
|
||||
G4double maxEnergy) override;
|
||||
|
||||
inline const G4Element* SelectedAtom();
|
||||
|
||||
|
||||
+7
-6
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4PolarizedMollerBhabhaModel.hh 68046 2013-03-13 14:31:38Z gcosmo $
|
||||
// $Id: G4PolarizedMollerBhabhaModel.hh 96114 2016-03-16 18:51:33Z gcosmo $
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
// GEANT4 Class header file
|
||||
@@ -61,7 +61,7 @@ class G4PolarizedMollerBhabhaModel : public G4MollerBhabhaModel
|
||||
|
||||
public:
|
||||
|
||||
G4PolarizedMollerBhabhaModel(const G4ParticleDefinition* p =0,
|
||||
explicit G4PolarizedMollerBhabhaModel(const G4ParticleDefinition* p = nullptr,
|
||||
const G4String& nam = "PolarizedMollerBhabha");
|
||||
|
||||
virtual ~G4PolarizedMollerBhabhaModel();
|
||||
@@ -70,13 +70,13 @@ public:
|
||||
const G4ParticleDefinition*,
|
||||
G4double kinEnergy,
|
||||
G4double cut,
|
||||
G4double emax);
|
||||
G4double emax) override;
|
||||
|
||||
virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*,
|
||||
const G4MaterialCutsCouple*,
|
||||
const G4DynamicParticle*,
|
||||
G4double tmin,
|
||||
G4double maxEnergy);
|
||||
G4double maxEnergy) override;
|
||||
|
||||
|
||||
// polarization access routines (may go if using a modified ParticleChange)
|
||||
@@ -108,8 +108,9 @@ public:
|
||||
private:
|
||||
|
||||
// copy constructor and hide assignment operator
|
||||
G4PolarizedMollerBhabhaModel(G4PolarizedMollerBhabhaModel &);
|
||||
G4PolarizedMollerBhabhaModel & operator=(const G4PolarizedMollerBhabhaModel &right);
|
||||
G4PolarizedMollerBhabhaModel(G4PolarizedMollerBhabhaModel &) = delete;
|
||||
G4PolarizedMollerBhabhaModel &
|
||||
operator=(const G4PolarizedMollerBhabhaModel &right) = delete;
|
||||
|
||||
G4StokesVector theBeamPolarization;
|
||||
G4StokesVector theTargetPolarization;
|
||||
|
||||
+6
-6
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4PolarizedMollerCrossSection.hh 68046 2013-03-13 14:31:38Z gcosmo $
|
||||
// $Id: G4PolarizedMollerCrossSection.hh 96114 2016-03-16 18:51:33Z gcosmo $
|
||||
//
|
||||
// GEANT4 Class file
|
||||
//
|
||||
@@ -58,14 +58,14 @@ public:
|
||||
public:
|
||||
void Initialize(G4double x, G4double y, G4double phi,
|
||||
const G4StokesVector & p0,const G4StokesVector & p1,
|
||||
G4int flag=0);
|
||||
G4int flag=0) override;
|
||||
|
||||
G4double XSection(const G4StokesVector & pol2,const G4StokesVector & pol3);
|
||||
G4double XSection(const G4StokesVector & pol2,const G4StokesVector & pol3) override;
|
||||
G4double TotalXSection(G4double xmin, G4double xmax, G4double y,
|
||||
const G4StokesVector & pol0,const G4StokesVector & pol1);
|
||||
const G4StokesVector & pol0,const G4StokesVector & pol1) override;
|
||||
// return expected mean polarisation
|
||||
G4StokesVector GetPol2();
|
||||
G4StokesVector GetPol3();
|
||||
G4StokesVector GetPol2() override;
|
||||
G4StokesVector GetPol3() override;
|
||||
private:
|
||||
G4double phi0;
|
||||
// - part depending on the polarization of the final electron P1
|
||||
|
||||
+6
-5
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4PolarizedPEEffectCrossSection.hh 68046 2013-03-13 14:31:38Z gcosmo $
|
||||
// $Id: G4PolarizedPEEffectCrossSection.hh 96114 2016-03-16 18:51:33Z gcosmo $
|
||||
//
|
||||
// GEANT4 Class file
|
||||
//
|
||||
@@ -56,14 +56,15 @@ public:
|
||||
virtual void Initialize(G4double aGammaE, G4double aLept0E, G4double sintheta,
|
||||
const G4StokesVector & beamPol,
|
||||
const G4StokesVector & ,
|
||||
G4int flag=0);
|
||||
G4int flag=0) override;
|
||||
|
||||
G4double XSection(const G4StokesVector & pol2,const G4StokesVector & pol3);
|
||||
G4double XSection(const G4StokesVector & pol2,
|
||||
const G4StokesVector & pol3) override;
|
||||
|
||||
public:
|
||||
// return expected mean polarisation
|
||||
G4StokesVector GetPol2();
|
||||
G4StokesVector GetPol3();
|
||||
G4StokesVector GetPol2() override;
|
||||
G4StokesVector GetPol3() override;
|
||||
private:
|
||||
G4StokesVector theFinalElectronPolarization;
|
||||
};
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4PolarizedPEEffectModel.hh 68046 2013-03-13 14:31:38Z gcosmo $
|
||||
// $Id: G4PolarizedPEEffectModel.hh 96114 2016-03-16 18:51:33Z gcosmo $
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
@@ -66,17 +66,18 @@ class G4PolarizedPEEffectModel : public G4PEEffectFluoModel
|
||||
|
||||
public:
|
||||
|
||||
G4PolarizedPEEffectModel(const G4ParticleDefinition* p = 0,
|
||||
explicit G4PolarizedPEEffectModel(const G4ParticleDefinition* p = nullptr,
|
||||
const G4String& nam = "Polarized-PhotoElectric");
|
||||
|
||||
void Initialise(const G4ParticleDefinition* pd, const G4DataVector& dv);
|
||||
void Initialise(const G4ParticleDefinition* pd,
|
||||
const G4DataVector& dv) override;
|
||||
virtual ~G4PolarizedPEEffectModel();
|
||||
|
||||
virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*,
|
||||
const G4MaterialCutsCouple*,
|
||||
const G4DynamicParticle*,
|
||||
G4double tmin,
|
||||
G4double maxEnergy);
|
||||
G4double maxEnergy) override;
|
||||
|
||||
// polarized routines
|
||||
/*
|
||||
@@ -90,8 +91,9 @@ public:
|
||||
private:
|
||||
|
||||
// hide assignment operator
|
||||
G4PolarizedPEEffectModel & operator=(const G4PolarizedPEEffectModel &right);
|
||||
G4PolarizedPEEffectModel(const G4PolarizedPEEffectModel&);
|
||||
G4PolarizedPEEffectModel &
|
||||
operator=(const G4PolarizedPEEffectModel &right) = delete;
|
||||
G4PolarizedPEEffectModel(const G4PolarizedPEEffectModel&) = delete;
|
||||
|
||||
G4PolarizedPEEffectCrossSection * crossSectionCalculator;
|
||||
// incomming
|
||||
|
||||
+5
-5
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4PolarizedPairProductionCrossSection.hh 77295 2013-11-22 11:02:41Z gcosmo $
|
||||
// $Id: G4PolarizedPairProductionCrossSection.hh 96114 2016-03-16 18:51:33Z gcosmo $
|
||||
//
|
||||
// GEANT4 Class file
|
||||
//
|
||||
@@ -57,13 +57,13 @@ class G4PolarizedPairProductionCrossSection : public G4VPolarizedCrossSection
|
||||
virtual void Initialize(G4double eps, G4double X, G4double phi,
|
||||
const G4StokesVector & p0,
|
||||
const G4StokesVector & p1,
|
||||
G4int flag=0);
|
||||
G4int flag=0) override;
|
||||
virtual G4double XSection(const G4StokesVector & pol2,
|
||||
const G4StokesVector & pol3);
|
||||
const G4StokesVector & pol3) override;
|
||||
|
||||
// return expected mean polarisation
|
||||
G4StokesVector GetPol2(); // electron/positron
|
||||
G4StokesVector GetPol3(); // photon
|
||||
G4StokesVector GetPol2() override; // electron/positron
|
||||
G4StokesVector GetPol3() override; // photon
|
||||
private:
|
||||
|
||||
G4StokesVector theFinalElectronPolarization;
|
||||
|
||||
+5
-5
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4PolarizedPhotoElectricEffect.hh 68046 2013-03-13 14:31:38Z gcosmo $
|
||||
// $Id: G4PolarizedPhotoElectricEffect.hh 96114 2016-03-16 18:51:33Z gcosmo $
|
||||
//
|
||||
//
|
||||
//------------------ G4PolarizedPhotoElectricEffect physics process ------------------
|
||||
@@ -87,20 +87,20 @@ class G4PolarizedPhotoElectricEffect : public G4VEmProcess
|
||||
{
|
||||
public: // with description
|
||||
|
||||
G4PolarizedPhotoElectricEffect(const G4String& processName ="pol-phot",
|
||||
explicit G4PolarizedPhotoElectricEffect(const G4String& processName ="pol-phot",
|
||||
G4ProcessType type = fElectromagnetic);
|
||||
|
||||
virtual ~G4PolarizedPhotoElectricEffect();
|
||||
|
||||
// true for Gamma only.
|
||||
G4bool IsApplicable(const G4ParticleDefinition&);
|
||||
G4bool IsApplicable(const G4ParticleDefinition&) override;
|
||||
|
||||
// Print few lines of informations about the process: validity range,
|
||||
void PrintInfo();
|
||||
void PrintInfo() override;
|
||||
|
||||
protected:
|
||||
|
||||
void InitialiseProcess(const G4ParticleDefinition*);
|
||||
void InitialiseProcess(const G4ParticleDefinition*) override;
|
||||
|
||||
private:
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4ePolarizedBremsstrahlung.hh 68046 2013-03-13 14:31:38Z gcosmo $
|
||||
// $Id: G4ePolarizedBremsstrahlung.hh 96114 2016-03-16 18:51:33Z gcosmo $
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
@@ -53,12 +53,12 @@ class G4ePolarizedBremsstrahlung : public G4eBremsstrahlung
|
||||
|
||||
public:
|
||||
|
||||
G4ePolarizedBremsstrahlung(const G4String& name = "pol-eBrem");
|
||||
explicit G4ePolarizedBremsstrahlung(const G4String& name = "pol-eBrem");
|
||||
|
||||
protected:
|
||||
|
||||
virtual void InitialiseEnergyLossProcess(const G4ParticleDefinition*,
|
||||
const G4ParticleDefinition*);
|
||||
const G4ParticleDefinition*) override;
|
||||
|
||||
};
|
||||
#endif
|
||||
|
||||
+4
-4
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4ePolarizedBremsstrahlungModel.hh 75601 2013-11-04 13:08:15Z gcosmo $
|
||||
// $Id: G4ePolarizedBremsstrahlungModel.hh 96114 2016-03-16 18:51:33Z gcosmo $
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
@@ -60,18 +60,18 @@ class G4ePolarizedBremsstrahlungModel : public G4SeltzerBergerModel
|
||||
|
||||
public:
|
||||
|
||||
G4ePolarizedBremsstrahlungModel(const G4ParticleDefinition* p=0,
|
||||
explicit G4ePolarizedBremsstrahlungModel(const G4ParticleDefinition* p=nullptr,
|
||||
const G4String& nam = "PolBrem");
|
||||
|
||||
virtual ~G4ePolarizedBremsstrahlungModel();
|
||||
|
||||
virtual void Initialise(const G4ParticleDefinition*, const G4DataVector&);
|
||||
virtual void Initialise(const G4ParticleDefinition*, const G4DataVector&) override;
|
||||
|
||||
virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*,
|
||||
const G4MaterialCutsCouple*,
|
||||
const G4DynamicParticle*,
|
||||
G4double tmin,
|
||||
G4double maxEnergy);
|
||||
G4double maxEnergy) override;
|
||||
|
||||
inline const G4Element* SelectedAtom();
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4ePolarizedIonisation.hh 93113 2015-10-07 07:49:04Z gcosmo $
|
||||
// $Id: G4ePolarizedIonisation.hh 96114 2016-03-16 18:51:33Z gcosmo $
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
// GEANT4 Class header file
|
||||
@@ -68,34 +68,34 @@ class G4ePolarizedIonisation : public G4VEnergyLossProcess
|
||||
|
||||
public:
|
||||
|
||||
G4ePolarizedIonisation(const G4String& name = "pol-eIoni");
|
||||
explicit G4ePolarizedIonisation(const G4String& name = "pol-eIoni");
|
||||
|
||||
virtual ~G4ePolarizedIonisation();
|
||||
|
||||
virtual G4bool IsApplicable(const G4ParticleDefinition& p);
|
||||
virtual G4bool IsApplicable(const G4ParticleDefinition& p) override;
|
||||
|
||||
// Print out of the class parameters
|
||||
virtual void PrintInfo();
|
||||
virtual void PrintInfo() override;
|
||||
|
||||
protected:
|
||||
|
||||
virtual void InitialiseEnergyLossProcess(const G4ParticleDefinition*,
|
||||
const G4ParticleDefinition*);
|
||||
const G4ParticleDefinition*) override;
|
||||
|
||||
virtual G4double MinPrimaryEnergy(const G4ParticleDefinition*,
|
||||
const G4Material*, G4double cut);
|
||||
const G4Material*, G4double cut) override;
|
||||
|
||||
// for polarization
|
||||
virtual G4double PostStepGetPhysicalInteractionLength(
|
||||
const G4Track& track,
|
||||
G4double previousStepSize,
|
||||
G4ForceCondition* condition);
|
||||
G4ForceCondition* condition) override;
|
||||
|
||||
virtual G4double GetMeanFreePath(const G4Track& track,
|
||||
G4double previousStepSize,
|
||||
G4ForceCondition* condition);
|
||||
G4ForceCondition* condition) override;
|
||||
|
||||
virtual void BuildPhysicsTable(const G4ParticleDefinition&);
|
||||
virtual void BuildPhysicsTable(const G4ParticleDefinition&) override;
|
||||
|
||||
protected:
|
||||
|
||||
@@ -115,8 +115,9 @@ private:
|
||||
|
||||
G4double ComputeSaturationFactor(const G4Track& aTrack);
|
||||
|
||||
G4ePolarizedIonisation & operator=(const G4ePolarizedIonisation &right);
|
||||
G4ePolarizedIonisation(const G4ePolarizedIonisation&);
|
||||
G4ePolarizedIonisation &
|
||||
operator=(const G4ePolarizedIonisation &right) = delete;
|
||||
G4ePolarizedIonisation(const G4ePolarizedIonisation&) = delete;
|
||||
|
||||
G4ParticleDefinition* theElectron;
|
||||
G4VEmFluctuationModel* flucModel;
|
||||
|
||||
+6
-6
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4eplusPolarizedAnnihilation.hh 93113 2015-10-07 07:49:04Z gcosmo $
|
||||
// $Id: G4eplusPolarizedAnnihilation.hh 96114 2016-03-16 18:51:33Z gcosmo $
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
@@ -65,23 +65,23 @@ class G4eplusPolarizedAnnihilation : public G4eplusAnnihilation
|
||||
|
||||
public:
|
||||
|
||||
G4eplusPolarizedAnnihilation(const G4String& name = "pol-annihil");
|
||||
explicit G4eplusPolarizedAnnihilation(const G4String& name = "pol-annihil");
|
||||
|
||||
virtual ~G4eplusPolarizedAnnihilation();
|
||||
|
||||
// Print out of the class parameters
|
||||
virtual void PrintInfo();
|
||||
virtual void PrintInfo() override;
|
||||
|
||||
virtual G4double GetMeanFreePath(const G4Track& track,
|
||||
G4double previousStepSize,
|
||||
G4ForceCondition* condition);
|
||||
G4ForceCondition* condition) override;
|
||||
|
||||
virtual G4double PostStepGetPhysicalInteractionLength(
|
||||
const G4Track& track,
|
||||
G4double previousStepSize,
|
||||
G4ForceCondition* condition);
|
||||
G4ForceCondition* condition) override;
|
||||
|
||||
virtual void BuildPhysicsTable(const G4ParticleDefinition&);
|
||||
virtual void BuildPhysicsTable(const G4ParticleDefinition&) override;
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user