NeutronHPphysics.hh
Go to the documentation of this file.
1 //////////////////////////////////////////////////////////////////////////////
2 /// \file NeutronHPphysics.hh
3 /// \brief High precision neutron physics constructor for Geant4
4 /// \details Adapted from the Geant4 example Hadr04
5 //////////////////////////////////////////////////////////////////////////////
6 #pragma once
7 
8 // Geant4 includes
9 #include "Geant4/G4VPhysicsConstructor.hh"
10 
11 class NeutronHPphysics : public G4VPhysicsConstructor {
12 public:
13  NeutronHPphysics(const G4String& name = "neutron");
14 
15  void
16  ConstructParticle() override
17  {}
18  void ConstructProcess() override;
19 
20  void
21  SetThermalPhysics(G4bool flag)
22  {
23  fThermal = flag;
24  };
25 
26 private:
27  G4bool fThermal;
28 };
static QCString name
Definition: declinfo.cpp:673
void ConstructParticle() override
void SetThermalPhysics(G4bool flag)
void ConstructProcess() override
NeutronHPphysics(const G4String &name="neutron")