namespace test-h1d

test-h1d

Attributes

Name
h1
linspace
h2
logspace
h3
intNUM_SAMPLES
intexp
floatval
aos
s
s2
s1
area
su
Check the inclusion of underflow and overflow bins.
so
suo

Attributes Documentation

variable h1

h1 =  yoda.Histo1D(20, 0.0, 100.0, path="/foo", title="MyTitle");

variable linspace

linspace =  yoda.linspace(20, 0.0, 100.0);

variable h2

h2 =  yoda.Histo1D(linspace, path="/bar", title="Linearly spaced histo");

variable logspace

logspace =  yoda.logspace(20, 1.0, 64);

variable h3

h3 =  yoda.Histo1D(logspace, path="/baz", title="Log-spaced histo");

variable NUM_SAMPLES

int NUM_SAMPLES =  1000;

variable exp

int exp =  - (i-NUM_SAMPLES/2)**2 / float(NUM_SAMPLES/4);

variable val

float val =  2.718 ** exp;

variable aos

aos =  yoda.read("h1d.yoda");

variable s

s =  yoda.mkScatter(h1);

variable s2

s2 =  s.mkScatter();

variable s1

s1 =  yoda.mkScatter(h3);

variable area

area;

variable su

su =  yoda.mkScatter(h3, uflow_binwidth=1.0);

Check the inclusion of underflow and overflow bins.

variable so

so =  yoda.mkScatter(h3, oflow_binwidth=1.0);

variable suo

suo =  yoda.mkScatter(h3, uflow_binwidth=1.0, oflow_binwidth=1.0);

Updated on 2022-08-08 at 20:05:55 +0100