#include "isf2RootTDS.cc" waveform(char* isfFile) { ISFTDS isf; isf.open(isfFile); isf.getPreamble(); isf.storePreamble(); isf.getCurveData(); double xmin = isf.XZERO; double xmax = isf.XZERO + isf.XINCR* isf.NR_PT; double ymin = isf.YMULT * ( -pow(2., isf.BIT_NR-1) - isf.YOFF); double ymax = isf.YMULT * ( pow(2., isf.BIT_NR-1) - isf.YOFF); TH2F* hpx = new TH2F("h","test", 10, xmin, xmax, 10, ymin, ymax); hpx->Draw(); TGraph* tg = new TGraph(isf.nPoints, isf.xp, isf.yp); tg->Draw(); }