BBQ
tpceve.cxx
Go to the documentation of this file.
1 #include "TBBQManager.h"
2 #include "vistpc.h"
3 
4 // ROOT
5 
6 #include "TApplication.h"
7 #include "TSystem.h"
8 
9 // EVE
10 
11 #include "TEveBrowser.h"
12 
13 // gear docu in $GEAR/doc/html/index.html
14 // http://ilcagenda.linearcollider.org/getFile.py/access?contribId=0&resId=0&materialId=slides&confId=2930
15 // export LCIO=/afs/cern.ch/eng/clic/work/sailer/sl5/ilcsoft/v01-08afs/lcio/v01-12-03
16 // lcio docu in $LCIO/doc/doxygen_api/html/index.html
17 
18 int main(int argc, char* argv[]) {
19  TApplication *app = new TApplication("App", &argc, argv);
20 
21  gSystem->Load("libGeom");
22 
24 
25  app->Run(kTRUE);
26 
27  // It gives seg violation when using gBBQ instead of gEve.
28  //
29  // TEve doesn't know about BBQ. When TEveManager is destroyed, it doesn't
30  // set gBBQ to 0.
31  //
32  // When you quit the app using File->Quit ROOT it properly
33  // calls TBBQManager::Terminate.
34  // When you click the "close window" button, it doesn't.
35 
36  if (gEve && gEve->GetBrowser())
37  gEve->GetBrowser()->UnmapWindow();
38 
40 
41  app->Terminate(0);
42 
43  return 0;
44 }
static void Terminate()
static TBBQManager * Create(Bool_t map_window=kTRUE, Option_t *opt="FIV")
int main(int argc, char *argv[])
Definition: tpceve.cxx:18