Class Reference for E1039 Core & Analysis Software
Home page
Related Pages
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
PHG4ParticleGun.h
Go to the documentation of this file.
1
#ifndef PHG4ParticleGun_H__
2
#define PHG4ParticleGun_H__
3
4
#include "
PHG4ParticleGeneratorBase.h
"
5
6
#include <TF2.h>
7
#include <TGeoManager.h>
8
#include <phgeom/PHGeomUtility.h>
9
class
PHG4Particle
;
10
11
class
PHG4ParticleGun
:
public
PHG4ParticleGeneratorBase
12
{
13
public
:
14
PHG4ParticleGun
(
const
std::string &name=
"PGUN"
);
15
virtual
~PHG4ParticleGun
();
16
17
virtual
int
InitRun
(
PHCompositeNode
*topNode);
18
19
int
process_event
(
PHCompositeNode
*topNode);
20
21
22
23
TF2*
get_beam_profile
()
const
{
24
return
_beam_profile
;
25
}
26
27
void
set_beam_profile
(TF2* beamProfile) {
28
_beam_profile
= beamProfile;
29
}
30
31
32
33
protected
:
34
35
TF2*
_beam_profile
;
36
// Abi
37
//bool _legacy_vertexgenerator;
38
39
};
40
41
#endif
PHG4ParticleGeneratorBase
Definition:
PHG4ParticleGeneratorBase.h:16
PHG4ParticleGun::PHG4ParticleGun
PHG4ParticleGun(const std::string &name="PGUN")
Definition:
PHG4ParticleGun.cc:25
PHG4ParticleGun::get_beam_profile
TF2 * get_beam_profile() const
Definition:
PHG4ParticleGun.h:23
PHG4ParticleGun::InitRun
virtual int InitRun(PHCompositeNode *topNode)
Definition:
PHG4ParticleGun.cc:42
PHG4ParticleGun
Definition:
PHG4ParticleGun.h:11
PHG4ParticleGun::_beam_profile
TF2 * _beam_profile
Definition:
PHG4ParticleGun.h:35
PHG4ParticleGun::process_event
int process_event(PHCompositeNode *topNode)
Definition:
PHG4ParticleGun.cc:49
PHCompositeNode
Definition:
PHCompositeNode.h:14
PHG4Particle
Definition:
PHG4Particle.h:7
PHG4ParticleGun::~PHG4ParticleGun
virtual ~PHG4ParticleGun()
Definition:
PHG4ParticleGun.cc:35
PHG4ParticleGun::set_beam_profile
void set_beam_profile(TF2 *beamProfile)
Definition:
PHG4ParticleGun.h:27
PHG4ParticleGeneratorBase.h
e1039-core
simulation
g4main
PHG4ParticleGun.h
Built by
Haiwang Yu
. updated:
Wed May 26 2021 21:44:04
using
1.8.5 with
SeaQuest GitHub integration