Class Reference for E1039 Core & Analysis Software
 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 
5 
6 #include <TF2.h>
7 #include <TGeoManager.h>
8 #include <phgeom/PHGeomUtility.h>
9 class PHG4Particle;
10 
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 
36  // Abi
37  //bool _legacy_vertexgenerator;
38 
39 };
40 
41 #endif
PHG4ParticleGun(const std::string &name="PGUN")
TF2 * get_beam_profile() const
virtual int InitRun(PHCompositeNode *topNode)
int process_event(PHCompositeNode *topNode)
virtual ~PHG4ParticleGun()
void set_beam_profile(TF2 *beamProfile)