Added possibility to use mu- (or other particles) as the primary particles in the G4ParticleGun (this option can be switched on by /gun/primaryparticle ).
71 lines
3.2 KiB
C++
71 lines
3.2 KiB
C++
/***************************************************************************
|
|
* musrSim - the program for the simulation of (mainly) muSR instruments. *
|
|
* More info on http://lmu.web.psi.ch/simulation/index.html . *
|
|
* musrSim is based od Geant4 (http://geant4.web.cern.ch/geant4/) *
|
|
* *
|
|
* Copyright (C) 2009 by Paul Scherrer Institut, 5232 Villigen PSI, *
|
|
* Switzerland *
|
|
* *
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
* it under the terms of the GNU General Public License as published by *
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
* (at your option) any later version. *
|
|
* *
|
|
* This program is distributed in the hope that it will be useful, *
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
* GNU General Public License for more details. *
|
|
* *
|
|
* You should have received a copy of the GNU General Public License *
|
|
* along with this program; if not, write to the Free Software *
|
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
|
|
***************************************************************************/
|
|
|
|
#ifndef musrPrimaryGeneratorMessenger_h
|
|
#define musrPrimaryGeneratorMessenger_h 1
|
|
|
|
#include "G4UImessenger.hh"
|
|
#include "globals.hh"
|
|
|
|
class musrPrimaryGeneratorAction;
|
|
class G4UIcmdWithAString;
|
|
class G4UIcmdWithADoubleAndUnit;
|
|
class G4UIcmdWithADouble;
|
|
class G4UIcmdWithAnInteger;
|
|
class G4UIcmdWith3VectorAndUnit;
|
|
class G4UIcmdWith3Vector;
|
|
|
|
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
|
|
|
class musrPrimaryGeneratorMessenger: public G4UImessenger
|
|
{
|
|
public:
|
|
musrPrimaryGeneratorMessenger(musrPrimaryGeneratorAction*);
|
|
~musrPrimaryGeneratorMessenger();
|
|
|
|
void SetNewValue(G4UIcommand*, G4String);
|
|
|
|
private:
|
|
musrPrimaryGeneratorAction* musrAction;
|
|
G4UIcmdWithAString* setPrimaryParticleCmd;
|
|
G4UIcmdWith3VectorAndUnit* setvertexCmd;
|
|
G4UIcmdWith3VectorAndUnit* setvertexSigmaCmd;
|
|
G4UIcmdWith3VectorAndUnit* setvertexBoundaryCmd;
|
|
G4UIcmdWithADoubleAndUnit* setKEnergyCmd;
|
|
G4UIcmdWithADoubleAndUnit* setMomentumCmd;
|
|
G4UIcmdWithADoubleAndUnit* setMomentumSmearingCmd;
|
|
G4UIcmdWith3VectorAndUnit* setMomentumBoundaryCmd;
|
|
G4UIcmdWith3VectorAndUnit* setTiltAngleCmd;
|
|
G4UIcmdWith3VectorAndUnit* setSigmaTiltAngleCmd;
|
|
G4UIcmdWithADoubleAndUnit* setPitchCmd;
|
|
G4UIcmdWith3Vector* setMuonPolarizCmd;
|
|
G4UIcmdWithADouble* setMuonPolarizFractionCmd;
|
|
G4UIcmdWith3VectorAndUnit* setMuonDecayTimeCmd;
|
|
G4UIcmdWithAString* setTurtleCmd;
|
|
G4UIcmdWithADoubleAndUnit* setTurtleZ0Cmd;
|
|
G4UIcmdWith3Vector* setTurtleMomentumBite;
|
|
G4UIcmdWithAnInteger* setTurtleEventNrCmd;
|
|
};
|
|
#endif
|
|
|