Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
G4VHighEnergyGenerator Class Referenceabstract

#include <G4VHighEnergyGenerator.hh>

Inheritance diagram for G4VHighEnergyGenerator:
G4StringModel G4VPartonStringModel G4FTFModel G4QGSModel< ParticipantType > G4QGSModel< G4GammaParticipants > G4QGSModel< G4QGSParticipants >

Public Member Functions

 G4VHighEnergyGenerator (const G4String &modelName="High Energy Generator")
 
virtual ~G4VHighEnergyGenerator ()
 
virtual G4V3DNucleusGetWoundedNucleus () const =0
 
virtual G4V3DNucleusGetProjectileNucleus () const
 
virtual G4KineticTrackVectorScatter (const G4Nucleus &theNucleus, const G4DynamicParticle &thePrimary)=0
 
std::pair< G4double, G4doubleGetEnergyMomentumCheckLevels () const
 
void SetEnergyMomentumCheckLevels (G4double relativeLevel, G4double AbsoluteLevel)
 
virtual void ModelDescription (std::ostream &) const
 
virtual G4String GetModelName () const
 

Detailed Description

Definition at line 47 of file G4VHighEnergyGenerator.hh.

Constructor & Destructor Documentation

G4VHighEnergyGenerator::G4VHighEnergyGenerator ( const G4String modelName = "High Energy Generator")

Definition at line 35 of file G4VHighEnergyGenerator.cc.

36 : epCheckLevels(DBL_MAX,DBL_MAX)
37 {
38  theGeneratorModelName=modelName;
39 }
#define DBL_MAX
Definition: templates.hh:83
G4VHighEnergyGenerator::~G4VHighEnergyGenerator ( )
virtual

Definition at line 42 of file G4VHighEnergyGenerator.cc.

43 {
44 }

Member Function Documentation

std::pair< G4double, G4double > G4VHighEnergyGenerator::GetEnergyMomentumCheckLevels ( ) const

Definition at line 46 of file G4VHighEnergyGenerator.cc.

Referenced by G4TheoFSGenerator::GetEnergyMomentumCheckLevels().

47 {
48  return epCheckLevels;
49 }
G4String G4VHighEnergyGenerator::GetModelName ( ) const
virtual

Definition at line 63 of file G4VHighEnergyGenerator.cc.

Referenced by GetProjectileNucleus(), G4VPartonStringModel::ModelDescription(), and G4TheoFSGenerator::ModelDescription().

64 {
65  return theGeneratorModelName;
66 }
G4V3DNucleus * G4VHighEnergyGenerator::GetProjectileNucleus ( ) const
virtual

Reimplemented in G4FTFModel, G4VPartonStringModel, G4QGSModel< ParticipantType >, G4QGSModel< G4GammaParticipants >, and G4QGSModel< G4QGSParticipants >.

Definition at line 68 of file G4VHighEnergyGenerator.cc.

References FatalException, G4endl, G4Exception(), and GetModelName().

Referenced by G4TheoFSGenerator::ApplyYourself().

69 { // Uzhi Nov. 2012
71  ed << "The used HighEnergyGenerator "<<GetModelName()<<" cannot manage with a residual projectile nucleus" << G4endl;
72  G4Exception("G4VHighEnergyGenerator::GetProjectileNucleus ", "G4had_mod_man",
73  FatalException, ed);
74  return 0;
75 } // Uzhi Nov. 2012
std::ostringstream G4ExceptionDescription
Definition: globals.hh:76
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41
virtual G4String GetModelName() const
#define G4endl
Definition: G4ios.hh:61
virtual G4V3DNucleus* G4VHighEnergyGenerator::GetWoundedNucleus ( ) const
pure virtual
void G4VHighEnergyGenerator::ModelDescription ( std::ostream &  outFile) const
virtual

Reimplemented in G4FTFModel, G4QGSModel< ParticipantType >, G4QGSModel< G4GammaParticipants >, G4QGSModel< G4QGSParticipants >, and G4VPartonStringModel.

Definition at line 58 of file G4VHighEnergyGenerator.cc.

Referenced by G4TheoFSGenerator::ModelDescription().

59 {
60  outFile << " Parton-string models description not written yet \n";
61 }
std::ofstream outFile
Definition: GammaRayTel.cc:68
virtual G4KineticTrackVector* G4VHighEnergyGenerator::Scatter ( const G4Nucleus theNucleus,
const G4DynamicParticle thePrimary 
)
pure virtual
void G4VHighEnergyGenerator::SetEnergyMomentumCheckLevels ( G4double  relativeLevel,
G4double  AbsoluteLevel 
)

Definition at line 51 of file G4VHighEnergyGenerator.cc.

Referenced by G4FTFModel::G4FTFModel().

53 {
54  epCheckLevels.first=relativeLevel;
55  epCheckLevels.second=absoluteLevel;
56 }

The documentation for this class was generated from the following files: