ATLAS Offline Software
Static Public Member Functions | List of all members
RootUtils::InitHist Class Reference

Initialize Root's getline history. More...

#include <InitHist.h>

Collaboration diagram for RootUtils::InitHist:

Static Public Member Functions

static void initialize ()
 Initialize Root's getline history. More...
 

Detailed Description

Initialize Root's getline history.

You'll need this if you use TTreeViewer using python as your interactive shell. TTreeViewer pushes information onto the getline history list. However, getline is initialized only when Cint is used as the shell. If that isn't the case, then such attempts to push to the history will crash.

Definition at line 31 of file InitHist.h.

Member Function Documentation

◆ initialize()

void RootUtils::InitHist::initialize ( )
static

Initialize Root's getline history.

This could (almost) just as well be a free function. The only reason to put it inside a class is that Root doesn't auto-load functions, only classes.

Definition at line 24 of file InitHist.cxx.

25 {
26  Gl_histinit(const_cast<char*> ("-"));
27 }

The documentation for this class was generated from the following files: