83 lines
3.1 KiB
C++
Executable File
83 lines
3.1 KiB
C++
Executable File
//
|
|
// ********************************************************************
|
|
// * DISCLAIMER *
|
|
// * *
|
|
// * The following disclaimer summarizes all the specific disclaimers *
|
|
// * of contributors to this software. The specific disclaimers,which *
|
|
// * govern, are listed with their locations in: *
|
|
// * http://cern.ch/geant4/license *
|
|
// * *
|
|
// * Neither the authors of this software system, nor their employing *
|
|
// * institutes,nor the agencies providing financial support for this *
|
|
// * work make any representation or warranty, express or implied, *
|
|
// * regarding this software system or assume any liability for its *
|
|
// * use. *
|
|
// * *
|
|
// * This code implementation is the intellectual property of the *
|
|
// * GEANT4 collaboration. *
|
|
// * By copying, distributing or modifying the Program (or any work *
|
|
// * based on the Program) you indicate your acceptance of this *
|
|
// * statement, and all its terms. *
|
|
// ********************************************************************
|
|
//
|
|
#ifndef PrimaryGeneratorMessenger_h
|
|
#define PrimaryGeneratorMessenger_h 1
|
|
|
|
//---------------------------------------------------------------------------
|
|
//
|
|
// ClassName: PrimaryGeneratorAction
|
|
//
|
|
// Description: Definition of physics list parameters via UI interface
|
|
//
|
|
// Author: V.Ivanchenko 26/09/00
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
//
|
|
|
|
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
|
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
|
|
|
#include "globals.hh"
|
|
#include "G4UImessenger.hh"
|
|
#include "G4UIcmdWithADoubleAndUnit.hh"
|
|
#include "G4UIcmdWithADouble.hh"
|
|
#include "G4UIcmdWithAnInteger.hh"
|
|
#include "G4UIcmdWithAString.hh"
|
|
|
|
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
|
|
|
class PrimaryGeneratorAction;
|
|
|
|
class PrimaryGeneratorMessenger: public G4UImessenger
|
|
{
|
|
public:
|
|
|
|
PrimaryGeneratorMessenger(PrimaryGeneratorAction* gen);
|
|
~PrimaryGeneratorMessenger();
|
|
|
|
void SetNewValue(G4UIcommand* command, G4String newValue);
|
|
|
|
private:
|
|
|
|
PrimaryGeneratorAction* theGen;
|
|
|
|
G4UIcmdWithADoubleAndUnit* beamXCmd;
|
|
G4UIcmdWithADoubleAndUnit* beamYCmd;
|
|
G4UIcmdWithADoubleAndUnit* beamZCmd;
|
|
G4UIcmdWithADoubleAndUnit* beamECmd;
|
|
G4UIcmdWithADoubleAndUnit* sigmaXCmd;
|
|
G4UIcmdWithADoubleAndUnit* sigmaYCmd;
|
|
G4UIcmdWithADoubleAndUnit* sigmaZCmd;
|
|
G4UIcmdWithADoubleAndUnit* sigmaECmd;
|
|
G4UIcmdWithADoubleAndUnit* maxThetaCmd;
|
|
G4UIcmdWithADoubleAndUnit* sThetaCmd;
|
|
G4UIcmdWithADouble* beamBetaCmd;
|
|
G4UIcmdWithADouble* sigmaBetaCmd;
|
|
G4UIcmdWithAString* partCmd;
|
|
G4UIcmdWithAString* randCmd;
|
|
|
|
};
|
|
|
|
#endif
|
|
|