Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4RToEConvForProton Class Reference

#include <G4RToEConvForProton.hh>

+ Inheritance diagram for G4RToEConvForProton:

Public Member Functions

 G4RToEConvForProton ()
 
virtual ~G4RToEConvForProton ()
 
G4double Convert (const G4double rangeCut, const G4Material *material) final
 
- Public Member Functions inherited from G4VRangeToEnergyConverter
 G4VRangeToEnergyConverter ()
 
virtual ~G4VRangeToEnergyConverter ()
 
 G4VRangeToEnergyConverter (const G4VRangeToEnergyConverter &r)=delete
 
G4VRangeToEnergyConverteroperator= (const G4VRangeToEnergyConverter &r)=delete
 
G4bool operator== (const G4VRangeToEnergyConverter &r) const =delete
 
G4bool operator!= (const G4VRangeToEnergyConverter &r) const =delete
 
const G4ParticleDefinitionGetParticleType () const
 
void SetVerboseLevel (G4int value)
 
G4int GetVerboseLevel () const
 

Protected Member Functions

G4double ComputeValue (const G4int Z, const G4double kinEnergy) final
 
- Protected Member Functions inherited from G4VRangeToEnergyConverter

Additional Inherited Members

- Static Public Member Functions inherited from G4VRangeToEnergyConverter
static void SetEnergyRange (const G4double lowedge, const G4double highedge)
 
static G4double GetLowEdgeEnergy ()
 
static G4double GetHighEdgeEnergy ()
 
static G4double GetMaxEnergyCut ()
 
static void SetMaxEnergyCut (const G4double value)
 
- Protected Attributes inherited from G4VRangeToEnergyConverter
const G4ParticleDefinitiontheParticle = nullptr
 
G4int fPDG = 0
 

Detailed Description

Definition at line 40 of file G4RToEConvForProton.hh.

Constructor & Destructor Documentation

◆ G4RToEConvForProton()

G4RToEConvForProton::G4RToEConvForProton ( )
explicit

Definition at line 38 of file G4RToEConvForProton.cc.

40{
42 if (theParticle == nullptr)
43 {
44#ifdef G4VERBOSE
45 if (GetVerboseLevel()>0)
46 {
47 G4cout << "G4RToEConvForProton::G4RToEConvForProton() - ";
48 G4cout << "Proton is not defined !!" << G4endl;
49 }
50#endif
51 }
52 else
53 {
55 }
56}
#define G4endl
Definition G4ios.hh:67
G4GLOB_DLL std::ostream G4cout
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
static G4ParticleTable * GetParticleTable()
const G4ParticleDefinition * theParticle

◆ ~G4RToEConvForProton()

G4RToEConvForProton::~G4RToEConvForProton ( )
virtual

Definition at line 59 of file G4RToEConvForProton.cc.

60{}

Member Function Documentation

◆ ComputeValue()

G4double G4RToEConvForProton::ComputeValue ( const G4int Z,
const G4double kinEnergy )
finalprotectedvirtual

Implements G4VRangeToEnergyConverter.

Definition at line 78 of file G4RToEConvForProton.cc.

79{
80 return 0.0;
81}

◆ Convert()

G4double G4RToEConvForProton::Convert ( const G4double rangeCut,
const G4Material * material )
finalvirtual

Reimplemented from G4VRangeToEnergyConverter.

Definition at line 63 of file G4RToEConvForProton.cc.

65{
66#ifdef G4VERBOSE
67 if (GetVerboseLevel()>3)
68 {
69 G4cout << "G4RToEConvForProton::Convert() - ";
70 G4cout << " with Range Cut " << rangeCut/mm << "[mm]" << G4endl;
71 }
72#endif
73 // Simple formula - range = Ekin/(100*keV)*(1*mm);
74 return (rangeCut/(1.0*CLHEP::mm)) * (100.0*CLHEP::keV);
75}

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