All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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
22  {
23  fThermal = flag;
24  };
25 
26 private:
27  G4bool fThermal;
28 };
void ConstructParticle() override
then echo unknown compiler flag
void SetThermalPhysics(G4bool flag)
void ConstructProcess() override
then echo fcl name
NeutronHPphysics(const G4String &name="neutron")