Exchange of histograms between different machines

[sec:histogram-transfer]

HBOOK files are by default created in exchange mode. They can be transported between machines using the standard binary FTP or they can be NFS mounted in a heterogeneous environment.

Transfer between Unix machines with FTP

$ ftp remote
ftp> bin
ftp> get remote.hbook

Transfer from CERNVM to a Unix workstation

On CERNVM type the following:

CMS FTP workstation
ftp> BIN F 4096     ! block size in bytes
ftp> PUT file.hbook

Running FTP on a Vax/VMS systen

$ ftp remote
ftp> bin
ftp> get remote.hbook
ftp> quit
$ resize -s 4096 remote.hbook;1

The resize command does not copy the file. It simply changes the header information, from 512 byte records to 4096 bytes. In case the block size of the LREC parameter of routine HROPEN), i.e. 4096 bytes, specify the corresponding value as parameter to the resize command.

The resize tool is available on request from the CERN Program Library.

+

Proposed-HBOOK-file-naming-convention

--------------------------+ |Users are encouraged to name their HBOOK files with the suffix | |.hbook, so that the PAW++ browser will be able to recognize | |these files automatically. | +------------------------------------------------------------------------+