Histogram archiving

In this example, the histograms in an existing HBOOK file are moved in a new HBOOK file in two separated directories according to their type.

Histogram archiving and directories into HBOOK files

1 HISTOGRAM/FILE 0 pawtut.hbook hi/li hrin * close 1 2 HISTOGRAM/FILE 0 pawtutnew.hbook ! N 3 MDIR 1Dhistograms 3 MDIR 2Dhistograms ldir cd 1Dhistograms 4 HROUT 514,30001,60202 ldir cd //LUN1/2Dhistograms 4 HROUT 8001,1103,11,12 ldir close 1

  1. Attach an existing HBOOK file.
  2. Create a new HBOOK file.
  3. Create two subdirectories in the file pawtutnew.hbook .
  4. Store the 1d and 2d histograms in two separated directories. Note that the ``Loop'' facility is used again here.

Output of LDIR

===> Directory : 10 (N) CERN Population 514 (1) Angular density 30001 (1) mix 60202 (1) p dy like 8001 (2) Data (gluino) 1103 (2) Charged particle theta vs. phi 11 (2) PHI VS. Y +VE WEIGHTED 12 (2) PHI VS. Y +VE WEIGHTED ************** Directory ===> //LUN1 <=== Created 930602/1428 Modified 930602/1428 ===> List of subdirectories 1DHISTOGRAMS Created 930602/1428 at record 3 2DHISTOGRAMS Created 930602/1428 at record 4 ===> List of objects HBOOK-ID VARIABLE CYCLE DATE/TIME NDATA ************** Directory ===> //LUN1/1DHISTOGRAMS <=== Created 930602/1428 Modified 930602/1428 ===> List of objects HBOOK-ID VARIABLE CYCLE DATE/TIME NDATA 514 0 1 930602/1428 153 30001 0 1 930602/1428 200 60202 0 1 930602/1428 152 ************** Directory ===> //LUN1/2DHISTOGRAMS <=== Created 930602/1428 Modified 930602/1428 ===> List of objects HBOOK-ID VARIABLE CYCLE DATE/TIME NDATA 8001 0 1 930602/1428 537 1103 0 1 930602/1428 5361 11 0 1 930602/1428 444 12 0 1 930602/1428 13114


Last update: 96/05/24 17.20
Olivier.Couet@Cern.Ch