musrsim/geant4/spin_rot/include/sr1DetectorMessenger.hh
2008-12-22 17:53:30 +00:00

58 lines
1.7 KiB
C++

//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#ifndef sr1DetectorMessenger_h
#define sr1DetectorMessenger_h 1
#include "globals.hh"
#include "G4UImessenger.hh"
class sr1DetectorConstruction;
class G4UIdirectory;
class G4UIcmdWithAString;
class G4UIcmdWithADoubleAndUnit;
class G4UIcmdWithAnInteger;
class G4UIcmdWithoutParameter;
class G4UIcmdWith3Vector;
class G4UIcmdWith3VectorAndUnit;
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
class sr1DetectorMessenger: public G4UImessenger
{
public:
sr1DetectorMessenger(sr1DetectorConstruction*);
~sr1DetectorMessenger();
void SetNewValue(G4UIcommand*, G4String);
private:
sr1DetectorConstruction* myDetector;
G4UIdirectory* sr1Dir;
G4UIdirectory* detDir;
G4UIdirectory* runDir;
G4UIcmdWithAString* CommandCmd;
G4UIcmdWithAnInteger* RunIDSetCmd;
G4UIcmdWithAnInteger* RandomOptionCmd;
G4UIcmdWithAnInteger* HowOftenToPrintEventCmd;
// G4UIcmdWithAString* WhichProcessesCmd;
G4UIcmdWithoutParameter* UpdateCmd;
// G4UIcmdWithADoubleAndUnit* FieldCmd;
G4UIcmdWithADoubleAndUnit* UFieldCmd;
/// G4UIcmdWithADoubleAndUnit* UEFieldCmd; //Uniform Electric Field. TS
G4UIcmdWith3Vector* GFieldCmd;
public:
// cks: The two variables used for the random number initialisation each event (if required)
// long myEventNr;
// static G4bool setRandomNrSeedAccordingEventNr;
// void IncrementMyEventNr() {myEventNr++};
// long GetMyEventNr() {return myEventNr};
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#endif