Import Geant4 11.2.0 source tree
This commit is contained in:
@@ -23,47 +23,39 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
// GEANT 4 class header file
|
||||
//
|
||||
// History:
|
||||
// 1 July 2009 creation by L. Desorgher based on a modification of G4Ions
|
||||
// History:
|
||||
// 1 July 2009 creation by L. Desorgher based on a modification of G4Ions
|
||||
//
|
||||
//-------------------------------------------------------------
|
||||
// Documentation:
|
||||
// Adjoint particles are used in Reverse/Adjoint Monte Carlo simulations. New adjoint
|
||||
// processes act on adjoint particles when they are tracked backward in the geometry.
|
||||
// The use of adjoint particles instead of "normal" particles during a reverse simulation
|
||||
// is based on an idea of M. Asai.
|
||||
// Adjoint particles are used in Reverse/Adjoint Monte Carlo simulations. New adjoint
|
||||
// processes act on adjoint particles when they are tracked backward in the geometry.
|
||||
// The use of adjoint particles instead of "normal" particles during a reverse simulation
|
||||
// is based on an idea of M. Asai.
|
||||
//
|
||||
|
||||
#ifndef G4AdjointIons_h
|
||||
#define G4AdjointIons_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4ParticleDefinition.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### ADJOINT Ions ###
|
||||
// ######################################################################
|
||||
#include "G4String.hh"
|
||||
#include "G4Types.hh"
|
||||
|
||||
class G4AdjointIons : public G4ParticleDefinition
|
||||
{
|
||||
// Class Description
|
||||
// This is the base class for all nuclei including pre-defined
|
||||
// light nuclei such as deuteron, alpha, and proton (Hydrogen)
|
||||
// All nuclei/ions created on the fly are objects of this class
|
||||
// Atomic number and atomic mass are vaild only for particles derived
|
||||
// from this class. This class has Excitation Energy in addition to
|
||||
// the normal particle properties.
|
||||
// Class Description
|
||||
// This is the base class for all nuclei including pre-defined
|
||||
// light nuclei such as deuteron, alpha, and proton (Hydrogen)
|
||||
// All nuclei/ions created on the fly are objects of this class
|
||||
// Atomic number and atomic mass are vaild only for particles derived
|
||||
// from this class. This class has Excitation Energy in addition to
|
||||
// the normal particle properties.
|
||||
|
||||
protected:
|
||||
G4AdjointIons() = default;
|
||||
|
||||
|
||||
public: //With Description
|
||||
public:
|
||||
// clang-format off
|
||||
G4AdjointIons(
|
||||
const G4String& aName, G4double mass,
|
||||
G4double width, G4double charge,
|
||||
@@ -78,39 +70,31 @@ class G4AdjointIons : public G4ParticleDefinition
|
||||
G4int anti_encoding =0,
|
||||
G4double excitation = 0.0
|
||||
);
|
||||
// clang-format on
|
||||
|
||||
public:
|
||||
~G4AdjointIons() override = default;
|
||||
G4AdjointIons* IonsDefinition();
|
||||
G4AdjointIons* Ions();
|
||||
~G4AdjointIons() override = default;
|
||||
|
||||
G4AdjointIons* IonsDefinition();
|
||||
G4AdjointIons* Ions();
|
||||
|
||||
// Get excitation energy of nucleus
|
||||
G4double GetExcitationEnergy() const;
|
||||
|
||||
protected:
|
||||
G4AdjointIons() = default;
|
||||
|
||||
public: //With Description
|
||||
// Get excitation energy of nucleus
|
||||
G4double GetExcitationEnergy() const ;
|
||||
|
||||
private:
|
||||
G4double theExcitationEnergy;
|
||||
|
||||
G4double theExcitationEnergy;
|
||||
};
|
||||
|
||||
inline
|
||||
G4AdjointIons* G4AdjointIons::Ions()
|
||||
inline G4AdjointIons* G4AdjointIons::Ions()
|
||||
{
|
||||
return this;
|
||||
}
|
||||
|
||||
inline
|
||||
G4double G4AdjointIons::GetExcitationEnergy() const
|
||||
inline G4double G4AdjointIons::GetExcitationEnergy() const
|
||||
{
|
||||
return theExcitationEnergy;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user