source: trunk/source/geometry/magneticfield/test/field03/include/F03RunAction.hh@ 1311

Last change on this file since 1311 was 1199, checked in by garnier, 16 years ago

nvx fichiers dans CVS

File size: 6.1 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: F03RunAction.hh,v 1.3 2006/06/29 18:29:43 gunter Exp $
28// GEANT4 tag $Name: HEAD $
29//
30//
31
32//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
33//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
34
35#ifndef F03RunAction_h
36#define F03RunAction_h 1
37
38#include "G4UserRunAction.hh"
39#include "globals.hh"
40#include <iostream>
41
42//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
43
44class F03RunMessenger;
45class G4Run;
46
47#ifndef G4NOHIST
48 class HepTupleManager;
49 class HepHistogram;
50#endif
51
52//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
53
54class F03RunAction : public G4UserRunAction
55{
56 public:
57 F03RunAction();
58 ~F03RunAction();
59
60 public:
61 void BeginOfRunAction(const G4Run*);
62 void EndOfRunAction(const G4Run*);
63
64 void CountEvent();
65 void CountParticles(G4double,G4double);
66 void AddEP(G4double,G4double);
67 void AddEdeps(G4double Eabs);
68 void AddTrackLength(G4double tlabs);
69 void AddnStepsCharged(G4double ns);
70 void AddnStepsNeutral(G4double ns);
71
72 void AddTrRef(G4double tr,G4double ref);
73
74 void FillEn(G4double En);
75 void FillTh(G4double Th);
76 void FillThBack(G4double Th);
77 void FillR(G4double R);
78 void FillTt(G4double Tt);
79 void FillTb(G4double Tt);
80 void FillTsec(G4double T);
81 void FillGammaSpectrum(G4double E);
82 void FillNbOfSteps(G4double nstep);
83 void Fillvertexz(G4double z);
84
85 void SethistName(G4String name) ;
86
87 void SetnbinStep(G4int nbin);
88 void SetSteplow(G4double Slow);
89 void SetStephigh(G4double Shigh);
90
91 void SetnbinEn(G4int nbin);
92 void SetEnlow(G4double Elow);
93 void SetEnhigh(G4double Enhigh);
94
95 void SetnbinTt(G4int nbin);
96 void SetTtlow(G4double Ttlow);
97 void SetTthigh(G4double Tthigh);
98
99 void SetnbinTb(G4int nbin);
100 void SetTblow(G4double Tblow);
101 void SetTbhigh(G4double Tbhigh);
102
103 void SetnbinTsec(G4int nbin);
104 void SetTseclow(G4double Tlow);
105 void SetTsechigh(G4double Thigh);
106
107 void SetnbinTh(G4int nbin);
108 void SetThlow(G4double Thlow);
109 void SetThhigh(G4double Thhigh);
110
111 void SetnbinThBack(G4int nbin);
112 void SetThlowBack(G4double Thlow);
113 void SetThhighBack(G4double Thhigh);
114
115 void SetnbinR(G4int nbin);
116 void SetRlow(G4double Rlow);
117 void SetRhigh(G4double Rhigh);
118
119 void SetnbinGamma(G4int nbin);
120 void SetElowGamma(G4double Elow);
121 void SetEhighGamma(G4double Ehigh);
122
123 void Setnbinzvertex(G4int nbin);
124 void Setzlow(G4double z);
125 void Setzhigh(G4double z);
126
127 void SetRndmFreq(G4int val) {saveRndm = val;}
128 G4int GetRndmFreq() {return saveRndm;}
129
130 private:
131
132 void bookHisto();
133
134 private:
135
136 G4String histName ;
137
138#ifndef G4NOHIST
139 HepTupleManager* hbookManager;
140 HepHistogram *histo1, *histo2, *histo3, *histo4, *histo5 ;
141 HepHistogram *histo6, *histo7, *histo8, *histo9, *histo10;
142#endif
143
144 G4double EnergySumAbs,EnergySquareSumAbs;
145 G4double tlSumAbs,tlsquareSumAbs;
146 G4double nStepSumCharged,nStepSum2Charged ;
147 G4double nStepSumNeutral,nStepSum2Neutral ;
148 G4double TotNbofEvents;
149 G4double SumCharged,Sum2Charged,SumNeutral,Sum2Neutral;
150 G4double Selectron,Spositron;
151
152 G4double Transmitted,Reflected ;
153
154 G4double entryStep,underStep,overStep,distStep[200];
155 G4double Steplow,Stephigh,dStep;
156 G4int nbinStep;
157 G4double entryEn,underEn,overEn,distEn[200];
158 G4double Enlow,Enhigh,dEn;
159 G4int nbinEn;
160 G4double entryTt,underTt,overTt,distTt[200];
161 G4double Ttlow,Tthigh,dTt;
162 G4int nbinTt;
163 G4double Ttmean,Tt2mean;
164 G4double entryTb,underTb,overTb,distTb[200];
165 G4double Tblow,Tbhigh,dTb;
166 G4int nbinTb;
167 G4double Tbmean,Tb2mean;
168 G4double entryTsec,underTsec,overTsec,distTsec[200];
169 G4double Tseclow,Tsechigh,dTsec;
170 G4int nbinTsec;
171 G4double entryTh,underTh,overTh,distTh[200];
172 G4double Thlow,Thhigh,dTh;
173 G4int nbinTh;
174 G4double entryThback,underThback,overThback,distThback[200];
175 G4double Thlowback,Thhighback,dThback;
176 G4int nbinThback;
177 G4double entryR ,underR ,overR ,distR[200];
178 G4double Rlow,Rhigh,dR;
179 G4int nbinR;
180 G4double Rmean,R2mean;
181 G4double entryGamma,underGamma,overGamma,distGamma[200];
182 G4double ElowGamma,EhighGamma,dEGamma;
183 G4int nbinGamma ;
184 G4double entryvertexz,undervertexz,oververtexz,distvertexz[200];
185 G4double zlow,zhigh,dz;
186 G4int nbinvertexz;
187
188 F03RunMessenger* runMessenger;
189 G4int saveRndm;
190};
191
192#endif
193
Note: See TracBrowser for help on using the repository browser.