source: trunk/examples/extended/electromagnetic/TestEm10/include/Em10RunAction.hh@ 1036

Last change on this file since 1036 was 807, checked in by garnier, 17 years ago

update

File size: 5.8 KB
Line 
1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
10// * *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
17// * *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
25//
26//
27// $Id: Em10RunAction.hh,v 1.5 2006/06/29 16:38:06 gunter Exp $
28// GEANT4 tag $Name: $
29//
30//
31
32//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
33//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
34
35#ifndef Em10RunAction_h
36#define Em10RunAction_h 1
37
38#include "G4UserRunAction.hh"
39#include "globals.hh"
40#include <iostream>
41
42//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
43
44class Em10RunMessenger;
45class G4Run;
46
47//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
48
49class Em10RunAction : public G4UserRunAction
50{
51 public:
52 Em10RunAction();
53 ~Em10RunAction();
54
55 public:
56 void BeginOfRunAction(const G4Run*);
57 void EndOfRunAction(const G4Run*);
58
59 void CountEvent();
60 void CountParticles(G4double,G4double);
61 void AddEP(G4double,G4double);
62 void AddEdeps(G4double Eabs);
63 void AddTrackLength(G4double tlabs);
64 void AddnStepsCharged(G4double ns);
65 void AddnStepsNeutral(G4double ns);
66
67 void AddTrRef(G4double tr,G4double ref);
68
69 void FillEn(G4double En);
70 void FillTh(G4double Th);
71 void FillThBack(G4double Th);
72 void FillR(G4double R);
73 void FillTt(G4double Tt);
74 void FillTb(G4double Tt);
75 void FillTsec(G4double T);
76 void FillGammaSpectrum(G4double E);
77 void FillNbOfSteps(G4double nstep);
78 void Fillvertexz(G4double z);
79
80 void SethistName(G4String name) ;
81
82 void SetnbinStep(G4int nbin);
83 void SetSteplow(G4double Slow);
84 void SetStephigh(G4double Shigh);
85
86 void SetnbinEn(G4int nbin);
87 void SetEnlow(G4double Elow);
88 void SetEnhigh(G4double Enhigh);
89
90 void SetnbinTt(G4int nbin);
91 void SetTtlow(G4double Ttlow);
92 void SetTthigh(G4double Tthigh);
93
94 void SetnbinTb(G4int nbin);
95 void SetTblow(G4double Tblow);
96 void SetTbhigh(G4double Tbhigh);
97
98 void SetnbinTsec(G4int nbin);
99 void SetTseclow(G4double Tlow);
100 void SetTsechigh(G4double Thigh);
101
102 void SetnbinTh(G4int nbin);
103 void SetThlow(G4double Thlow);
104 void SetThhigh(G4double Thhigh);
105
106 void SetnbinThBack(G4int nbin);
107 void SetThlowBack(G4double Thlow);
108 void SetThhighBack(G4double Thhigh);
109
110 void SetnbinR(G4int nbin);
111 void SetRlow(G4double Rlow);
112 void SetRhigh(G4double Rhigh);
113
114 void SetnbinGamma(G4int nbin);
115 void SetElowGamma(G4double Elow);
116 void SetEhighGamma(G4double Ehigh);
117
118 void Setnbinzvertex(G4int nbin);
119 void Setzlow(G4double z);
120 void Setzhigh(G4double z);
121
122 void SetRndmFreq(G4int val) {saveRndm = val;}
123 G4int GetRndmFreq() {return saveRndm;}
124
125 private:
126
127 void bookHisto();
128
129 private:
130
131 G4String histName ;
132
133 G4double EnergySumAbs,EnergySquareSumAbs;
134 G4double tlSumAbs,tlsquareSumAbs;
135 G4double nStepSumCharged,nStepSum2Charged ;
136 G4double nStepSumNeutral,nStepSum2Neutral ;
137 G4double TotNbofEvents;
138 G4double SumCharged,Sum2Charged,SumNeutral,Sum2Neutral;
139 G4double Selectron,Spositron;
140
141 G4double Transmitted,Reflected ;
142
143 G4double entryStep,underStep,overStep,distStep[200];
144 G4double Steplow,Stephigh,dStep;
145 G4int nbinStep;
146 G4double entryEn,underEn,overEn,distEn[200];
147 G4double Enlow,Enhigh,dEn;
148 G4int nbinEn;
149 G4double entryTt,underTt,overTt,distTt[200];
150 G4double Ttlow,Tthigh,dTt;
151 G4int nbinTt;
152 G4double Ttmean,Tt2mean;
153 G4double entryTb,underTb,overTb,distTb[200];
154 G4double Tblow,Tbhigh,dTb;
155 G4int nbinTb;
156 G4double Tbmean,Tb2mean;
157 G4double entryTsec,underTsec,overTsec,distTsec[200];
158 G4double Tseclow,Tsechigh,dTsec;
159 G4int nbinTsec;
160 G4double entryTh,underTh,overTh,distTh[200];
161 G4double Thlow,Thhigh,dTh;
162 G4int nbinTh;
163 G4double entryThback,underThback,overThback,distThback[200];
164 G4double Thlowback,Thhighback,dThback;
165 G4int nbinThback;
166 G4double entryR ,underR ,overR ,distR[200];
167 G4double Rlow,Rhigh,dR;
168 G4int nbinR;
169 G4double Rmean,R2mean;
170 G4double entryGamma,underGamma,overGamma,distGamma[200];
171 G4double ElowGamma,EhighGamma,dEGamma;
172 G4int nbinGamma ;
173 G4double entryvertexz,undervertexz,oververtexz,distvertexz[200];
174 G4double zlow,zhigh,dz;
175 G4int nbinvertexz;
176
177 Em10RunMessenger* runMessenger;
178 G4int saveRndm;
179};
180
181#endif
182
Note: See TracBrowser for help on using the repository browser.