CFEL - ASG Software Suite  2.5.0
CASS
lucassview/main.cpp
Go to the documentation of this file.
1 //Copyright (C) 2011 Lutz Foucar
2 
3 /**
4  * @file lucassview/main.cpp file the main function of lucassview
5  *
6  * @author Lutz Foucar
7  */
8 #include <TRint.h>
9 #include <TROOT.h>
10 #include <iostream>
11 #include <string>
12 #include <memory>
13 
14 #include "histo_updater.h"
15 
16 
17 /** main function
18  *
19  * create an instance of the ROOT interpreter and the Histogramupdater. Assign
20  * the global variable the the HistogramUpdater instance. Then run the startup
21  * script before letting the ROOT eventloop take over.
22  *
23  * @author Lutz Foucar
24  */
25 int main(int argc, char *argv[])
26 {
27  using namespace std;
28  TRint theApp("App", &argc, argv);
29  auto_ptr<HistogramUpdater> histUp(new HistogramUpdater("daq-amo-mon02",12321));
30  gCASSClient = histUp.get();
31  gROOT->ProcessLine(".x lucassStartup.C");
32  theApp.Run();
33  return 0;
34 }
R__EXTERN HistogramUpdater * gCASSClient
global acces variable for updater
STL namespace.
int main(int argc, char *argv[])
main function
file contains the classes that update histograms