#include #include "MainFrame.h" #include "ex2aLinkDef.h" #include #include #include #include #include #include "H1AnalysisExample/H1AnalysisExample.h" TROOT useMainFrame("gui","gui"); int main(int argc, char **argv){ TRint theApp("App", &argc,argv); // gROOT->Reset(); MainFrame* frame = new MainFrame(gClient->GetRoot(),500,500); // Open Root file containing analysis TFile* file = new TFile ("/afs/desy.de/user/l/lbdwyer/h1/oo/H1AnalysisExample/AnalysisExample.root"); //Read back analysis from ROOT file H1Analysis* analysis = ((H1Analysis*)(file->Get("AnalysisExample"))); // Set analysis equal to the name of the analysis on the ROOT file frame ->SetAnalysis(analysis); // gSystem->Exit(0); theApp.Run(kTRUE); return 0; }