#include "isf2RootDPO.cc" waveformDPO(char* isfFile) { ISFDPO isf; isf.open(isfFile); isf.getPreamble(); isf.storePreamble(); isf.getCurveData(); double xmin = isf.XZE; double xmax = isf.XZE + isf.XIN* isf.NR_P; double ymin = isf.YMU * ( -pow(2., isf.BIT_N-1) - isf.YOF); double ymax = isf.YMU * ( pow(2., isf.BIT_N-1) - isf.YOF); 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(); }