Import Geant4 10.6.0.beta source tree
This commit is contained in:
@@ -72,26 +72,6 @@
|
||||
|
||||
#include "G4Cerenkov.hh"
|
||||
|
||||
/////////////////////////
|
||||
// Class Implementation
|
||||
/////////////////////////
|
||||
|
||||
//G4bool G4Cerenkov::fTrackSecondariesFirst = false;
|
||||
//G4double G4Cerenkov::fMaxBetaChange = 0.;
|
||||
//G4int G4Cerenkov::fMaxPhotons = 0;
|
||||
|
||||
//////////////
|
||||
// Operators
|
||||
//////////////
|
||||
|
||||
// G4Cerenkov::operator=(const G4Cerenkov &right)
|
||||
// {
|
||||
// }
|
||||
|
||||
/////////////////
|
||||
// Constructors
|
||||
/////////////////
|
||||
|
||||
G4Cerenkov::G4Cerenkov(const G4String& processName, G4ProcessType type)
|
||||
: G4VProcess(processName, type),
|
||||
fTrackSecondariesFirst(false),
|
||||
@@ -109,14 +89,6 @@ G4Cerenkov::G4Cerenkov(const G4String& processName, G4ProcessType type)
|
||||
}
|
||||
}
|
||||
|
||||
// G4Cerenkov::G4Cerenkov(const G4Cerenkov &right)
|
||||
// {
|
||||
// }
|
||||
|
||||
////////////////
|
||||
// Destructors
|
||||
////////////////
|
||||
|
||||
G4Cerenkov::~G4Cerenkov()
|
||||
{
|
||||
if (thePhysicsTable != nullptr) {
|
||||
@@ -125,20 +97,12 @@ G4Cerenkov::~G4Cerenkov()
|
||||
}
|
||||
}
|
||||
|
||||
////////////
|
||||
// Methods
|
||||
////////////
|
||||
|
||||
G4bool G4Cerenkov::IsApplicable(const G4ParticleDefinition& aParticleType)
|
||||
{
|
||||
G4bool result = false;
|
||||
|
||||
if (aParticleType.GetPDGCharge() != 0.0 &&
|
||||
aParticleType.GetPDGMass() != 0.0 &&
|
||||
aParticleType.GetParticleName() != "chargedgeantino" &&
|
||||
!aParticleType.IsShortLived() ) { result = true; }
|
||||
|
||||
return result;
|
||||
return (aParticleType.GetPDGCharge() != 0.0 &&
|
||||
aParticleType.GetPDGMass() != 0.0 &&
|
||||
aParticleType.GetParticleName() != "chargedgeantino" &&
|
||||
!aParticleType.IsShortLived() ) ? true : false;
|
||||
}
|
||||
|
||||
void G4Cerenkov::SetTrackSecondariesFirst(const G4bool state)
|
||||
|
||||
@@ -76,36 +76,6 @@
|
||||
|
||||
#include "G4Scintillation.hh"
|
||||
|
||||
/////////////////////////
|
||||
// Class Implementation
|
||||
/////////////////////////
|
||||
|
||||
//////////////////////
|
||||
// static data members
|
||||
//////////////////////
|
||||
|
||||
|
||||
//G4bool G4Scintillation::fTrackSecondariesFirst = false;
|
||||
//G4bool G4Scintillation::fFiniteRiseTime = false;
|
||||
//G4double G4Scintillation::fYieldFactor = 1.0;
|
||||
//G4double G4Scintillation::fExcitationRatio = 1.0;
|
||||
//G4bool G4Scintillation::fScintillationByParticleType = false;
|
||||
//G4bool G4Scintillation::fScintillationTrackInfo = false;
|
||||
//G4bool G4Scintillation::fStackingFlag = true;
|
||||
//G4EmSaturation* G4Scintillation::fEmSaturation = NULL;
|
||||
|
||||
//////////////
|
||||
// Operators
|
||||
//////////////
|
||||
|
||||
// G4Scintillation::operator=(const G4Scintillation &right)
|
||||
// {
|
||||
// }
|
||||
|
||||
/////////////////
|
||||
// Constructors
|
||||
/////////////////
|
||||
|
||||
G4Scintillation::G4Scintillation(const G4String& processName,
|
||||
G4ProcessType type)
|
||||
: G4VRestDiscreteProcess(processName, type) ,
|
||||
@@ -134,10 +104,6 @@ G4Scintillation::G4Scintillation(const G4String& processName,
|
||||
}
|
||||
}
|
||||
|
||||
////////////////
|
||||
// Destructors
|
||||
////////////////
|
||||
|
||||
G4Scintillation::~G4Scintillation()
|
||||
{
|
||||
if (fFastIntegralTable != nullptr) {
|
||||
@@ -150,16 +116,10 @@ G4Scintillation::~G4Scintillation()
|
||||
}
|
||||
}
|
||||
|
||||
////////////
|
||||
// Methods
|
||||
////////////
|
||||
|
||||
G4bool G4Scintillation::IsApplicable(const G4ParticleDefinition& aParticleType)
|
||||
{
|
||||
if (aParticleType.GetParticleName() == "opticalphoton") return false;
|
||||
if (aParticleType.IsShortLived()) return false;
|
||||
|
||||
return true;
|
||||
return (aParticleType.GetPDGCharge() == 0.0 ||
|
||||
aParticleType.IsShortLived()) ? false : true;
|
||||
}
|
||||
|
||||
void G4Scintillation::BuildPhysicsTable(const G4ParticleDefinition&)
|
||||
|
||||
@@ -47,6 +47,7 @@
|
||||
#include "G4EmProcessSubType.hh"
|
||||
#include "G4DipBustGenerator.hh"
|
||||
#include "G4Log.hh"
|
||||
#include "G4LossTableManager.hh"
|
||||
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
@@ -68,6 +69,7 @@ G4SynchrotronRadiation::G4SynchrotronRadiation(const G4String& processName,
|
||||
FirstTime1 = true;
|
||||
genAngle = nullptr;
|
||||
SetAngularGenerator(new G4DipBustGenerator());
|
||||
G4LossTableManager::Instance()->Register(this);
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
@@ -77,7 +79,8 @@ G4SynchrotronRadiation::G4SynchrotronRadiation(const G4String& processName,
|
||||
|
||||
G4SynchrotronRadiation::~G4SynchrotronRadiation()
|
||||
{
|
||||
delete genAngle;
|
||||
delete genAngle;
|
||||
G4LossTableManager::Instance()->DeRegister(this);
|
||||
}
|
||||
|
||||
/////////////////////////////// METHODS /////////////////////////////////
|
||||
|
||||
@@ -41,6 +41,7 @@
|
||||
#include "G4Region.hh"
|
||||
#include "G4TransportationManager.hh"
|
||||
#include "G4EmProcessSubType.hh"
|
||||
#include "G4LossTableManager.hh"
|
||||
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
@@ -55,6 +56,7 @@ G4VTransitionRadiation::G4VTransitionRadiation( const G4String& processName,
|
||||
{
|
||||
SetProcessSubType(fTransitionRadiation);
|
||||
Clear();
|
||||
G4LossTableManager::Instance()->Register(this);
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
@@ -62,6 +64,7 @@ G4VTransitionRadiation::G4VTransitionRadiation( const G4String& processName,
|
||||
G4VTransitionRadiation::~G4VTransitionRadiation()
|
||||
{
|
||||
Clear();
|
||||
G4LossTableManager::Instance()->DeRegister(this);
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user