G4SimulationParameters.h
Go to the documentation of this file.
1 //
2 // G4SimulationParameters.h
3 // garsoft-mrb
4 //
5 // Created by Brian Rebel on 11/3/16.
6 // Copyright © 2016 Brian Rebel. All rights reserved.
7 //
8 
9 #ifndef G4SimulationParameters_hpp
10 #define G4SimulationParameters_hpp
11 
12 #include <vector>
13 #include <iostream>
14 
15 #include "fhiclcpp/ParameterSet.h"
16 
17 
18 namespace gar {
19  namespace garg4 {
20 
22  {
23  public:
24 
27 
28  std::vector<std::string> const& EnabledPhysics() const { return fEnabledPhysics; }
29  double KineticEnergyCut() const { return fKineticEnergyCut; }
30  bool StoreTrajectories() const { return fStoreTrajectories; }
33 
34  private:
35 
36  explicit G4SimulationParameters(fhicl::ParameterSet const& pset);
38 
39  std::vector<std::string> fEnabledPhysics; ///< list of enabled physics processes
40  float fKineticEnergyCut; ///< don't track particles below this energy
41  bool fStoreTrajectories; ///< keep particle trajectory information or not
42  bool fKeepEMShowerDaughters; ///< keep EM shower daughters or not
43  std::string fEMShowerDaughterMatRegex; ///< keep EM shower daughters only in these materials
44  };
45 
46  } // garg4
47 } // gar
48 
49 
50 #endif /* G4SimulationParameters_hpp */
std::vector< std::string > fEnabledPhysics
list of enabled physics processes
std::string string
Definition: nybbler.cc:12
static G4SimulationParameters * Instance()
bool fStoreTrajectories
keep particle trajectory information or not
float fKineticEnergyCut
don&#39;t track particles below this energy
std::vector< std::string > const & EnabledPhysics() const
General GArSoft Utilities.
std::string fEMShowerDaughterMatRegex
keep EM shower daughters only in these materials
bool fKeepEMShowerDaughters
keep EM shower daughters or not
static G4SimulationParameters * CreateInstance(fhicl::ParameterSet const &pset)
G4SimulationParameters(fhicl::ParameterSet const &pset)