Geant4  10.00.p03
RunAction.hh
Go to the documentation of this file.
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 //
28 //
29 // $Id: RunAction.hh 66241 2012-12-13 18:34:42Z gunter $
30 //
31 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
32 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
33 
34 #ifndef RunAction_h
35 #define RunAction_h 1
36 
37 #include "G4UserRunAction.hh"
38 #include "ProcessesCount.hh"
39 #include "globals.hh"
40 
41 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
42 
45 class HistoManager;
46 class G4Run;
47 
48 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
49 
50 class RunAction : public G4UserRunAction
51 {
52  public:
54  ~RunAction();
55 
56  public:
57  virtual void BeginOfRunAction(const G4Run*);
58  virtual void EndOfRunAction(const G4Run*);
59 
61  void SumPathLength (G4double truepl, G4double geompl)
62  {fTotalCount++;
63  fTruePL += truepl; fTruePL2 += truepl*truepl;
64  fGeomPL += geompl; fGeomPL2 += geompl*geompl;
65  };
66 
68  {fLDispl += displa; fLDispl2 += displa*displa;}
69 
70  void SumPsi (G4double psi)
71  {fPsiSpa += psi; fPsiSpa2 += psi*psi;}
72 
73  void SumTetaPlane (G4double teta)
74  {fTetPrj += teta; fTetPrj2 += teta*teta;}
75 
76  void SumPhiCorrel (G4double correl)
77  {fPhiCor += correl; fPhiCor2 += correl*correl;}
78 
80 
81  private:
86 
94 };
95 
96 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
97 
98 #endif
99 
std::vector< OneProcessCount * > ProcessesCount
void SumTetaPlane(G4double teta)
Definition: RunAction.hh:73
G4double fGeomPL
Definition: RunAction.hh:89
G4double fLDispl
Definition: RunAction.hh:90
void BeginOfRunAction(const G4Run *)
Definition: RunAction.cc:57
G4double fPhiCor
Definition: RunAction.hh:93
ProcessesCount * fProcCounter
Definition: RunAction.hh:84
G4double ComputeMscHighland(G4double pathLength)
Definition: RunAction.cc:232
void CountProcesses(G4String procName)
Definition: RunAction.hh:59
int G4int
Definition: G4Types.hh:78
G4double fPhiCor2
Definition: RunAction.hh:93
DetectorConstruction * fDetector
Definition: RunAction.hh:87
HistoManager * fHistoManager
Definition: RunAction.hh:60
G4double fGeomPL2
Definition: RunAction.hh:89
G4int fTotalCount
Definition: RunAction.hh:73
void EndOfRunAction(const G4Run *)
Definition: RunAction.cc:260
Definition: G4Run.hh:46
G4double fPsiSpa
Definition: RunAction.hh:91
G4double fTetPrj
Definition: RunAction.hh:92
G4double fTruePL2
Definition: RunAction.hh:88
G4double fLDispl2
Definition: RunAction.hh:90
~RunAction()
Definition: RunAction.cc:52
G4double fTetPrj2
Definition: RunAction.hh:92
void SumLateralDisplacement(G4double displa)
Definition: RunAction.hh:67
G4double fTruePL
Definition: RunAction.hh:88
Detector construction class to demonstrate various ways of placement.
void SumPhiCorrel(G4double correl)
Definition: RunAction.hh:76
void SumPathLength(G4double truepl, G4double geompl)
Definition: RunAction.hh:61
double G4double
Definition: G4Types.hh:76
void SumPsi(G4double psi)
Definition: RunAction.hh:70
G4double fPsiSpa2
Definition: RunAction.hh:91
PrimaryGeneratorAction * fPrimary
Definition: RunAction.hh:63
Definition of the ProcessesCount class.