#include <EDepSimSpillTimeFactory.hh>
|
G4String | CommandName (G4String cmd) |
| Build a command name with the directory prefix. More...
|
|
Definition at line 11 of file EDepSimSpillTimeFactory.hh.
Definition at line 11 of file EDepSimSpillTimeFactory.cc.
19 fSpillTimeCMD->SetGuidance(
"Set the start time of the spill.");
24 fBunchSepCMD->SetGuidance(
"Set the time between bunch starts.");
36 fBunchCountCMD->SetGuidance(
"Set the number of bunchs in a spill. " 37 "Reset bunch power to default.");
42 "(bunchs are numbered from ONE)");
43 G4UIparameter* bunchPar =
new G4UIparameter(
'i');
44 bunchPar->SetParameterName(
"bunch");
46 G4UIparameter* powerPar =
new G4UIparameter(
'd');
47 powerPar->SetParameterName(
"power");
G4UIcommand * fBunchPowerCMD
G4UIcmdWithAnInteger * fBunchCountCMD
double fBunchSeparation
The bunch separation.
G4UIcmdWithADoubleAndUnit * fBunchSepCMD
G4UIcmdWithADoubleAndUnit * fSpillTimeCMD
G4String CommandName(G4String cmd)
Build a command name with the directory prefix.
G4UIcmdWithADoubleAndUnit * fBunchLengthCMD
void SetBunchCount(int bunchs)
Set the number of bunchs (and reset the bunch power) in a spill.
double fSpillTime
The start time of the spill.
double fBunchLength
The bunch length.
EDepSim::SpillTimeFactory::~SpillTimeFactory |
( |
| ) |
|
|
virtual |
Definition at line 55 of file EDepSimSpillTimeFactory.cc.
G4UIcommand * fBunchPowerCMD
G4UIcmdWithAnInteger * fBunchCountCMD
G4UIcmdWithADoubleAndUnit * fBunchSepCMD
G4UIcmdWithADoubleAndUnit * fSpillTimeCMD
G4UIcmdWithADoubleAndUnit * fBunchLengthCMD
Return the spill time generator. The spill parameters must be set before this is called.
Implements EDepSim::VTimeFactory.
Definition at line 86 of file EDepSimSpillTimeFactory.cc.
double fBunchSeparation
The bunch separation.
double fSpillTime
The start time of the spill.
std::vector< double > fBunchPower
The power in each bunch.
double fBunchLength
The bunch length.
void EDepSim::SpillTimeFactory::SetBunchCount |
( |
int |
bunchs | ) |
|
Set the number of bunchs (and reset the bunch power) in a spill.
Definition at line 92 of file EDepSimSpillTimeFactory.cc.
std::vector< double > fBunchPower
The power in each bunch.
void EDepSim::SpillTimeFactory::SetBunchLength |
( |
double |
length | ) |
|
|
inline |
Set the bunch length. This is the length of a bunch, and determines the end of the bunch with respect to the start. The start of the bunch is determined by the spill time, and the bunch separation. The bunch is modeled as a Gaussian with a sigma set to the Bunch Length.
Definition at line 36 of file EDepSimSpillTimeFactory.hh.
double fBunchLength
The bunch length.
void EDepSim::SpillTimeFactory::SetBunchPower |
( |
int |
bunch, |
|
|
double |
power |
|
) |
| |
Set the power for a bunch. The bunchs are numbered from ONE, and the nominal (default) power in a bunch is 1.0.
Definition at line 101 of file EDepSimSpillTimeFactory.cc.
102 if (bunch<1 || (
unsigned) bunch >
fBunchPower.size()) {
#define EDepSimError(outStream)
std::vector< double > fBunchPower
The power in each bunch.
void EDepSim::SpillTimeFactory::SetBunchSeparation |
( |
double |
sep | ) |
|
|
inline |
Set the bunch separation. This is the time between the start of successive bunches.
Definition at line 30 of file EDepSimSpillTimeFactory.hh.
double fBunchSeparation
The bunch separation.
void EDepSim::SpillTimeFactory::SetNewValue |
( |
G4UIcommand * |
command, |
|
|
G4String |
newValue |
|
) |
| |
|
virtual |
Handle messages from the UI processor.
Reimplemented from EDepSim::VPrimaryFactory.
Definition at line 63 of file EDepSimSpillTimeFactory.cc.
78 std::istringstream
input((
char*)newValue.c_str());
81 input >> bunch >> power;
G4UIcommand * fBunchPowerCMD
G4UIcmdWithAnInteger * fBunchCountCMD
G4UIcmdWithADoubleAndUnit * fBunchSepCMD
void SetBunchSeparation(double sep)
void SetSpillTime(double spillTime)
G4UIcmdWithADoubleAndUnit * fSpillTimeCMD
void SetBunchLength(double length)
G4UIcmdWithADoubleAndUnit * fBunchLengthCMD
void SetBunchCount(int bunchs)
Set the number of bunchs (and reset the bunch power) in a spill.
void SetBunchPower(int bunch, double power)
void EDepSim::SpillTimeFactory::SetSpillTime |
( |
double |
spillTime | ) |
|
|
inline |
Set the spill time. The spill time is the offset of start of the first bunch with respect to zero. This is the time that the bunch will cross the center of the EDepSim:: hall.
Definition at line 23 of file EDepSimSpillTimeFactory.hh.
double fSpillTime
The start time of the spill.
G4UIcmdWithAnInteger* EDepSim::SpillTimeFactory::fBunchCountCMD |
|
private |
double EDepSim::SpillTimeFactory::fBunchLength |
|
private |
G4UIcmdWithADoubleAndUnit* EDepSim::SpillTimeFactory::fBunchLengthCMD |
|
private |
std::vector<double> EDepSim::SpillTimeFactory::fBunchPower |
|
private |
G4UIcommand* EDepSim::SpillTimeFactory::fBunchPowerCMD |
|
private |
double EDepSim::SpillTimeFactory::fBunchSeparation |
|
private |
G4UIcmdWithADoubleAndUnit* EDepSim::SpillTimeFactory::fBunchSepCMD |
|
private |
double EDepSim::SpillTimeFactory::fSpillTime |
|
private |
G4UIcmdWithADoubleAndUnit* EDepSim::SpillTimeFactory::fSpillTimeCMD |
|
private |
The documentation for this class was generated from the following files: