Loading...
Searching...
No Matches
Par02ActionInitialization.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//
26//
27/// \file Par02ActionInitialization.hh
28/// \brief Definition of the Par02ActionInitialization class
29
30#ifndef PAR02_ACTION_INITIALIZATION_H
31#define PAR02_ACTION_INITIALIZATION_H
32
33#include "G4VUserActionInitialization.hh"
34#include "globals.hh"
35
36/// Actions initialization.
37///
38/// Initialization of all user defined actions as well as mandatory
39/// particle generator.
40/// Based on G4 examples/extended/parametrisations/Par01/include/
41/// Par01ActionInitialization.hh .
42/// @author Anna Zaborowska
43
45 public:
46
47 /// A default constructor: sets the output file name fFileName
48 /// (passed to Par02RunAction) to DefaultOutput.root as well as
49 /// flag fSmear (passed to Par02EventAction) to true indicating
50 /// that smearing will be performed.
52
53 /// A constructor: sets the flag fSmear (passed to Par02EventAction)
54 /// to true indicating that smearing will be performed.
55 /// @param aOutName The output file name passed to Par02RunAction.
56 Par02ActionInitialization( const G4String aOutName );
57
58 /// A constructor.
59 /// @param aOutName The output file name passed to Par02RunAction.
60 /// @param aSmear The flag indicating if smearing should be done,
61 /// passed to Par02EventAction.
62 Par02ActionInitialization( const G4String aOutName, const G4String aSmear );
63
65
66 virtual void BuildForMaster() const;
67
68 /// A method where all the user actions are created.
69 /// One of them, Par02PrimaryGeneratorAction is a mandatory class.
70 virtual void Build() const;
71
72 private:
73 /// An output file name. Passed in Build() to the Par02RunAction.
75
76 /// A flag indicating if smearing should be performed.
77 /// Passed in Build() to the Par02EventAction.
78 G4bool fSmear;
79};
80
81#endif
82
G4String fFileName
An output file name. Passed in Build() to the Par02RunAction.
virtual ~Par02ActionInitialization()
virtual void Build() const
A method where all the user actions are created.
G4bool fSmear
A flag indicating if smearing should be performed.
Par02ActionInitialization()
A default constructor: sets the output file name fFileName (passed to Par02RunAction) to DefaultOutpu...

Applications | User Support | Publications | Collaboration