Import Geant4 11.3.0.beta source tree
This commit is contained in:
@@ -31,77 +31,74 @@
|
||||
#ifndef RE06Run_h
|
||||
#define RE06Run_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4Run.hh"
|
||||
|
||||
#include "G4THitsMap.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
class G4Event;
|
||||
|
||||
class RE06Run : public G4Run
|
||||
{
|
||||
public:
|
||||
RE06Run();
|
||||
virtual ~RE06Run();
|
||||
|
||||
virtual void RecordEvent(const G4Event*);
|
||||
virtual void Merge(const G4Run*);
|
||||
|
||||
G4double GetTotalE(G4int i) const { return GetTotal(fMapSum[i][0]); }
|
||||
G4double GetNGamma(G4int i) const { return GetTotal(fMapSum[i][1]); }
|
||||
G4double GetNElectron(G4int i) const { return GetTotal(fMapSum[i][2]); }
|
||||
G4double GetNPositron(G4int i) const { return GetTotal(fMapSum[i][3]); }
|
||||
G4double GetTotalL(G4int i) const { return GetTotal(fMapSum[i][4]); }
|
||||
G4double GetNStep(G4int i) const { return GetTotal(fMapSum[i][5]); }
|
||||
|
||||
G4double GetEMinGamma(G4int i) const { return FindMinimum(fMapMin[i][0]);}
|
||||
G4double GetEMinElectron(G4int i) const { return FindMinimum(fMapMin[i][1]);}
|
||||
G4double GetEMinPositron(G4int i) const { return FindMinimum(fMapMin[i][2]);}
|
||||
|
||||
G4double GetParaValue(G4int i,G4int j,G4int k) const
|
||||
{
|
||||
G4double* p = fMapPara[i][j][k];
|
||||
if(p) return *p;
|
||||
return 0.;
|
||||
}
|
||||
|
||||
private:
|
||||
G4double GetTotal(const G4THitsMap<G4double> &map) const;
|
||||
G4double FindMinimum(const G4THitsMap<G4double> &map) const;
|
||||
|
||||
// Maps for accumulation
|
||||
// fMapSum[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> fMapSum[6][6];
|
||||
G4int fColIDSum[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> fMapMin[6][3];
|
||||
G4int fColIDMin[6][3];
|
||||
|
||||
// Maps for accumulation in parallel world
|
||||
// fMapPara[i][j]
|
||||
// i = 0 : Calor-AP_para j = 0 : total eDep
|
||||
// i = 1 : Calor-BP_para j = 1 : number of gamma
|
||||
// i = 2 : Calor-CP_para j = 2 : number of electron
|
||||
// j = 3 : number of positron
|
||||
// j = 4 : total step length for e+/e-
|
||||
// j = 5 : total number of steps for e+/e-
|
||||
G4THitsMap<G4double> fMapPara[3][6];
|
||||
G4int fColIDPara[3][6];
|
||||
|
||||
public:
|
||||
RE06Run();
|
||||
virtual ~RE06Run();
|
||||
|
||||
virtual void RecordEvent(const G4Event*);
|
||||
virtual void Merge(const G4Run*);
|
||||
|
||||
G4double GetTotalE(G4int i) const { return GetTotal(fMapSum[i][0]); }
|
||||
G4double GetNGamma(G4int i) const { return GetTotal(fMapSum[i][1]); }
|
||||
G4double GetNElectron(G4int i) const { return GetTotal(fMapSum[i][2]); }
|
||||
G4double GetNPositron(G4int i) const { return GetTotal(fMapSum[i][3]); }
|
||||
G4double GetTotalL(G4int i) const { return GetTotal(fMapSum[i][4]); }
|
||||
G4double GetNStep(G4int i) const { return GetTotal(fMapSum[i][5]); }
|
||||
|
||||
G4double GetEMinGamma(G4int i) const { return FindMinimum(fMapMin[i][0]); }
|
||||
G4double GetEMinElectron(G4int i) const { return FindMinimum(fMapMin[i][1]); }
|
||||
G4double GetEMinPositron(G4int i) const { return FindMinimum(fMapMin[i][2]); }
|
||||
|
||||
G4double GetParaValue(G4int i, G4int j, G4int k) const
|
||||
{
|
||||
G4double* p = fMapPara[i][j][k];
|
||||
if (p) return *p;
|
||||
return 0.;
|
||||
}
|
||||
|
||||
private:
|
||||
G4double GetTotal(const G4THitsMap<G4double>& map) const;
|
||||
G4double FindMinimum(const G4THitsMap<G4double>& map) const;
|
||||
|
||||
// Maps for accumulation
|
||||
// fMapSum[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> fMapSum[6][6];
|
||||
G4int fColIDSum[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> fMapMin[6][3];
|
||||
G4int fColIDMin[6][3];
|
||||
|
||||
// Maps for accumulation in parallel world
|
||||
// fMapPara[i][j]
|
||||
// i = 0 : Calor-AP_para j = 0 : total eDep
|
||||
// i = 1 : Calor-BP_para j = 1 : number of gamma
|
||||
// i = 2 : Calor-CP_para j = 2 : number of electron
|
||||
// j = 3 : number of positron
|
||||
// j = 4 : total step length for e+/e-
|
||||
// j = 5 : total number of steps for e+/e-
|
||||
G4THitsMap<G4double> fMapPara[3][6];
|
||||
G4int fColIDPara[3][6];
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user