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.
44 lines
967 B
C++
44 lines
967 B
C++
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
|
|
|
#ifndef musrEventAction_h
|
|
#define musrEventAction_h 1
|
|
|
|
#include "globals.hh"
|
|
#include "G4UserEventAction.hh"
|
|
class G4Timer;
|
|
class G4Event;
|
|
class musrMagneticField;
|
|
class musrTabulatedField3D;
|
|
class musrTabulatedField2D;
|
|
|
|
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
|
|
|
class musrEventAction : public G4UserEventAction
|
|
{
|
|
public:
|
|
musrEventAction();
|
|
~musrEventAction();
|
|
|
|
public:
|
|
void BeginOfEventAction(const G4Event*);
|
|
void EndOfEventAction(const G4Event*);
|
|
static musrEventAction* GetInstance();
|
|
|
|
private:
|
|
// pointer to this class
|
|
static musrEventAction* pointer;
|
|
//
|
|
G4Timer* timer;
|
|
// Variables for the time-dependent magnetic field
|
|
G4bool timeDependentField;
|
|
time_t timeOfRunStart;
|
|
|
|
public:
|
|
static G4int nHowOftenToPrintEvent;
|
|
static G4double maximumRunTimeAllowed;
|
|
};
|
|
|
|
#endif
|
|
|
|
|