Tsld025

    (note) parameters will become self explanatory using
    the boolean type
    /step/draw flag
    flag ( 1: true, 0: false)
    If we choose to use the value “true” or “false”, then we can set
    the candidate list such as
    G4String candidate = “true false”;
    How to set parameter range
    - the name of the parameter must not contain space chars.
    - currently user can use the following 8 operators of C++
    { >, >=, <, <=, ==, !=, &&, || }
    The following is an example of setting the parameterRange
    param= new G4UIparameter ("theta", 'd', true);
    param->set_guidance("degrees");
    param->set_parameterRange("0 <= theta && theta <= 360");

Previous slide Next slide Back to first slide View graphic version