Geant4  10.02
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 78550 2014-01-07 09:43:41Z gcosmo $
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 "G4ThreeVector.hh"
39 
40 #include "g4root.hh"
41 
42 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
43 
46 class RunActionMessenger;
47 class Run;
48 
49 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
50 
51 class RunAction : public G4UserRunAction
52 {
53 public:
54 
56  virtual ~RunAction();
57 
58  virtual G4Run* GenerateRun();
59  virtual void BeginOfRunAction(const G4Run*);
60  virtual void EndOfRunAction(const G4Run*);
61 
62  void SetVerbose(G4int val);
63 
64  // Histogram name
65  void SetHistoName(G4String& val);
66 
67  // Acceptance parameters
69 
70 private:
71  void BookHisto();
72 
73 private:
78  Run* fRun;
79 
81 
83 
87 
88 };
89 
90 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
91 
92 #endif
93 
PrimaryGeneratorAction class.
void SetVerbose(G4int val)
Definition: RunAction.cc:193
void BeginOfRunAction(const G4Run *)
Definition: RunAction.cc:57
CLHEP::Hep3Vector G4ThreeVector
RunActionMessenger * fRunMessenger
Definition: RunAction.hh:76
G4double fEdeptrue
Definition: RunAction.hh:84
G4String fHistoName[2]
Definition: RunAction.hh:82
G4int fVerbose
Definition: RunAction.hh:80
virtual G4Run * GenerateRun()
Definition: RunAction.cc:66
int G4int
Definition: G4Types.hh:78
PrimaryGeneratorAction * fKin
Definition: RunAction.hh:75
void SetEdepAndRMS(G4ThreeVector)
Definition: RunAction.cc:185
void EndOfRunAction(const G4Run *)
Definition: RunAction.cc:260
Definition: G4Run.hh:46
void BookHisto()
Definition: RunAction.cc:68
~RunAction()
Definition: RunAction.cc:52
G4AnalysisManager * fAnalysisManager
Definition: RunAction.hh:77
G4double fLimittrue
Definition: RunAction.hh:86
Detector construction class to demonstrate various ways of placement.
DetectorConstruction * fDet
Definition: RunAction.hh:74
double G4double
Definition: G4Types.hh:76
Definition: Run.hh:46
Run action class.
Definition: RunAction.hh:45
void SetHistoName(G4String &val)
Definition: RunAction.cc:141
G4double fRmstrue
Definition: RunAction.hh:85
Run * fRun
Definition: RunAction.hh:65