source: trunk/examples/extended/electromagnetic/TestEm8/include/Em8RunAction.hh @ 807

Last change on this file since 807 was 807, checked in by garnier, 16 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: Em8RunAction.hh,v 1.8 2006/06/29 16:59:16 gunter Exp $
28// GEANT4 tag $Name:  $
29//
30//
31
32//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
33//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
34
35#ifndef Em8RunAction_h
36#define Em8RunAction_h 1
37
38#include "G4UserRunAction.hh"
39#include "globals.hh"
40#include <iostream>
41
42//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
43
44class Em8RunMessenger;
45class G4Run;
46
47//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
48
49class Em8RunAction : public G4UserRunAction
50{
51  public:
52    Em8RunAction();
53   ~Em8RunAction();
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    G4String histName ;
128
129
130    G4double EnergySumAbs,EnergySquareSumAbs;
131    G4double tlSumAbs,tlsquareSumAbs;
132    G4double nStepSumCharged,nStepSum2Charged ;
133    G4double nStepSumNeutral,nStepSum2Neutral ;
134    G4double TotNbofEvents;
135    G4double SumCharged,Sum2Charged,SumNeutral,Sum2Neutral;
136    G4double Selectron,Spositron;
137
138    G4double Transmitted,Reflected ;
139
140    G4double entryStep,underStep,overStep,distStep[200];
141    G4double Steplow,Stephigh,dStep;
142    G4int    nbinStep;
143    G4double entryEn,underEn,overEn,distEn[200];
144    G4double Enlow,Enhigh,dEn;
145    G4int    nbinEn;
146    G4double entryTt,underTt,overTt,distTt[200];
147    G4double Ttlow,Tthigh,dTt;
148    G4int    nbinTt;
149    G4double Ttmean,Tt2mean;
150    G4double entryTb,underTb,overTb,distTb[200];
151    G4double Tblow,Tbhigh,dTb;
152    G4int    nbinTb;
153    G4double Tbmean,Tb2mean;
154    G4double entryTsec,underTsec,overTsec,distTsec[200];
155    G4double Tseclow,Tsechigh,dTsec;
156    G4int    nbinTsec;
157    G4double entryTh,underTh,overTh,distTh[200];
158    G4double Thlow,Thhigh,dTh;
159    G4int    nbinTh;
160    G4double entryThback,underThback,overThback,distThback[200];
161    G4double Thlowback,Thhighback,dThback;
162    G4int    nbinThback;
163    G4double entryR ,underR ,overR ,distR[200];
164    G4double Rlow,Rhigh,dR;
165    G4int    nbinR;
166    G4double Rmean,R2mean;
167    G4double entryGamma,underGamma,overGamma,distGamma[200];
168    G4double ElowGamma,EhighGamma,dEGamma;
169    G4int nbinGamma ;
170    G4double entryvertexz,undervertexz,oververtexz,distvertexz[200];
171    G4double zlow,zhigh,dz;
172    G4int nbinvertexz;
173 
174    Em8RunMessenger* runMessenger;
175    G4int saveRndm;   
176};
177
178#endif
179
Note: See TracBrowser for help on using the repository browser.