2.2.3. Examples of use of the class TAttribute

The following instruction defines a pointer px to an unbounded variable x.

    TAttribute *px = new TAttribute("x");

The following instruction defines a pointer px to a variable x bounded between 0. and 1.

    TAttribute *px = new TAttribute("x", 0., 1.);

The following instruction defines a pointer px to a variable x bounded between -2. and 4. with \(\Delta P_{e}^{F_{iso}}\) as label:

    TAttribute *px = new TAttribute("x", -2.0, 4.0);
    px->setTitle("#Delta P_{e}^{F_{iso}}");

The following instruction defines a pointer px to a variable x that describes string

    TAttribute *px = new TAttribute("x", URANIE::DataServer::TAttribute::kString);