HBOOK and ZBS
Deal with ZBS file, loop over event etc: (this work on suketto):
Trying to use Hbook function inside a comis routine inside a kumac:
It used to work fine on solaris machine like suketto, but not on Linux
If you have to access the information inside a histogram inside your comis routine then you can use the following trick:
- copy the histogram into a vector:
vec/cr v1(401)
h/get/con 30001 v1
- Then inside the comis function (or subroutine) define the vector the following way:
vector v1
- Then just use it as usual, if you want the content of the first bin, do a
test=v1(1)
And that should work!
This was done is the following kumac: mkbg.kumac
Note for more info go there. (And look for an example of application comis)
If hbook file not created, here are some suggestions:
Note when using a command like:
call hrput(0, pc_hbookfile, 'N')
where pc_hbookfile is the name of the file (character variable) make sure the there is no capital letter in the file name
because hbook will not understand them!!!
When using hrget make sure to have "" for empty option:
call hrget(101,'flux.hbk',"")