#include int TPKplotevent(char *title, vector &data, vector &data_offset, vector &drs_basemean, vector &drs_gainmean, vector &drs_triggeroffsetmean, UInt_t data_roi, size_t pixelnr) { TCanvas *canv = new TCanvas( "canv", "Mean values of the first event", 100, 10, 700, 500 ); TProfile *pix = new TProfile("pix", title, 1024, -0.5, 1023.5); for (UInt_t k=0; kFill(k,sample); } pix->Draw(); canv->Modified(); canv->Update(); cout << "Plotting successful..." << endl; return 0; }