Chapter 5. Complete program listings.
create at the command line using the runvar command.
\param rExperiment - CExperiment& the experiment object.
\param rStartup - CInterpreterStartup& the interpreter startup
object.
\param rCore - CInterpreterCore& the core TCL interpreter
add on functionality. Normally you will obtain the run
variable command object and do CRunVariableCommand::Create
calls to add your run variables.
\note The base class creates key run variables. It is therefore
very important to be sure the base class version of this function is
called.
*/
void
CMyExperiment::SetupRunVariables(CExperiment& rExperiment,
CInterpreterStartup& rStartup,
CInterpreterCore& rCore)
{
CReadoutMain::SetupRunVariables(rExperiment, rStartup, rCore);
CRunVariableCommand& rCommand(*(rCore.getRunVariables()));
// Add your code below this commet. rCommand is a reference to the run variable
// commands object.
}
/*
This function allows you to create run state variables. Run state
variables are TCL variables that are write locked during a run. Their
values are logged to run state variable buffers at run state transitions.
An example of a run state variable is the run number; created by the
base class. An example of run variables you might like to create are
fixed run conditions, such as beam species, energy, target species,
trigger conditions etc.
The Tcl command statevar can also be used to create list and delete
state variables.
\param rExperiment - CExperiment& the experiment object.
\param rStartup - CInterpreterStartup& the interpreter startup
object.
\param rCore - CInterpreterCore& the core TCL interpreter
add on functionality. Normally you will obtain the
state variable command object and do CStateVariableCommand::Create
calls to add your run variables.
\note The base class creates key run variables. It is therefore
very important to be sure the base class version of this function is
called.
*/
void
CMyExperiment::SetupStateVariables(CExperiment& rExperiment,
51
Comentarios a estos manuales