GGS(GenericGEANT4Simulation)Software
2.6.0
Main Page
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Macros
include
montecarlo
generators
GGSGeneratorAction.h
Go to the documentation of this file.
1
/*
2
* GGSGeneratorAction.h
3
*
4
* Created on: 19 Oct 2013
5
* Author: Nicola Mori
6
*/
7
10
#ifndef GGSGENERATORACTION_H_
11
#define GGSGENERATORACTION_H_
12
13
#include "G4VUserPrimaryGeneratorAction.hh"
14
27
class
GGSGeneratorAction
:
public
G4VUserPrimaryGeneratorAction {
28
public
:
29
31
GGSGeneratorAction
() :
32
G4VUserPrimaryGeneratorAction(), _nDiscarded(0) {
33
34
}
35
37
~GGSGeneratorAction
() {
38
39
}
40
51
unsigned
int
GetNDiscarded
()
const
{
52
return
_nDiscarded;
53
}
54
55
protected
:
56
unsigned
long
int
_nDiscarded;
57
58
};
59
60
#endif
/* GGSGENERATORACTION_H_ */
GGSGeneratorAction
Base class for GGS generator actions.
Definition:
GGSGeneratorAction.h:27
GGSGeneratorAction::GGSGeneratorAction
GGSGeneratorAction()
Constructor.
Definition:
GGSGeneratorAction.h:31
GGSGeneratorAction::GetNDiscarded
unsigned int GetNDiscarded() const
Returns the number of discarded events for the current event generation.
Definition:
GGSGeneratorAction.h:51
GGSGeneratorAction::~GGSGeneratorAction
~GGSGeneratorAction()
Destructor.
Definition:
GGSGeneratorAction.h:37
Generated on Thu May 30 2019 11:52:22 for GGS(GenericGEANT4Simulation)Software by
1.8.5