Import Geant4 8.0.0 source tree
This commit is contained in:
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: ExN07Run.hh,v 1.3 2003/04/09 23:20:58 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// $Id: ExN07Run.hh,v 1.4 2005/11/22 22:20:55 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
|
||||
#ifndef ExN07Run_h
|
||||
@@ -30,68 +30,66 @@
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4Run.hh"
|
||||
#include "G4Allocator.hh"
|
||||
|
||||
#include "G4THitsMap.hh"
|
||||
|
||||
class G4Event;
|
||||
class G4HCtable;
|
||||
class G4DCtable;
|
||||
|
||||
class ExN07Run : public G4Run
|
||||
{
|
||||
public:
|
||||
ExN07Run();
|
||||
virtual ~ExN07Run();
|
||||
inline void *operator new(size_t);
|
||||
inline void operator delete(void* aRun);
|
||||
|
||||
public:
|
||||
virtual void RecordEvent(const G4Event*);
|
||||
|
||||
private:
|
||||
G4double totE[6];
|
||||
G4double totL[6];
|
||||
G4int nStep[6];
|
||||
G4int nGamma[6];
|
||||
G4int nElectron[6];
|
||||
G4int nPositron[6];
|
||||
G4double eMinGamma[6];
|
||||
G4double eMinElectron[6];
|
||||
G4double eMinPositron[6];
|
||||
G4double GetTotal(const G4THitsMap<G4double> &map) const;
|
||||
G4double FindMinimum(const G4THitsMap<G4double> &map) const;
|
||||
|
||||
private:
|
||||
// Maps for accumulation
|
||||
// mapSum[i][j]
|
||||
// i = 0 : Calor-A_abs j = 0 : total eDep
|
||||
// i = 1 : Calor-A_gap j = 1 : number of gamma
|
||||
// i = 2 : Calor-B_abs j = 2 : number of electron
|
||||
// i = 3 : Calor-B_gap j = 3 : number of positron
|
||||
// i = 4 : Calor-C_abs j = 4 : total step length for e+/e-
|
||||
// i = 5 : Calor-C_gap j = 5 : total number of steps for e+/e-
|
||||
G4THitsMap<G4double> mapSum[6][6];
|
||||
G4int colIDSum[6][6];
|
||||
|
||||
// Maps for minimum value
|
||||
// i = 0 : Calor-A_abs j = 0 : minimum kinE at generation for gamma
|
||||
// i = 1 : Calor-A_gap j = 1 : minimum kinE at generation for electron
|
||||
// i = 2 : Calor-B_abs j = 2 : minimum kinE at generation for positron
|
||||
// i = 3 : Calor-B_gap
|
||||
// i = 4 : Calor-C_abs
|
||||
// i = 5 : Calor-C_gap
|
||||
G4THitsMap<G4double> mapMin[6][3];
|
||||
G4int colIDMin[6][3];
|
||||
|
||||
public:
|
||||
inline G4double GetTotalE(G4int i) const
|
||||
{ return totE[i]; }
|
||||
{ return GetTotal(mapSum[i][0]); }
|
||||
inline G4double GetNGamma(G4int i) const
|
||||
{ return GetTotal(mapSum[i][1]); }
|
||||
inline G4double GetNElectron(G4int i) const
|
||||
{ return GetTotal(mapSum[i][2]); }
|
||||
inline G4double GetNPositron(G4int i) const
|
||||
{ return GetTotal(mapSum[i][3]); }
|
||||
inline G4double GetTotalL(G4int i) const
|
||||
{ return totL[i]; }
|
||||
inline G4int GetNStep(G4int i) const
|
||||
{ return nStep[i]; }
|
||||
inline G4int GetNGamma(G4int i) const
|
||||
{ return nGamma[i]; }
|
||||
inline G4int GetNElectron(G4int i) const
|
||||
{ return nElectron[i]; }
|
||||
inline G4int GetNPositron(G4int i) const
|
||||
{ return nPositron[i]; }
|
||||
{ return GetTotal(mapSum[i][4]); }
|
||||
inline G4double GetNStep(G4int i) const
|
||||
{ return GetTotal(mapSum[i][5]); }
|
||||
inline G4double GetEMinGamma(G4int i) const
|
||||
{ return eMinGamma[i]; }
|
||||
{ return FindMinimum(mapMin[i][0]); }
|
||||
inline G4double GetEMinElectron(G4int i) const
|
||||
{ return eMinElectron[i]; }
|
||||
{ return FindMinimum(mapMin[i][1]); }
|
||||
inline G4double GetEMinPositron(G4int i) const
|
||||
{ return eMinPositron[i]; }
|
||||
{ return FindMinimum(mapMin[i][2]); }
|
||||
};
|
||||
|
||||
extern G4Allocator<ExN07Run> anExN07RunAllocator;
|
||||
|
||||
inline void* ExN07Run::operator new(size_t)
|
||||
{
|
||||
void* aRun;
|
||||
aRun = (void*)anExN07RunAllocator.MallocSingle();
|
||||
return aRun;
|
||||
}
|
||||
|
||||
inline void ExN07Run::operator delete(void* aRun)
|
||||
{
|
||||
anExN07RunAllocator.FreeSingle((ExN07Run*)aRun);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user