This svn update includes several smaller corrections and updates accumulated over last few months: 1) For the Geant4.9.2 it was necessary to remove the privately modified file src/G4EqEMFieldWithSpin.cc. Our corrections in this file (and also in the file src/G4DecayWithSpin.cc) were adopted by the Geant developers into the official Geant code, and therefore these two files were deleted. However, if one uses older version of Geant (i.e. Geant4.9.1 or older), one should rename the G4EqEMFieldWithSpin.cc_for_Geant4.9.1_and_older in his/her src directory to G4EqEMFieldWithSpin.cc to correct for a Geant bug. 2) Implementation of save_polx, save_poly and save_polz variables 3) Implementation of the field map normalisation within the field map itself (was already possible for the field-map formats generated by Toni, now it is extended also for the field maps generated by OPERA). 4) Possibility to swap and invert x and y axis read out from the TURTLE file. 5) Perhaps some other tiny changes
74 lines
3.4 KiB
C++
74 lines
3.4 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* setStarttimeCmd; //P.B. 13 May 2009
|
|
G4UIcmdWithADoubleAndUnit* setStarttimeSigmaCmd; //P.B. 13 May 2009
|
|
G4UIcmdWithADoubleAndUnit* setKEnergyCmd;
|
|
G4UIcmdWithADoubleAndUnit* setMomentumCmd;
|
|
G4UIcmdWithADoubleAndUnit* setMomentumSmearingCmd;
|
|
G4UIcmdWith3VectorAndUnit* setMomentumBoundaryCmd;
|
|
G4UIcmdWith3VectorAndUnit* setTiltAngleCmd;
|
|
G4UIcmdWith3VectorAndUnit* setSigmaTiltAngleCmd;
|
|
G4UIcmdWithADoubleAndUnit* setPitchCmd;
|
|
G4UIcmdWith3Vector* setMuonPolarizCmd;
|
|
G4UIcmdWithADouble* setMuonPolarizFractionCmd;
|
|
G4UIcmdWith3VectorAndUnit* setMuonDecayTimeCmd;
|
|
G4UIcmdWithAString* setTurtleCmd;
|
|
G4UIcmdWithADoubleAndUnit* setTurtleZ0Cmd;
|
|
G4UIcmdWithAString* setTurtleInterpretAxesCmd;
|
|
G4UIcmdWith3Vector* setTurtleMomentumBite;
|
|
G4UIcmdWithAnInteger* setTurtleEventNrCmd;
|
|
};
|
|
#endif
|
|
|