Loading...
Searching...
No Matches
Public Member Functions | List of all members
RE06RunAction Class Reference

#include <Doxymodules_runAndEvent.h>

Inheritance diagram for RE06RunAction:
G4UserRunAction

Public Member Functions

 RE06RunAction ()
 
virtual ~RE06RunAction ()
 
G4RunGenerateRun ()
 
virtual void BeginOfRunAction (const G4Run *)
 
virtual void EndOfRunAction (const G4Run *)
 

Detailed Description

Definition at line 141 of file Doxymodules_runAndEvent.h.

Constructor & Destructor Documentation

◆ RE06RunAction()

RE06RunAction::RE06RunAction ( )

Definition at line 45 of file RE06RunAction.cc.

◆ ~RE06RunAction()

RE06RunAction::~RE06RunAction ( )
virtual

Definition at line 51 of file RE06RunAction.cc.

52{;}

Member Function Documentation

◆ GenerateRun()

G4Run * RE06RunAction::GenerateRun ( )

Definition at line 56 of file RE06RunAction.cc.

57{ return new RE06Run; }

◆ BeginOfRunAction()

void RE06RunAction::BeginOfRunAction ( const G4Run )
virtual

Definition at line 61 of file RE06RunAction.cc.

62{
64 = (RE06SteppingVerbose*)(G4VSteppingVerbose::GetInstance());
65
66 sv->InitializeTimers();
67
68}

◆ EndOfRunAction()

void RE06RunAction::EndOfRunAction ( const G4Run aRun)
virtual

Definition at line 72 of file RE06RunAction.cc.

73{
74 static G4String regName[3] = {"Calor-A","Calor-B","Calor-C"};
75
76 const RE06Run* theRun = (const RE06Run*)aRun;
77
78 if(IsMaster()) {
79
80 G4cout
81 << "############################################################" << G4endl;
82 G4cout
83 << " Run Summary - Number of events : " << theRun->GetNumberOfEvent()
84 << G4endl;
85 G4cout
86 << "############################################################" << G4endl;
87
88 G4double nEvt = (G4double)(theRun->GetNumberOfEvent());
89 for(size_t i=0;i<3;i++)
90 {
91 size_t ih1 = 2*i;
92 size_t ih2 = 2*i+1;
93
94 G4Region* region = G4RegionStore::GetInstance()->GetRegion(regName[i]);
95 G4ProductionCuts* cuts = region->GetProductionCuts();
96 G4cout << "Region : " << region->GetName() << G4endl;
97 G4cout << " Production thresholds :" << G4endl << " "
98 << " gamma " << G4BestUnit(cuts->GetProductionCut("gamma"),"Length")
99 << " e- " << G4BestUnit(cuts->GetProductionCut("e-"),"Length")
100 << " e+ " << G4BestUnit(cuts->GetProductionCut("e+"),"Length")
101 << G4endl;
102 G4cout << " Energy deposition in an event :" << G4endl << " "
103 << " Absorber " << G4BestUnit((theRun->GetTotalE(ih1))/nEvt,"Energy")
104 << " Gap " << G4BestUnit((theRun->GetTotalE(ih2))/nEvt,"Energy")
105 << G4endl;
106 G4cout << " Number of secondaries in an event :" << G4endl << " "
107 << " gamma in Absorber " << (theRun->GetNGamma(ih1))/nEvt
108 << " in Gap " << (theRun->GetNGamma(ih2))/nEvt << G4endl << " "
109 << " e- in Absorber " << (theRun->GetNElectron(ih1))/nEvt
110 << " in Gap " << (theRun->GetNElectron(ih2))/nEvt << G4endl << " "
111 << " e+ in Absorber " << (theRun->GetNPositron(ih1))/nEvt
112 << " in Gap " << (theRun->GetNPositron(ih2))/nEvt << G4endl;
113 G4cout << " Minimum kinetic energy of generated secondaries :" << G4endl
114 << " " << " gamma in Absorber "
115 << G4BestUnit(theRun->GetEMinGamma(ih1),"Energy")
116 << " in Gap " << G4BestUnit(theRun->GetEMinGamma(ih2),"Energy")
117 << G4endl << " "
118 << " e- in Absorber "
119 << G4BestUnit(theRun->GetEMinElectron(ih1),"Energy")
120 << " in Gap " << G4BestUnit(theRun->GetEMinElectron(ih2),"Energy")
121 << G4endl << " "
122 << " e+ in Absorber "
123 << G4BestUnit(theRun->GetEMinPositron(ih1),"Energy")
124 << " in Gap " << G4BestUnit(theRun->GetEMinPositron(ih2),"Energy")
125 << G4endl;
126 G4cout << " Total track length of e+/e- in an event :" << G4endl
127 << " "
128 << " Absorber " << G4BestUnit((theRun->GetTotalL(ih1))/nEvt,"Length")
129 << " Gap " << G4BestUnit((theRun->GetTotalL(ih2))/nEvt,"Length")
130 << G4endl;
131 G4cout << " Total number of steps of e+/e- in an event :" << G4endl
132 << " "
133 << " Absorber " << (theRun->GetNStep(ih1))/nEvt
134 << " Gap " << (theRun->GetNStep(ih2))/nEvt
135 << G4endl;
136 G4cout
137 << "------------------------------------------------------------"
138 << G4endl;
139 G4cout << "Scores in parallel geometry" << G4endl;
140 G4cout
141 << "layer eDep/evt nGamma/evt nElec/evt nPosi/evt stpLen/evt nStep/evt"
142 << G4endl;
143 for(size_t k=0;k<20;k++)
144 {
145 G4cout << std::setw(8) << k;
146 for(size_t j=0;j<6;j++) {
147 G4cout << " " << std::setw(10) << (theRun->GetParaValue(i,j,k))/nEvt;
148 }
149 G4cout << G4endl;
150 }
151 G4cout
152 << "############################################################"
153 << G4endl;
154 }
155 } else {
156
157 G4cout << "CPU Time spent by each region" << G4endl;
159 = (RE06SteppingVerbose*)(G4VSteppingVerbose::GetInstance());
160 sv->Report();
161
162 }
163}
G4double GetTotalE(G4int i) const
Definition RE06Run.hh:50
G4double GetEMinPositron(G4int i) const
Definition RE06Run.hh:59
G4double GetEMinGamma(G4int i) const
Definition RE06Run.hh:57
G4double GetNElectron(G4int i) const
Definition RE06Run.hh:52
G4double GetNGamma(G4int i) const
Definition RE06Run.hh:51
G4double GetTotalL(G4int i) const
Definition RE06Run.hh:54
G4double GetParaValue(G4int i, G4int j, G4int k) const
Definition RE06Run.hh:61
G4double GetNPositron(G4int i) const
Definition RE06Run.hh:53
G4double GetNStep(G4int i) const
Definition RE06Run.hh:55
G4double GetEMinElectron(G4int i) const
Definition RE06Run.hh:58

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

Applications | User Support | Publications | Collaboration