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.
53 lines
1.3 KiB
C++
53 lines
1.3 KiB
C++
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
|
|
|
#ifndef musrPhysicsList_h
|
|
#define musrPhysicsList_h 1
|
|
|
|
#include "G4VUserPhysicsList.hh"
|
|
#include "globals.hh"
|
|
//cks Added to have Geant default muon decay with spin
|
|
#include "G4DecayWithSpin.hh"
|
|
//#include "musrDecayWithSpin.hh"
|
|
|
|
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
|
|
|
class musrPhysicsList: public G4VUserPhysicsList
|
|
{
|
|
public:
|
|
musrPhysicsList();
|
|
~musrPhysicsList();
|
|
|
|
protected:
|
|
// Construct particle and physics
|
|
void ConstructParticle();
|
|
void ConstructProcess();
|
|
|
|
void SetCuts();
|
|
|
|
|
|
protected:
|
|
// these methods Construct particles
|
|
void ConstructBosons();
|
|
void ConstructLeptons();
|
|
void ConstructMesons();
|
|
void ConstructBaryons();
|
|
|
|
protected:
|
|
// these methods Construct physics processes and register them
|
|
void ConstructGeneral();
|
|
void ConstructEM();
|
|
|
|
private:
|
|
// char myProcesses[100];
|
|
// G4String parameterFileName; // name of the file with the physics list defined
|
|
void ReportProblemWithProcessDefinition(char myString[501]);
|
|
G4Region* FindG4Region(G4String regionName, char* lineOfSteeringFile);
|
|
char eMessage[200];
|
|
};
|
|
|
|
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
|
|
|
#endif
|
|
|
|
|