LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
RootGraphicsEnabler.cxx File Reference

Hack to allow applications to use ROOT graphics. More...

#include "TROOT.h"
#include "TApplication.h"
#include "TGClient.h"
#include "TSystem.h"
#include "TVirtualX.h"
#include "TGX11.h"
#include <iostream>
#include <string>
#include <stdexcept>
#include <cstdlib>

Go to the source code of this file.

Detailed Description

Hack to allow applications to use ROOT graphics.

Author
Gianluca Petrillo (petri.nosp@m.llo@.nosp@m.fnal..nosp@m.gov)
Date
March 2, 2016

This library is a hack to the system to try to enable the usage of ROOT graphics.

The expected use is that the library that needs graphics statically links this one. Apparently, asking art to load RootGraphicsEnablingService (which links to this same library) via FHiCL file also works well enough.

The hack is copied from RootEnv.cc in nutools event display base utilities.

Definition in file RootGraphicsEnabler.cxx.