Import Geant4 11.0.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2021-06-25 16:12:29 +02:00
parent c968e26a39
commit 6399a014b6
4200 changed files with 207479 additions and 237366 deletions
@@ -23,109 +23,89 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
/////////////////////////////////////////////////////////////////////////////////
// Module: G4AdjointForcedInteractionForGamma
// Author: L. Desorgher
// Organisation: SpaceIT GmbH
// Contract: ESA contract 21435/08/NL/AT
// Customer: ESA/ESTEC
// Class: G4AdjointForcedInteractionForGamma
// Author: L. Desorgher
// Organisation: SpaceIT GmbH
//
// Class for the forced interaction of reverse gamma
/////////////////////////////////////////////////////////////////////////////////
//
// CHANGE HISTORY
// --------------
// ChangeHistory:
// 12 September 2016 creation by L. Desorgher
//
//-------------------------------------------------------------
// Documentation:
// Class for the forced interaction of reverse gamma
//
#ifndef G4AdjointForcedInteractionForGamma_h
#define G4AdjointForcedInteractionForGamma_h 1
#include "globals.hh"
#include "G4DynamicParticle.hh"
#include "G4ParticleDefinition.hh"
#include "G4MaterialCutsCouple.hh"
#include "G4Material.hh"
#include "G4Element.hh"
#include "G4ElementVector.hh"
#include "Randomize.hh"
#include "G4ParticleDefinition.hh"
#include "G4VContinuousDiscreteProcess.hh"
#include"G4PhysicsOrderedFreeVector.hh"
class G4PhysicsTable;
class G4Region;
class G4VParticleChange;
class G4ParticleChange;
class G4ParticleDefinition;
class G4Track;
class G4VEmAdjointModel;
class G4AdjointCSMatrix;
class G4AdjointCSManager;
class G4Material;
class G4MaterialCutsCouple;
class G4Navigator;
class G4AdjointForcedInteractionForGamma : public G4VContinuousDiscreteProcess
{
public:
explicit G4AdjointForcedInteractionForGamma(G4String process_name);
public:
~G4AdjointForcedInteractionForGamma() override;
G4AdjointForcedInteractionForGamma(G4String process_name);
void BuildPhysicsTable(const G4ParticleDefinition&) override;
virtual ~G4AdjointForcedInteractionForGamma();
public:
void PreparePhysicsTable(const G4ParticleDefinition&);
void BuildPhysicsTable(const G4ParticleDefinition&);
virtual G4double PostStepGetPhysicalInteractionLength(
const G4Track& track,
G4double previousStepSize,
G4ForceCondition* condition);
virtual G4VParticleChange* PostStepDoIt(const G4Track&, const G4Step&);
virtual G4VParticleChange* AlongStepDoIt(const G4Track& track,const G4Step& step);
inline void RegisterAdjointComptonModel(G4VEmAdjointModel* aAdjointComptonModel){theAdjointComptonModel = aAdjointComptonModel;}
inline void RegisterAdjointBremModel(G4VEmAdjointModel* aAdjointBremModel){theAdjointBremModel = aAdjointBremModel;}
protected :// with description
G4double PostStepGetPhysicalInteractionLength(
const G4Track& track, G4double previousStepSize,
G4ForceCondition* condition) override;
virtual G4double GetMeanFreePath(const G4Track& track,
G4double previousStepSize,
G4ForceCondition* condition);
virtual G4double GetContinuousStepLimit(const G4Track& aTrack,
G4double previousStepSize,
G4double currentMinimumStep,
G4double& currentSafety
);
G4VParticleChange* PostStepDoIt(const G4Track&, const G4Step&) override;
private:
G4VEmAdjointModel* theAdjointComptonModel;
G4VEmAdjointModel* theAdjointBremModel;
G4VParticleChange* AlongStepDoIt(const G4Track& track,
const G4Step& step) override;
G4ParticleChange* fParticleChange;
G4AdjointCSManager* theAdjointCSManager;
private:
G4double lastAdjCS,lastFwdCS;
inline void RegisterAdjointComptonModel(G4VEmAdjointModel* adjModel)
{
fAdjointComptonModel = adjModel;
}
G4int trackid;
G4int nstep;
G4bool is_free_flight_gamma;
G4bool copy_gamma_for_forced_interaction;
G4int last_free_flight_trackid;
inline void RegisterAdjointBremModel(G4VEmAdjointModel* adjModel)
{
fAdjointBremModel = adjModel;
}
G4double acc_track_length;
G4double total_acc_nb_adj_interaction_length;
G4double total_acc_nb_fwd_interaction_length;
void ProcessDescription(std::ostream&) const override;
void DumpInfo() const override { ProcessDescription(G4cout); };
G4AdjointForcedInteractionForGamma(G4AdjointForcedInteractionForGamma&) =
delete;
G4AdjointForcedInteractionForGamma& operator=(
const G4AdjointForcedInteractionForGamma& right) = delete;
G4double acc_nb_adj_interaction_length;
G4double acc_nb_fwd_interaction_length;
G4bool continue_gamma_as_new_free_flight;
};
protected:
G4double GetMeanFreePath(const G4Track& track, G4double previousStepSize,
G4ForceCondition* condition) override;
G4double GetContinuousStepLimit(const G4Track& aTrack,
G4double previousStepSize,
G4double currentMinimumStep,
G4double& currentSafety) override;
private:
G4VEmAdjointModel* fAdjointComptonModel;
G4VEmAdjointModel* fAdjointBremModel;
G4ParticleChange* fParticleChange;
G4AdjointCSManager* fCSManager;
G4double fLastAdjCS = 0.;
G4double fAccTrackLength = 0.;
G4double fTotNbAdjIntLength = 0.;
G4double fNbAdjIntLength = 0.;
G4bool fContinueGammaAsNewFreeFlight = false;
G4bool fFreeFlightGamma = false;
G4bool fCopyGammaForForced = false;
};
#endif