Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
gar::garg4::G4SimulationParameters Class Reference

#include <G4SimulationParameters.h>

Public Member Functions

std::vector< std::string > const & EnabledPhysics () const
 
double KineticEnergyCut () const
 
bool StoreTrajectories () const
 
bool KeepEMShowerDaughters () const
 
std::string EMShowerDaughterMatRegex () const
 

Static Public Member Functions

static G4SimulationParametersCreateInstance (fhicl::ParameterSet const &pset)
 
static G4SimulationParametersInstance ()
 

Private Member Functions

 G4SimulationParameters (fhicl::ParameterSet const &pset)
 
 ~G4SimulationParameters ()
 

Private Attributes

std::vector< std::stringfEnabledPhysics
 list of enabled physics processes More...
 
float fKineticEnergyCut
 don't track particles below this energy More...
 
bool fStoreTrajectories
 keep particle trajectory information or not More...
 
bool fKeepEMShowerDaughters
 keep EM shower daughters or not More...
 
std::string fEMShowerDaughterMatRegex
 keep EM shower daughters only in these materials More...
 

Detailed Description

Definition at line 21 of file G4SimulationParameters.h.

Constructor & Destructor Documentation

gar::garg4::G4SimulationParameters::G4SimulationParameters ( fhicl::ParameterSet const &  pset)
explicitprivate

Definition at line 36 of file G4SimulationParameters.cxx.

37  {
38  fEnabledPhysics = pset.get<std::vector<std::string> >("EnabledPhysics" );
39  fKeepEMShowerDaughters = pset.get<bool >("KeepEMShowerDaughters", false);
40  fEMShowerDaughterMatRegex = pset.get<std::string >("EMShowerDaughterMatRegex", ".*");
41  fStoreTrajectories = pset.get<bool >("StoreTrajectories", true );
42  fKineticEnergyCut = pset.get<float >("KineticEnergyCut", 1.e-4);
43 
44  return;
45  }
std::vector< std::string > fEnabledPhysics
list of enabled physics processes
std::string string
Definition: nybbler.cc:12
bool fStoreTrajectories
keep particle trajectory information or not
float fKineticEnergyCut
don&#39;t track particles below this energy
std::string fEMShowerDaughterMatRegex
keep EM shower daughters only in these materials
bool fKeepEMShowerDaughters
keep EM shower daughters or not
gar::garg4::G4SimulationParameters::~G4SimulationParameters ( )
private

Definition at line 48 of file G4SimulationParameters.cxx.

49  {
50  return;
51  }

Member Function Documentation

G4SimulationParameters * gar::garg4::G4SimulationParameters::CreateInstance ( fhicl::ParameterSet const &  pset)
static

Definition at line 18 of file G4SimulationParameters.cxx.

19  {
21  return gInstance;
22  }
static G4SimulationParameters * gInstance
G4SimulationParameters(fhicl::ParameterSet const &pset)
std::string gar::garg4::G4SimulationParameters::EMShowerDaughterMatRegex ( ) const
inline

Definition at line 32 of file G4SimulationParameters.h.

32 { return fEMShowerDaughterMatRegex; }
std::string fEMShowerDaughterMatRegex
keep EM shower daughters only in these materials
std::vector<std::string> const& gar::garg4::G4SimulationParameters::EnabledPhysics ( ) const
inline

Definition at line 28 of file G4SimulationParameters.h.

28 { return fEnabledPhysics; }
std::vector< std::string > fEnabledPhysics
list of enabled physics processes
G4SimulationParameters * gar::garg4::G4SimulationParameters::Instance ( )
static

Definition at line 25 of file G4SimulationParameters.cxx.

26  {
27  // the instance must have been created already by CreateInstance()
28  if(!gInstance)
29  throw cet::exception("G4SimulationParameters")
30  << "instance pointer is null, that is bad";
31 
32  return gInstance;
33  }
static G4SimulationParameters * gInstance
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33
bool gar::garg4::G4SimulationParameters::KeepEMShowerDaughters ( ) const
inline

Definition at line 31 of file G4SimulationParameters.h.

31 { return fKeepEMShowerDaughters; }
bool fKeepEMShowerDaughters
keep EM shower daughters or not
double gar::garg4::G4SimulationParameters::KineticEnergyCut ( ) const
inline

Definition at line 29 of file G4SimulationParameters.h.

29 { return fKineticEnergyCut; }
float fKineticEnergyCut
don&#39;t track particles below this energy
bool gar::garg4::G4SimulationParameters::StoreTrajectories ( ) const
inline

Definition at line 30 of file G4SimulationParameters.h.

30 { return fStoreTrajectories; }
bool fStoreTrajectories
keep particle trajectory information or not

Member Data Documentation

std::string gar::garg4::G4SimulationParameters::fEMShowerDaughterMatRegex
private

keep EM shower daughters only in these materials

Definition at line 43 of file G4SimulationParameters.h.

std::vector<std::string> gar::garg4::G4SimulationParameters::fEnabledPhysics
private

list of enabled physics processes

Definition at line 39 of file G4SimulationParameters.h.

bool gar::garg4::G4SimulationParameters::fKeepEMShowerDaughters
private

keep EM shower daughters or not

Definition at line 42 of file G4SimulationParameters.h.

float gar::garg4::G4SimulationParameters::fKineticEnergyCut
private

don't track particles below this energy

Definition at line 40 of file G4SimulationParameters.h.

bool gar::garg4::G4SimulationParameters::fStoreTrajectories
private

keep particle trajectory information or not

Definition at line 41 of file G4SimulationParameters.h.


The documentation for this class was generated from the following files: