Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4FastPathHadronicCrossSection::cycleCountEntry Struct Reference

#include <G4FastPathHadronicCrossSection.hh>

Collaboration diagram for G4FastPathHadronicCrossSection::cycleCountEntry:

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 ( 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)
const G4String & particle
G4double energy
const G4Material *const material
fastPathEntry * fastPath
G4double crossSection
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 }
#define DBG(msg)
const G4String & particle
const G4String & GetName() const
Definition: G4Material.hh:178
G4double energy
const G4Material *const material
fastPathEntry * fastPath
G4double crossSection

Here is the call graph for this function:

Member Data Documentation

G4double G4FastPathHadronicCrossSection::cycleCountEntry::crossSection

Definition at line 88 of file G4FastPathHadronicCrossSection.hh.

G4double G4FastPathHadronicCrossSection::cycleCountEntry::energy

Definition at line 87 of file G4FastPathHadronicCrossSection.hh.

fastPathEntry* G4FastPathHadronicCrossSection::cycleCountEntry::fastPath

Definition at line 84 of file G4FastPathHadronicCrossSection.hh.

const G4Material* const G4FastPathHadronicCrossSection::cycleCountEntry::material

Definition at line 81 of file G4FastPathHadronicCrossSection.hh.

const G4String& G4FastPathHadronicCrossSection::cycleCountEntry::particle

Definition at line 80 of file G4FastPathHadronicCrossSection.hh.


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