Import Geant4 10.6.0 source tree
This commit is contained in:
@@ -16,9 +16,12 @@ committal in the CVS repository !
|
||||
* Reverse chronological order (last date on top), please *
|
||||
----------------------------------------------------------
|
||||
|
||||
08 November 19: V. Ivanchenko (xrays-V10-05-02)
|
||||
- G4SynchrotronRadiation, G4VTransitionRadiation - fixed deregistration
|
||||
|
||||
03 April 19: V. Ivanchenko (xrays-V10-05-01)
|
||||
- G4Cerenkov, G4Scintillation, G4SynchrotronRadiation, G4VTransitionRadiation
|
||||
added Register/DeRegister mechnism
|
||||
- G4SynchrotronRadiation, G4VTransitionRadiation - added
|
||||
Register/DeRegister mechnism
|
||||
|
||||
11 March 19: D. Sawkey (xrays-V10-05-00)
|
||||
- G4Cerenkov: increase protection against infinite loops (see xrays-V10-04-04)
|
||||
|
||||
@@ -59,6 +59,7 @@
|
||||
#include "G4Positron.hh"
|
||||
|
||||
class G4VEmAngularDistribution;
|
||||
class G4LossTableManager;
|
||||
|
||||
class G4SynchrotronRadiation : public G4VDiscreteProcess
|
||||
{
|
||||
@@ -94,9 +95,10 @@ public:
|
||||
private:
|
||||
|
||||
G4SynchrotronRadiation &
|
||||
operator=(const G4SynchrotronRadiation &right) = delete;
|
||||
G4SynchrotronRadiation(const G4SynchrotronRadiation&) = delete;
|
||||
operator=(const G4SynchrotronRadiation &right);
|
||||
G4SynchrotronRadiation(const G4SynchrotronRadiation&);
|
||||
|
||||
G4LossTableManager* theManager;
|
||||
G4VEmAngularDistribution* genAngle;
|
||||
|
||||
G4ParticleDefinition* theGamma;
|
||||
|
||||
@@ -47,6 +47,7 @@ class G4Material;
|
||||
class G4Region;
|
||||
class G4VTRModel;
|
||||
class G4particleDefinition;
|
||||
class G4LossTableManager;
|
||||
|
||||
class G4VTransitionRadiation : public G4VDiscreteProcess
|
||||
{
|
||||
@@ -82,8 +83,10 @@ public:
|
||||
|
||||
// hide assignment operator
|
||||
G4VTransitionRadiation &
|
||||
operator=(const G4VTransitionRadiation &right) = delete;
|
||||
G4VTransitionRadiation(const G4VTransitionRadiation&) = delete;
|
||||
operator=(const G4VTransitionRadiation &right);
|
||||
G4VTransitionRadiation(const G4VTransitionRadiation&);
|
||||
|
||||
G4LossTableManager* theManager;
|
||||
|
||||
std::vector<const G4Material*> materials;
|
||||
std::vector<G4double> steps;
|
||||
|
||||
@@ -69,7 +69,8 @@ G4SynchrotronRadiation::G4SynchrotronRadiation(const G4String& processName,
|
||||
FirstTime1 = true;
|
||||
genAngle = nullptr;
|
||||
SetAngularGenerator(new G4DipBustGenerator());
|
||||
G4LossTableManager::Instance()->Register(this);
|
||||
theManager = G4LossTableManager::Instance();
|
||||
theManager->Register(this);
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
@@ -80,7 +81,7 @@ G4SynchrotronRadiation::G4SynchrotronRadiation(const G4String& processName,
|
||||
G4SynchrotronRadiation::~G4SynchrotronRadiation()
|
||||
{
|
||||
delete genAngle;
|
||||
G4LossTableManager::Instance()->DeRegister(this);
|
||||
theManager->DeRegister(this);
|
||||
}
|
||||
|
||||
/////////////////////////////// METHODS /////////////////////////////////
|
||||
|
||||
@@ -56,7 +56,8 @@ G4VTransitionRadiation::G4VTransitionRadiation( const G4String& processName,
|
||||
{
|
||||
SetProcessSubType(fTransitionRadiation);
|
||||
Clear();
|
||||
G4LossTableManager::Instance()->Register(this);
|
||||
theManager = G4LossTableManager::Instance();
|
||||
theManager->Register(this);
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
@@ -64,7 +65,7 @@ G4VTransitionRadiation::G4VTransitionRadiation( const G4String& processName,
|
||||
G4VTransitionRadiation::~G4VTransitionRadiation()
|
||||
{
|
||||
Clear();
|
||||
G4LossTableManager::Instance()->DeRegister(this);
|
||||
theManager->DeRegister(this);
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user