QwGeant4
QweakSimRint Class Reference

A ROOT command line interface. More...

#include <QweakSimRint.hh>

Inherits TRint.

+ Collaboration diagram for QweakSimRint:

Public Member Functions

 QweakSimRint (const char *appClassName, int *argc, char **argv, void *options=0, int numOptions=0, bool noLogo=kFALSE)
 Constructor. More...
 
virtual ~QweakSimRint ()
 Destructor. More...
 

Static Protected Attributes

static QweakSimRintfExists = NULL
 Check whether interface already existing. More...
 

Detailed Description

A ROOT command line interface.

The QwRint class implements a ROOT command line interface. It inherits from the ROOT interactive C++ interpreter TRint. All functionality available in ROOT is available in this interface. In particular, all histograms that are defined in memory or in a ROOT file are accessible under the path "/root/ROOT memory", while they are being filled. All Qweak specific class structures are available in an interactive mode.

Definition at line 25 of file QweakSimRint.hh.

Constructor & Destructor Documentation

QweakSimRint::QweakSimRint ( const char *  appClassName,
int *  argc,
char **  argv,
void *  options = 0,
int  numOptions = 0,
bool  noLogo = kFALSE 
)

Constructor.

Definition at line 18 of file QweakSimRint.cc.

References fExists.

20 : TRint (appClassName, argc, argv, options, numOptions, noLogo)
21 {
22  gQweakSimRint = this;
23 
24  // Qw-Root command prompt
25  SetPrompt("Qw-Root [%d] ");
26 
27  // Pointer to self
28  fExists = this;
29 }
R__EXTERN class QweakSimRint * gQweakSimRint
Definition: QweakSimRint.hh:9
static QweakSimRint * fExists
Check whether interface already existing.
Definition: QweakSimRint.hh:29
QweakSimRint::~QweakSimRint ( )
virtual

Destructor.

Definition at line 32 of file QweakSimRint.cc.

References fExists.

33 {
34  // Reset point to self
35  if (fExists == this)
36  fExists = NULL;
37 }
static QweakSimRint * fExists
Check whether interface already existing.
Definition: QweakSimRint.hh:29

Field Documentation

QweakSimRint * QweakSimRint::fExists = NULL
staticprotected

Check whether interface already existing.

Definition at line 29 of file QweakSimRint.hh.

Referenced by QweakSimRint(), and ~QweakSimRint().


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