// // // #include #include #include "hbook.h" int hb_init ( ) { int lrec, istat; float start, stop; int nBins; char chtaga[7][8]={"thres ","chan ","mean ", "ermean ","sigm ","ersig ", "chi2 "}; /* ------------------------------ */ /* open hbook rz output file */ /* ------------------------------ */ lrec = 4096; HROPEN (60,"topp", "out.rz", "N", lrec, istat); if ( istat != 0 ) { return 0; } /* --------------------------------------- */ /* book histograms */ /* --------------------------------------- */ start = 0.0f; stop = 100.0f; nBins = 100; HBOOK1 (1, "wire map", nBins, start, stop, 0.0f); HBOOK1 (2, "wire map", 100, 0.0f, 100.0f, 0.0f); /* --------------------------------------- */ /* book ntuple */ /* --------------------------------------- */ HBOOKN (10, "calib data", 7, "topp", 5000, chtaga); return 1; } // ===================================== // // ===================================== int hb_close () { int icycle; HROUT (0, icycle, " "); HREND ("topp"); return 1; }