This is the first version of the muSR simulation code (musrSim) based on the merged codes of Kamil Sedlak and Toni Shiroka. It should be a running version of the simulation code, however it has not been very well tested, therefore it will probably need some further development.
45 lines
2.9 KiB
C++
45 lines
2.9 KiB
C++
#ifndef musrParameters_h
|
|
#define musrParameters_h 1
|
|
|
|
#include "globals.hh"
|
|
|
|
class musrParameters {
|
|
public:
|
|
musrParameters(G4String steeringFileName);
|
|
~musrParameters();
|
|
|
|
static musrParameters* GetInstance();
|
|
|
|
static G4String mySteeringFileName; // name of the steering file (e.g. the *.mac file)
|
|
static G4bool storeOnlyEventsWithHits; // variable specifying whether to store interesting
|
|
// or all events into the ROOT tree. (default = true)
|
|
static G4int storeOnlyEventsWithHitInDetID; // simillar to "storeOnlyEventsWithHits". The event is stored
|
|
// only and only if there was a hit in the detector with the ID
|
|
// equal to storeOnlyEventsWithHitInDetID.
|
|
// The storeOnlyEventsWithHitInDetID has to be non zero.
|
|
static G4double signalSeparationTime; // minimim time separation between two subsequent signal
|
|
static G4bool storeOnlyTheFirstTimeHit; // if true, only the hit that happened first will be
|
|
// stored, anything else will be ignored
|
|
// (usefull for some special studies, not for a serious simulation)
|
|
static G4bool killAllPositrons; // if true, all positron tracks will be deleted (usefull for the studies of the muon beam)
|
|
static G4bool killAllGammas; //
|
|
static G4bool killAllNeutrinos; //
|
|
//cks static G4bool includeMuoniumProcesses; // If true, includes Muonium formation and all
|
|
//cks // other Mu-related processes in the simulation
|
|
static G4bool boolG4GeneralParticleSource; // if true, G4GeneralParticleSource will be initialised instead of G4ParticleGun
|
|
// - needed for the radioactive source
|
|
static G4bool boolG4OpticalPhotons; // if true, optical photons will be used (in the sensitive scintillators)
|
|
static G4bool field_DecayWithSpin; // if true, then the routins for calculating the magnetic field will
|
|
// use more precise argument. This variable is set to "true" by
|
|
// the SteppinAction and reset to "false" in the GetFieldValue.
|
|
// It is being changed on step by step basis.
|
|
static G4int nrOfEventsToBeGenerated; // Nr of events to be simulated in this run (set by /run/beamOn command)
|
|
private:
|
|
static musrParameters* pointerToParameters;
|
|
G4bool boolG4RegionRequested; // variable used internally just to check that no new volume is defined after
|
|
// a G4Region has been requested - perhaps unnecessary check, but just to be on the safe side
|
|
|
|
};
|
|
|
|
#endif
|