Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
PHG4PrimaryGeneratorAction.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHG4PrimaryGeneratorAction.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
3
#ifndef G4MAIN_PHG4PRIMARYGENERATORACTION_H
4
#define G4MAIN_PHG4PRIMARYGENERATORACTION_H
5
6
#include <Geant4/G4VUserPrimaryGeneratorAction.hh>
7
8
class
G4Event;
9
class
PHG4InEvent
;
10
11
class
PHG4PrimaryGeneratorAction
:
public
G4VUserPrimaryGeneratorAction
12
{
13
public
:
14
PHG4PrimaryGeneratorAction
()
15
:
verbosity
(0)
16
,
inEvent
(0)
17
{
18
}
19
20
~PHG4PrimaryGeneratorAction
()
override
21
{
22
}
23
24
void
GeneratePrimaries
(G4Event* anEvent)
override
;
25
27
void
SetInEvent
(
PHG4InEvent
*
const
inevt)
28
{
29
inEvent
= inevt;
30
}
31
33
void
Verbosity
(
const
int
val) {
verbosity
= val; }
34
int
Verbosity
()
const
{
return
verbosity
; }
35
36
protected
:
37
int
verbosity
;
38
39
private
:
41
PHG4InEvent
*
inEvent
;
42
};
43
44
#endif // PHG4PrimaryGeneratorAction_H__
coresoftware
blob
master
simulation
g4simulation
g4main
PHG4PrimaryGeneratorAction.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:15
using
1.8.2 with
sPHENIX GitHub integration