Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4FastPathHadronicCrossSection::cycleCountEntry Struct Reference

#include <G4FastPathHadronicCrossSection.hh>

Public Member Functions

 cycleCountEntry (const G4String &pname, const G4Material *mat)
 
 ~cycleCountEntry ()
 

Public Attributes

const G4Stringparticle
 
const G4Material *const material
 
fastPathEntryfastPath
 
G4double energy
 
G4double crossSection
 

Detailed Description

Definition at line 77 of file G4FastPathHadronicCrossSection.hh.

Constructor & Destructor Documentation

◆ cycleCountEntry()

cycleCountEntry::cycleCountEntry ( const G4String pname,
const G4Material mat 
)

Definition at line 167 of file G4FastPathHadronicCrossSection.cc.

167 :
168 particle(pname),material(mat),fastPath(nullptr),
169 energy(-1.),crossSection(-1.)
170{
171 DBG("Initializing cache entry");
172#ifdef FPDEBUG
173 cacheHitCount = 0;
174 initCyclesFastPath=0;
175 invocationCountSlowPath=0;
176 totalCyclesSlowPath=0;
177 invocationCountFastPath=0;
178 totalCyclesFastPath=0;
179 invocationCountTriedOneLineCache=0;
180 invocationCountOneLineCache=0;
181#endif
182}
#define DBG(msg)

◆ ~cycleCountEntry()

cycleCountEntry::~cycleCountEntry ( )

Definition at line 184 of file G4FastPathHadronicCrossSection.cc.

185{
186 DBG("Deleting cache entry");
187 DBG(particle<<" "<<material<<" ("<<(material?material->GetName():"MAT_NONE")<<") "<<" "\
188 <<"fast path pointer:"<<fastPath<<" stored:"<<energy<<" "<<crossSection<<" "\
189 <<cacheHitCount<<" "<<initCyclesFastPath<<" "<<invocationCountSlowPath<<" "\
190 <<totalCyclesSlowPath<<" "<<invocationCountFastPath<<" "<<totalCyclesFastPath<<" "\
191 <<invocationCountTriedOneLineCache<<" "<<invocationCountOneLineCache);
192}
const G4String & GetName() const
Definition: G4Material.hh:175

Member Data Documentation

◆ crossSection

G4double G4FastPathHadronicCrossSection::cycleCountEntry::crossSection

Definition at line 88 of file G4FastPathHadronicCrossSection.hh.

Referenced by ~cycleCountEntry().

◆ energy

G4double G4FastPathHadronicCrossSection::cycleCountEntry::energy

Definition at line 87 of file G4FastPathHadronicCrossSection.hh.

Referenced by ~cycleCountEntry().

◆ fastPath

fastPathEntry* G4FastPathHadronicCrossSection::cycleCountEntry::fastPath

◆ material

const G4Material* const G4FastPathHadronicCrossSection::cycleCountEntry::material

Definition at line 81 of file G4FastPathHadronicCrossSection.hh.

Referenced by ~cycleCountEntry().

◆ particle

const G4String& G4FastPathHadronicCrossSection::cycleCountEntry::particle

Definition at line 80 of file G4FastPathHadronicCrossSection.hh.

Referenced by ~cycleCountEntry().


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