DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Geant4ParticleGun.h
Go to the documentation of this file.
1 //==========================================================================
2 // AIDA Detector description implementation
3 //--------------------------------------------------------------------------
4 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
5 // All rights reserved.
6 //
7 // For the licensing terms see $DD4hepINSTALL/LICENSE.
8 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
9 //
10 // Author : M.Frank
11 //
12 //==========================================================================
23 #ifndef DDG4_GEANT4PARTICLEGUN_H
24 #define DDG4_GEANT4PARTICLEGUN_H
25 
26 // Framework include files
28 
30 namespace dd4hep {
31 
33  namespace sim {
34 
36 
57  protected:
59  bool m_isotrop;
63  bool m_print;
65  int m_shotNo;
67  virtual void getParticleDirection(int, ROOT::Math::XYZVector& direction, double& momentum) const;
68  public:
72  virtual ~Geant4ParticleGun();
74  virtual void operator()(G4Event* event);
75  };
76  } // End namespace sim
77 } // End namespace dd4hep
78 #endif // DDG4_GEANT4PARTICLEGUN_H
dd4hep::sim::Geant4ParticleGun::m_standalone
bool m_standalone
Property: Standalone mode: includes interaction merging and primary generation.
Definition: Geant4ParticleGun.h:61
Geant4IsotropeGenerator.h
Geant4ParticleGun
Implementation of a particle gun using Geant4Particles.
dd4hep::sim::Geant4ParticleGun::m_isotrop
bool m_isotrop
Property: Isotrope particles?
Definition: Geant4ParticleGun.h:59
dd4hep::sim::Geant4ParticleGun::Geant4ParticleGun
Geant4ParticleGun(Geant4Context *context, const std::string &name)
Standard constructor.
dd4hep::sim::Geant4ParticleGun::operator()
virtual void operator()(G4Event *event)
Callback to generate primary particles.
dd4hep::sim::Geant4Action::name
const std::string & name() const
Access name of the action.
Definition: Geant4Action.h:280
dd4hep::sim::Geant4ParticleGun::m_print
bool m_print
Property: Enable printout.
Definition: Geant4ParticleGun.h:63
dd4hep::sim::Geant4ParticleGun::~Geant4ParticleGun
virtual ~Geant4ParticleGun()
Default destructor.
dd4hep
Namespace for the AIDA detector description toolkit.
Definition: AlignmentsCalib.h:28
dd4hep::sim::Geant4ParticleGun::getParticleDirection
virtual void getParticleDirection(int, ROOT::Math::XYZVector &direction, double &momentum) const
Particle modification. Caller presets defaults to: ( direction = m_direction, momentum = [m_momentumM...
dd4hep::sim::Geant4ParticleGun::m_shotNo
int m_shotNo
Shot number in sequence.
Definition: Geant4ParticleGun.h:65
dd4hep::sim::Geant4Context
Generic context to extend user, run and event information.
Definition: Geant4Context.h:201
dd4hep::sim::Geant4IsotropeGenerator
Generate particles isotrop in space around origine (0,0,0)
Definition: Geant4IsotropeGenerator.h:31
dd4hep::sim::Geant4Action::context
Geant4Context * context() const
Access the context.
Definition: Geant4Action.h:270