Import Geant4 10.4.0 source tree

This commit is contained in:
Gabriele Cosmo
2017-12-08 12:52:30 +01:00
parent 98e455a940
commit fc6af9e721
2166 changed files with 276760 additions and 100873 deletions
+13 -20
View File
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id: G4Decay.hh 78547 2014-01-07 09:40:38Z gcosmo $
// $Id: G4Decay.hh 105727 2017-08-16 12:47:05Z gcosmo $
//
//
// ------------------------------------------------------------
@@ -88,21 +88,21 @@ class G4Decay : public G4VRestDiscreteProcess
virtual G4VParticleChange *PostStepDoIt(
const G4Track& aTrack,
const G4Step& aStep
);
) override;
virtual G4VParticleChange* AtRestDoIt(
const G4Track& aTrack,
const G4Step& aStep
);
) override;
virtual void BuildPhysicsTable(const G4ParticleDefinition&);
virtual void BuildPhysicsTable(const G4ParticleDefinition&) override;
// In G4Decay, thePhysicsTable stores values of
// beta * std::sqrt( 1 - beta*beta)
// as a function of normalized kinetic enregy (=Ekin/mass),
// becasuse this table is universal for all particle types,
virtual G4bool IsApplicable(const G4ParticleDefinition&);
virtual G4bool IsApplicable(const G4ParticleDefinition&) override;
// returns "true" if the decay process can be applied to
// the particle type.
@@ -123,13 +123,13 @@ class G4Decay : public G4VRestDiscreteProcess
virtual G4double AtRestGetPhysicalInteractionLength(
const G4Track& track,
G4ForceCondition* condition
);
) override;
virtual G4double PostStepGetPhysicalInteractionLength(
const G4Track& track,
G4double previousStepSize,
G4ForceCondition* condition
);
) override;
protected: // With Description
// GetMeanFreePath returns ctau*beta*gamma for decay in flight
@@ -137,15 +137,15 @@ class G4Decay : public G4VRestDiscreteProcess
virtual G4double GetMeanFreePath(const G4Track& aTrack,
G4double previousStepSize,
G4ForceCondition* condition
);
) override;
virtual G4double GetMeanLifeTime(const G4Track& aTrack,
G4ForceCondition* condition
);
) override;
public: //With Description
virtual void StartTracking(G4Track*);
virtual void EndTracking();
virtual void StartTracking(G4Track*) override;
virtual void EndTracking() override;
// inform Start/End of tracking for each track to the physics process
public: //With Description
@@ -156,9 +156,8 @@ class G4Decay : public G4VRestDiscreteProcess
G4double GetRemainderLifeTime() const;
//Get Remainder of life time at rest decay
public:
void SetVerboseLevel(G4int value);
G4int GetVerboseLevel() const;
virtual void ProcessDescription(std::ostream& outFile) const override;
//
protected:
G4int verboseLevel;
@@ -181,12 +180,6 @@ class G4Decay : public G4VRestDiscreteProcess
G4VExtDecayer* pExtDecayer;
};
inline
void G4Decay::SetVerboseLevel(G4int value){ verboseLevel = value; }
inline
G4int G4Decay::GetVerboseLevel() const { return verboseLevel; }
inline
G4VParticleChange* G4Decay::AtRestDoIt(
const G4Track& aTrack,
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id: G4DecayProcessType.hh 71045 2013-06-10 09:34:33Z gcosmo $
// $Id: G4DecayProcessType.hh 106151 2017-09-14 06:43:04Z gcosmo $
//
//
//---------------------------------------------------------------
@@ -47,6 +47,7 @@ enum G4DecayProcessType
DECAY_PionMakeSpin ,
DECAY_Radioactive = 210,
DECAY_Unknown = 211,
DECAY_MuAtom = 221,
DECAY_External = 231
};
#endif
@@ -48,20 +48,23 @@ class G4DecayWithSpin : public G4Decay
// Destructor
virtual ~G4DecayWithSpin();
virtual void ProcessDescription(std::ostream& outFile) const override;
//
protected: // With Description
virtual G4VParticleChange* PostStepDoIt(
const G4Track& aTrack,
const G4Step& aStep
);
) override;
virtual G4VParticleChange* AtRestDoIt(
const G4Track& aTrack,
const G4Step& aStep
);
) override;
private:
G4ThreeVector Spin_Precession(const G4Step& aStep,
G4ThreeVector B, G4double deltatime );
G4ThreeVector Spin_Precession(const G4Step& aStep,
G4ThreeVector B, G4double deltatime );
};
@@ -1,64 +0,0 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
// $Id: G4MuonicAtomDecay.hh 78547 2014-01-07 09:40:38Z gcosmo $
//
//
// ------------------------------------------------------------
// GEANT 4 class header file
//
// History: first implementation, 30 August 2016 K.Lynch
#ifndef G4MuonicAtomDecay_h
#define G4MuonicAtomDecay_h 1
#include "G4Decay.hh"
class G4MuonicAtomDecay : public G4Decay
{
// Class Description
// This class is a decay process
public:
// Constructors
G4MuonicAtomDecay(const G4String& processName ="MuonicAtomDecay");
virtual G4bool IsApplicable(const G4ParticleDefinition&) override;
// returns "true" if the decay process can be applied to
// the particle type.
};
#endif
@@ -46,6 +46,9 @@ class G4PionDecayMakeSpin : public G4Decay
// Destructor
virtual ~G4PionDecayMakeSpin();
virtual void ProcessDescription(std::ostream& outFile) const override;
//
private:
// copy constructor
@@ -57,7 +60,7 @@ class G4PionDecayMakeSpin : public G4Decay
protected:
virtual void DaughterPolarization(const G4Track& aTrack,
G4DecayProducts* products);
G4DecayProducts* products) override;
};
#endif
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id: G4UnknownDecay.hh 71045 2013-06-10 09:34:33Z gcosmo $
// $Id: G4UnknownDecay.hh 105727 2017-08-16 12:47:05Z gcosmo $
//
//
// ------------------------------------------------------------
@@ -65,24 +65,27 @@ class G4UnknownDecay : public G4VDiscreteProcess
virtual G4VParticleChange *PostStepDoIt(
const G4Track& aTrack,
const G4Step& aStep
);
) override;
virtual void BuildPhysicsTable(const G4ParticleDefinition&);
virtual void BuildPhysicsTable(const G4ParticleDefinition&) override;
// In G4UnknownDecay, thePhysicsTable stores values of
// beta * std::sqrt( 1 - beta*beta)
// as a function of normalized kinetic enregy (=Ekin/mass),
// becasuse this table is universal for all particle types,
virtual G4bool IsApplicable(const G4ParticleDefinition&);
virtual G4bool IsApplicable(const G4ParticleDefinition&) override;
// returns "true" if the decay process can be applied to
// the particle type.
virtual void ProcessDescription(std::ostream& outFile) const override;
//
protected: // With Description
virtual G4VParticleChange* DecayIt(
const G4Track& aTrack,
const G4Step& aStep
);
) ;
// The DecayIt() method returns by pointer a particle-change object,
// which has information of daughter particles.
@@ -92,7 +95,7 @@ class G4UnknownDecay : public G4VDiscreteProcess
const G4Track& track,
G4double previousStepSize,
G4ForceCondition* condition
);
) override;
protected: // With Description
@@ -100,11 +103,7 @@ class G4UnknownDecay : public G4VDiscreteProcess
virtual G4double GetMeanFreePath(const G4Track& aTrack,
G4double previousStepSize,
G4ForceCondition* condition
);
public:
void SetVerboseLevel(G4int value);
G4int GetVerboseLevel() const;
) override;
private:
G4int verboseLevel;
@@ -147,12 +146,6 @@ inline
}
inline
void G4UnknownDecay::SetVerboseLevel(G4int value){ verboseLevel = value; }
inline
G4int G4UnknownDecay::GetVerboseLevel() const { return verboseLevel; }
inline
G4VParticleChange* G4UnknownDecay::PostStepDoIt(
const G4Track& aTrack,
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id: G4VExtDecayer.hh 71045 2013-06-10 09:34:33Z gcosmo $
// $Id: G4VExtDecayer.hh 105727 2017-08-16 12:47:05Z gcosmo $
//
//
// ------------------------------------------------------------
@@ -70,7 +70,7 @@ class G4VExtDecayer
) = 0;
const G4String& GetName() const;
protected:
G4String decayerName;
};