Kamil Sedlak 2009-05-18
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.
This commit is contained in:
43
include/musrEventAction.hh
Normal file
43
include/musrEventAction.hh
Normal file
@ -0,0 +1,43 @@
|
||||
//....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
|
||||
|
||||
|
Reference in New Issue
Block a user