Logo ROOT  
Reference Guide
TROOT Class Reference

ROOT top level object description.

The TROOT object is the entry point to the ROOT system. The single instance of TROOT is accessible via the global gROOT. Using the gROOT pointer one has access to basically every object created in a ROOT based program. The TROOT object is essentially a container of several lists pointing to the main ROOT objects.

The following lists are accessible from gROOT object:

gROOT->GetListOfClasses
gROOT->GetListOfColors
gROOT->GetListOfTypes
gROOT->GetListOfGlobals
gROOT->GetListOfGlobalFunctions
gROOT->GetListOfFiles
gROOT->GetListOfMappedFiles
gROOT->GetListOfSockets
gROOT->GetListOfSecContexts
gROOT->GetListOfCanvases
gROOT->GetListOfStyles
gROOT->GetListOfFunctions
gROOT->GetListOfSpecials (for example graphical cuts)
gROOT->GetListOfGeometries
gROOT->GetListOfBrowsers
gROOT->GetListOfCleanups
gROOT->GetListOfMessageHandlers
#define gROOT
Definition: TROOT.h:406

The TROOT class provides also many useful services:

  • Get pointer to an object in any of the lists above
  • Time utilities TROOT::Time

The ROOT object must be created as a static object. An example of a main program creating an interactive version is shown below:

Example of a main program

#include "TRint.h"
int main(int argc, char **argv)
{
TRint *theApp = new TRint("ROOT example", &argc, argv);
// Init Intrinsics, build all windows, and enter event loop
theApp->Run();
return(0);
}
Definition: TRint.h:31
virtual void Run(Bool_t retrn=kFALSE)
Main application eventloop.
Definition: TRint.cxx:345
int main(int argc, char **argv)

Definition at line 93 of file TROOT.h.

Public Types

typedef std::vector< std::pair< std::string, int > > FwdDeclArgsToKeepCollection_t
 
- Public Types inherited from TObject
enum  {
  kIsOnHeap = 0x01000000 , kNotDeleted = 0x02000000 , kZombie = 0x04000000 , kInconsistent = 0x08000000 ,
  kBitMask = 0x00ffffff
}
 
enum  { kSingleKey = BIT(0) , kOverwrite = BIT(1) , kWriteDelete = BIT(2) }
 
enum  EDeprecatedStatusBits { kObjInCanvas = BIT(3) }
 
enum  EStatusBits {
  kCanDelete = BIT(0) , kMustCleanup = BIT(3) , kIsReferenced = BIT(4) , kHasUUID = BIT(5) ,
  kCannotPick = BIT(6) , kNoContextMenu = BIT(8) , kInvalidObject = BIT(13)
}
 

Public Member Functions

 TROOT (const char *name, const char *title, VoidFuncPtr_t *initfunc=0)
 Initialize the ROOT system. More...
 
virtual ~TROOT ()
 Clean up and free resources used by ROOT (files, network sockets, shared memory segments, etc.). More...
 
void AddClass (TClass *cl)
 Add a class to the list and map of classes. More...
 
void AddClassGenerator (TClassGenerator *gen)
 Add a class generator. More...
 
virtual void Append (TObject *obj, Bool_t replace=kFALSE)
 Append object to this directory. More...
 
void Browse (TBrowser *b)
 Add browsable objects to TBrowser. More...
 
Bool_t ClassSaved (TClass *cl)
 return class status bit kClassSaved for class cl This function is called by the SavePrimitive functions writing the C++ code for an object. More...
 
void CloseFiles ()
 Close any files and sockets that gROOT knows about. More...
 
void EndOfProcessCleanups ()
 Execute the cleanups necessary at the end of the process, in particular those that must be executed before the library start being unloaded. More...
 
virtual TObjectFindObject (const char *name) const
 Returns address of a ROOT object if it exists. More...
 
virtual TObjectFindObject (const TObject *obj) const
 Find an object in one Root folder. More...
 
virtual TObjectFindObjectAny (const char *name) const
 Return a pointer to the first object with name starting at //root. More...
 
virtual TObjectFindObjectAnyFile (const char *name) const
 Scan the memory lists of all files for an object with name. More...
 
const char * FindObjectClassName (const char *name) const
 Returns class name of a ROOT object including CINT globals. More...
 
const char * FindObjectPathName (const TObject *obj) const
 Return path name of obj somewhere in the //root/... path. More...
 
TObjectFindSpecialObject (const char *name, void *&where)
 Returns address and folder of a ROOT object if it exists. More...
 
TClassFindSTLClass (const char *name, Bool_t load, Bool_t silent=kFALSE) const
 return a TClass object corresponding to 'name' assuming it is an STL container. More...
 
void ForceStyle (Bool_t force=kTRUE)
 
Bool_t FromPopUp () const
 
TApplicationGetApplication () const
 
Int_t GetBuiltDate () const
 
Int_t GetBuiltTime () const
 
TClassGetClass (const char *name, Bool_t load=kTRUE, Bool_t silent=kFALSE) const
 Return pointer to class with name. Obsolete, use TClass::GetClass directly. More...
 
TClassGetClass (const std::type_info &typeinfo, Bool_t load=kTRUE, Bool_t silent=kFALSE) const
 Return pointer to class from its name. More...
 
TSeqCollectionGetClipboard () const
 
TColorGetColor (Int_t color) const
 Return address of color with index color. More...
 
const char * GetConfigFeatures () const
 
const char * GetConfigOptions () const
 
const char * GetCutClassName () const
 
const char * GetDefCanvasName () const
 
Bool_t GetEditHistograms () const
 
Int_t GetEditorMode () const
 
TFileGetFile () const
 
TFileGetFile (const char *name) const
 Return pointer to file with name. More...
 
Bool_t GetForceStyle () const
 
TObjectGetFunction (const char *name) const
 Return pointer to function with name. More...
 
TFunctionTemplateGetFunctionTemplate (const char *name)
 
TObjectGetGeometry (const char *name) const
 Return pointer to Geometry with name. More...
 
const char * GetGitBranch () const
 
const char * GetGitCommit () const
 
const char * GetGitDate ()
 Return date/time make was run. More...
 
TGlobalGetGlobal (const char *name, Bool_t load=kFALSE) const
 Return pointer to global variable by name. More...
 
TGlobalGetGlobal (const TObject *obj, Bool_t load=kFALSE) const
 Return pointer to global variable with address addr. More...
 
TFunctionGetGlobalFunction (const char *name, const char *params=0, Bool_t load=kFALSE)
 Return pointer to global function by name. More...
 
TFunctionGetGlobalFunctionWithPrototype (const char *name, const char *proto=0, Bool_t load=kFALSE)
 Return pointer to global function by name. More...
 
TInterpreterGetInterpreter () const
 
TListGetListOfBrowsables () const
 
TSeqCollectionGetListOfBrowsers () const
 
TSeqCollectionGetListOfCanvases () const
 
TCollectionGetListOfClasses () const
 
TCollectionGetListOfClassGenerators () const
 
TSeqCollectionGetListOfCleanups () const
 
TSeqCollectionGetListOfClosedObjects () const
 
TSeqCollectionGetListOfColors () const
 
TSeqCollectionGetListOfDataSets () const
 
TCollectionGetListOfEnums (Bool_t load=kFALSE)
 
TSeqCollectionGetListOfFiles () const
 
TCollectionGetListOfFunctionOverloads (const char *name) const
 Return the collection of functions named "name". More...
 
TCollectionGetListOfFunctions () const
 
TCollectionGetListOfFunctionTemplates ()
 
TSeqCollectionGetListOfGeometries () const
 
TCollectionGetListOfGlobalFunctions (Bool_t load=kFALSE)
 Return list containing the TFunctions currently defined. More...
 
TCollectionGetListOfGlobals (Bool_t load=kFALSE)
 Return list containing the TGlobals currently defined. More...
 
TSeqCollectionGetListOfMappedFiles () const
 
TSeqCollectionGetListOfMessageHandlers () const
 
TSeqCollectionGetListOfProofs () const
 
TSeqCollectionGetListOfSecContexts () const
 
TSeqCollectionGetListOfSockets () const
 
TSeqCollectionGetListOfSpecials () const
 
TSeqCollectionGetListOfStreamerInfo () const
 
TSeqCollectionGetListOfStyles () const
 
TSeqCollectionGetListOfTasks () const
 
TCollectionGetListOfTypes (Bool_t load=kFALSE)
 Return a dynamic list giving access to all TDataTypes (typedefs) currently defined. More...
 
Int_t GetNclasses () const
 
Int_t GetNtypes () const
 
TPluginManagerGetPluginManager () const
 
TFolderGetRootFolder () const
 
TVirtualPadGetSelectedPad () const
 
const TObjectGetSelectedPrimitive () const
 
TStyleGetStyle (const char *name) const
 Return pointer to style with name. More...
 
TDataTypeGetType (const char *name, Bool_t load=kFALSE) const
 Return pointer to type with name. More...
 
TProcessUUIDGetUUIDs () const
 
const char * GetVersion () const
 
Int_t GetVersionCode () const
 
Int_t GetVersionDate () const
 
Int_t GetVersionInt () const
 
Int_t GetVersionTime () const
 
const TStringGetWebDisplay () const
 
void Idle (UInt_t idleTimeInSec, const char *command=0)
 Execute command when system has been idle for idleTimeInSec seconds. More...
 
Int_t IgnoreInclude (const char *fname, const char *expandedfname)
 Return 1 if the name of the given include file corresponds to a class that is known to ROOT, e.g. More...
 
Bool_t IsBatch () const
 
Bool_t IsEscaped () const
 
Bool_t IsExecutingMacro () const
 
Bool_t IsFolder () const
 Returns kTRUE in case object contains browsable objects (like containers or lists of other objects). More...
 
Bool_t IsInterrupted () const
 
Bool_t IsLineProcessing () const
 
Bool_t IsProofServ () const
 
Bool_t IsRootFile (const char *filename) const
 Return true if the file is local and is (likely) to be a ROOT file. More...
 
Bool_t IsWebDisplay () const
 
Bool_t IsWebDisplayBatch () const
 
Int_t LoadClass (const char *classname, const char *libname, Bool_t check=kFALSE)
 Check if class "classname" is known to the interpreter (in fact, this check is not needed anymore, so classname is ignored). More...
 
TClassLoadClass (const char *name, Bool_t silent=kFALSE) const
 Helper function used by TClass::GetClass(). More...
 
Int_t LoadMacro (const char *filename, Int_t *error=0, Bool_t check=kFALSE)
 Load a macro in the interpreter's memory. More...
 
void ls (Option_t *option="") const
 To list all objects of the application. More...
 
Long_t Macro (const char *filename, Int_t *error=0, Bool_t padUpdate=kTRUE)
 Execute a macro in the interpreter. More...
 
TCanvasMakeDefCanvas () const
 Return a default canvas. More...
 
void Message (Int_t id, const TObject *obj)
 Process message id called by obj. More...
 
Bool_t MustClean () const
 
Long_t ProcessLine (const char *line, Int_t *error=0)
 Process interpreter command via TApplication::ProcessLine(). More...
 
Long_t ProcessLineFast (const char *line, Int_t *error=0)
 Process interpreter command directly via CINT interpreter. More...
 
Long_t ProcessLineSync (const char *line, Int_t *error=0)
 Process interpreter command via TApplication::ProcessLine(). More...
 
Bool_t ReadingObject () const
 Deprecated (will be removed in next release). More...
 
void RecursiveRemove (TObject *obj)
 Recursively remove this object from the list of Cleanups. More...
 
void RefreshBrowsers ()
 Refresh all browsers. More...
 
TObjectRemove (TObject *)
 Remove an object from the in-memory list. More...
 
void RemoveClass (TClass *)
 Remove a class from the list and map of classes. More...
 
void Reset (Option_t *option="")
 Delete all global interpreter objects created since the last call to Reset. More...
 
void SaveContext ()
 Save the current interpreter context. More...
 
void SetApplication (TApplication *app)
 
void SetBatch (Bool_t batch=kTRUE)
 
void SetCutClassName (const char *name="TCutG")
 Set the default graphical cut class name for the graphics editor By default the graphics editor creates an instance of a class TCutG. More...
 
void SetDefCanvasName (const char *name="c1")
 
void SetEditHistograms (Bool_t flag=kTRUE)
 
void SetEditorMode (const char *mode="")
 Set editor mode. More...
 
void SetEscape (Bool_t flag=kTRUE)
 
void SetExecutingMacro (Bool_t flag=kTRUE)
 
void SetFromPopUp (Bool_t flag=kTRUE)
 
void SetInterrupt (Bool_t flag=kTRUE)
 
void SetLineHasBeenProcessed ()
 
void SetLineIsProcessing ()
 
void SetMustClean (Bool_t flag=kTRUE)
 
void SetReadingObject (Bool_t flag=kTRUE)
 
void SetSelectedPad (TVirtualPad *pad)
 
void SetSelectedPrimitive (const TObject *obj)
 
void SetStyle (const char *stylename="Default")
 Change current style to style with name stylename. More...
 
void SetWebDisplay (const char *webdisplay)
 Specify where web graphics shall be rendered. More...
 
void Time (Int_t casetime=1)
 
Int_t Timer () const
 
- Public Member Functions inherited from TDirectory
 TDirectory ()
 Directory default constructor. More...
 
 TDirectory (const char *name, const char *title, Option_t *option="", TDirectory *motherDir=nullptr)
 Create a new Directory. More...
 
virtual ~TDirectory ()
 Destructor. More...
 
virtual void Add (TObject *obj, Bool_t replace=kFALSE)
 
virtual void Append (TObject *obj, Bool_t replace=kFALSE)
 Append object to this directory. More...
 
virtual Int_t AppendKey (TKey *)
 
void Browse (TBrowser *b) override
 Browse the content of the directory. More...
 
virtual void Build (TFile *motherFile=nullptr, TDirectory *motherDir=nullptr)
 
virtual Bool_t cd (const char *path=nullptr)
 Change current directory to "this" directory. More...
 
void Clear (Option_t *option="") override
 Delete all objects from a Directory list. More...
 
virtual TObjectCloneObject (const TObject *obj, Bool_t autoadd=kTRUE)
 Clone an object. More...
 
virtual void Close (Option_t *option="")
 Delete all objects from memory and directory structure itself. More...
 
void Copy (TObject &) const override
 Copy this to obj. More...
 
void Delete (const char *namecycle="") override
 Delete Objects or/and keys in a directory. More...
 
virtual void DeleteAll (Option_t *option="")
 Delete all objects from memory. More...
 
void Draw (Option_t *option="") override
 Fill Graphics Structure and Paint. More...
 
virtual TKeyFindKey (const char *) const
 
virtual TKeyFindKeyAny (const char *) const
 
TObjectFindObject (const char *name) const override
 Find object by name in the list of memory objects. More...
 
TObjectFindObject (const TObject *obj) const override
 Find object in the list of memory objects. More...
 
virtual TObjectFindObjectAny (const char *name) const
 Find object by name in the list of memory objects of the current directory or its sub-directories. More...
 
virtual TObjectFindObjectAnyFile (const char *) const
 
virtual TObjectGet (const char *namecycle)
 Return pointer to object identified by namecycle. More...
 
template<class T >
T * Get (const char *namecycle)
 See documentation of TDirectoryFile::Get(const char *namecycle) More...
 
virtual Int_t GetBufferSize () const
 
virtual TDirectoryGetDirectory (const char *namecycle, Bool_t printError=false, const char *funcname="GetDirectory")
 Find a directory using apath. More...
 
virtual TFileGetFile () const
 
virtual TKeyGetKey (const char *, Short_t=9999) const
 
virtual TListGetList () const
 
virtual TListGetListOfKeys () const
 
TObjectGetMother () const
 
TDirectoryGetMotherDir () const
 
virtual Int_t GetNbytesKeys () const
 
virtual Int_t GetNkeys () const
 
template<class T >
void GetObject (const char *namecycle, T *&ptr)
 
virtual voidGetObjectChecked (const char *namecycle, const char *classname)
 See documentation of TDirectory::GetObjectCheck(const char *namecycle, const TClass *cl) More...
 
virtual voidGetObjectChecked (const char *namecycle, const TClass *cl)
 Return pointer to object identified by namecycle if and only if the actual object is a type suitable to be stored as a pointer to a "expectedClass" If expectedClass is null, no check is performed. More...
 
virtual voidGetObjectUnchecked (const char *namecycle)
 Return pointer to object identified by namecycle. More...
 
virtual const char * GetPath () const
 Returns the full path of the directory. More...
 
virtual const char * GetPathStatic () const
 Returns the full path of the directory. More...
 
virtual Long64_t GetSeekDir () const
 
virtual Long64_t GetSeekKeys () const
 
virtual Long64_t GetSeekParent () const
 
TUUID GetUUID () const
 
Bool_t IsFolder () const override
 Returns kTRUE in case object contains browsable objects (like containers or lists of other objects). More...
 
virtual Bool_t IsModified () const
 
virtual Bool_t IsWritable () const
 
void ls (Option_t *option="") const override
 List Directory contents. More...
 
virtual TDirectorymkdir (const char *name, const char *title="", Bool_t returnExistingDirectory=kFALSE)
 Create a sub-directory "a" or a hierarchy of sub-directories "a/b/c/...". More...
 
virtual TFileOpenFile (const char *, Option_t *="", const char *="", Int_t=1, Int_t=0)
 
void Paint (Option_t *option="") override
 Paint all objects in the directory. More...
 
void Print (Option_t *option="") const override
 Print all objects in the directory. More...
 
virtual void Purge (Short_t=1)
 
virtual void pwd () const
 Print the path of the directory. More...
 
virtual void ReadAll (Option_t *="")
 
virtual Int_t ReadKeys (Bool_t=kTRUE)
 
virtual Int_t ReadTObject (TObject *, const char *)
 
void RecursiveRemove (TObject *obj) override
 Recursively remove object from a Directory. More...
 
virtual TObjectRemove (TObject *)
 Remove an object from the in-memory list. More...
 
virtual void rmdir (const char *name)
 Removes subdirectory from the directory When directory is deleted, all keys in all subdirectories will be read first and deleted from file (if exists) Equivalent call is Delete("name;*");. More...
 
virtual void Save ()
 
virtual Int_t SaveObjectAs (const TObject *, const char *="", Option_t *="") const
 Save object in filename, if filename is 0 or "", a file with "objectname.root" is created. More...
 
virtual void SaveSelf (Bool_t=kFALSE)
 
virtual void SetBufferSize (Int_t)
 
virtual void SetModified ()
 
virtual void SetMother (TObject *mother)
 
void SetName (const char *newname) override
 Set the name for directory If the directory name is changed after the directory was written once, ROOT currently would NOT change the name of correspondent key in the mother directory. More...
 
virtual void SetSeekDir (Long64_t)
 
virtual void SetTRefAction (TObject *, TObject *)
 
virtual void SetWritable (Bool_t)
 
Int_t Sizeof () const override
 Return size of the TNamed part of the TObject. More...
 
virtual Int_t Write (const char *=nullptr, Int_t=0, Int_t=0) const override
 Write this object to the current directory. More...
 
virtual Int_t Write (const char *=nullptr, Int_t=0, Int_t=0) override
 Write this object to the current directory. More...
 
virtual void WriteDirHeader ()
 
virtual void WriteKeys ()
 
template<class T >
Int_t WriteObject (const T *obj, const char *name, Option_t *option="", Int_t bufsize=0)
 
virtual Int_t WriteObjectAny (const void *, const char *, const char *, Option_t *="", Int_t=0)
 
virtual Int_t WriteObjectAny (const void *, const TClass *, const char *, Option_t *="", Int_t=0)
 
virtual Int_t WriteTObject (const TObject *obj, const char *name=nullptr, Option_t *="", Int_t=0)
 See TDirectoryFile::WriteTObject for details. More...
 
- Public Member Functions inherited from TNamed
 TNamed ()
 
 TNamed (const char *name, const char *title)
 
 TNamed (const TNamed &named)
 TNamed copy ctor. More...
 
 TNamed (const TString &name, const TString &title)
 
virtual ~TNamed ()
 TNamed destructor. More...
 
virtual void Clear (Option_t *option="")
 Set name and title to empty strings (""). More...
 
virtual TObjectClone (const char *newname="") const
 Make a clone of an object using the Streamer facility. More...
 
virtual Int_t Compare (const TObject *obj) const
 Compare two TNamed objects. More...
 
virtual void Copy (TObject &named) const
 Copy this to obj. More...
 
virtual void FillBuffer (char *&buffer)
 Encode TNamed into output buffer. More...
 
virtual const char * GetName () const
 Returns name of object. More...
 
virtual const char * GetTitle () const
 Returns title of object. More...
 
virtual ULong_t Hash () const
 Return hash value for this object. More...
 
virtual Bool_t IsSortable () const
 
virtual void ls (Option_t *option="") const
 List TNamed name and title. More...
 
TNamedoperator= (const TNamed &rhs)
 TNamed assignment operator. More...
 
virtual void Print (Option_t *option="") const
 Print TNamed name and title. More...
 
virtual void SetName (const char *name)
 Set the name of the TNamed. More...
 
virtual void SetNameTitle (const char *name, const char *title)
 Set all the TNamed parameters (name and title). More...
 
virtual void SetTitle (const char *title="")
 Set the title of the TNamed. More...
 
virtual Int_t Sizeof () const
 Return size of the TNamed part of the TObject. More...
 
- Public Member Functions inherited from TObject
 TObject ()
 TObject constructor. More...
 
 TObject (const TObject &object)
 TObject copy ctor. More...
 
virtual ~TObject ()
 TObject destructor. More...
 
void AbstractMethod (const char *method) const
 Use this method to implement an "abstract" method that you don't want to leave purely abstract. More...
 
virtual void AppendPad (Option_t *option="")
 Append graphics object to current pad. More...
 
virtual void Browse (TBrowser *b)
 Browse object. May be overridden for another default action. More...
 
ULong_t CheckedHash ()
 Check and record whether this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object. More...
 
virtual const char * ClassName () const
 Returns name of class to which the object belongs. More...
 
virtual void Clear (Option_t *="")
 
virtual TObjectClone (const char *newname="") const
 Make a clone of an object using the Streamer facility. More...
 
virtual Int_t Compare (const TObject *obj) const
 Compare abstract method. More...
 
virtual void Copy (TObject &object) const
 Copy this to obj. More...
 
virtual void Delete (Option_t *option="")
 Delete this object. More...
 
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
 Computes distance from point (px,py) to the object. More...
 
virtual void Draw (Option_t *option="")
 Default Draw method for all objects. More...
 
virtual void DrawClass () const
 Draw class inheritance tree of the class to which this object belongs. More...
 
virtual TObjectDrawClone (Option_t *option="") const
 Draw a clone of this object in the current selected pad for instance with: gROOT->SetSelectedPad(gPad). More...
 
virtual void Dump () const
 Dump contents of object on stdout. More...
 
virtual void Error (const char *method, const char *msgfmt,...) const
 Issue error message. More...
 
virtual void Execute (const char *method, const char *params, Int_t *error=0)
 Execute method on this object with the given parameter string, e.g. More...
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=0)
 Execute method on this object with parameters stored in the TObjArray. More...
 
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 Execute action corresponding to an event at (px,py). More...
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 Issue fatal error message. More...
 
virtual TObjectFindObject (const char *name) const
 Must be redefined in derived classes. More...
 
virtual TObjectFindObject (const TObject *obj) const
 Must be redefined in derived classes. More...
 
virtual Option_tGetDrawOption () const
 Get option used by the graphics system to draw this object. More...
 
virtual const char * GetIconName () const
 Returns mime type name of object. More...
 
virtual const char * GetName () const
 Returns name of object. More...
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 Returns string containing info about the object at position (px,py). More...
 
virtual Option_tGetOption () const
 
virtual const char * GetTitle () const
 Returns title of object. More...
 
virtual UInt_t GetUniqueID () const
 Return the unique object id. More...
 
virtual Bool_t HandleTimer (TTimer *timer)
 Execute action in response of a timer timing out. More...
 
virtual ULong_t Hash () const
 Return hash value for this object. More...
 
Bool_t HasInconsistentHash () const
 Return true is the type of this object is known to have an inconsistent setup for Hash and RecursiveRemove (i.e. More...
 
virtual void Info (const char *method, const char *msgfmt,...) const
 Issue info message. More...
 
virtual Bool_t InheritsFrom (const char *classname) const
 Returns kTRUE if object inherits from class "classname". More...
 
virtual Bool_t InheritsFrom (const TClass *cl) const
 Returns kTRUE if object inherits from TClass cl. More...
 
virtual void Inspect () const
 Dump contents of this object in a graphics canvas. More...
 
void InvertBit (UInt_t f)
 
virtual Bool_t IsEqual (const TObject *obj) const
 Default equal comparison (objects are equal if they have the same address in memory). More...
 
virtual Bool_t IsFolder () const
 Returns kTRUE in case object contains browsable objects (like containers or lists of other objects). More...
 
R__ALWAYS_INLINE Bool_t IsOnHeap () const
 
virtual Bool_t IsSortable () const
 
R__ALWAYS_INLINE Bool_t IsZombie () const
 
virtual void ls (Option_t *option="") const
 The ls function lists the contents of a class on stdout. More...
 
void MayNotUse (const char *method) const
 Use this method to signal that a method (defined in a base class) may not be called in a derived class (in principle against good design since a child class should not provide less functionality than its parent, however, sometimes it is necessary). More...
 
virtual Bool_t Notify ()
 This method must be overridden to handle object notification. More...
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 Use this method to declare a method obsolete. More...
 
void operator delete (void *ptr)
 Operator delete. More...
 
void operator delete[] (void *ptr)
 Operator delete []. More...
 
voidoperator new (size_t sz)
 
voidoperator new (size_t sz, void *vp)
 
voidoperator new[] (size_t sz)
 
voidoperator new[] (size_t sz, void *vp)
 
TObjectoperator= (const TObject &rhs)
 TObject assignment operator. More...
 
virtual void Paint (Option_t *option="")
 This method must be overridden if a class wants to paint itself. More...
 
virtual void Pop ()
 Pop on object drawn in a pad to the top of the display list. More...
 
virtual void Print (Option_t *option="") const
 This method must be overridden when a class wants to print itself. More...
 
virtual Int_t Read (const char *name)
 Read contents of object with specified name from the current directory. More...
 
virtual void RecursiveRemove (TObject *obj)
 Recursively remove this object from a list. More...
 
void ResetBit (UInt_t f)
 
virtual void SaveAs (const char *filename="", Option_t *option="") const
 Save this object in the file specified by filename. More...
 
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
 Save a primitive as a C++ statement(s) on output stream "out". More...
 
void SetBit (UInt_t f)
 
void SetBit (UInt_t f, Bool_t set)
 Set or unset the user status bits as specified in f. More...
 
virtual void SetDrawOption (Option_t *option="")
 Set drawing option for object. More...
 
virtual void SetUniqueID (UInt_t uid)
 Set the unique object id. More...
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 Issue system error message. More...
 
R__ALWAYS_INLINE Bool_t TestBit (UInt_t f) const
 
Int_t TestBits (UInt_t f) const
 
virtual void UseCurrentStyle ()
 Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked. More...
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 Issue warning message. More...
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0)
 Write this object to the current directory. More...
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const
 Write this object to the current directory. More...
 

Static Public Member Functions

static const std::vector< std::string > & AddExtraInterpreterArgs (const std::vector< std::string > &args)
 Provide command line arguments to the interpreter construction. More...
 
static Int_t ConvertVersionCode2Int (Int_t code)
 Convert version code to an integer, i.e. 331527 -> 51507. More...
 
static Int_t ConvertVersionInt2Code (Int_t v)
 Convert version as an integer to version code as used in RVersion.h. More...
 
static Int_t DecreaseDirLevel ()
 Decrease the indentation level for ls(). More...
 
static const TStringGetBinDir ()
 Get the binary directory in the installation. Static utility function. More...
 
static const TStringGetDataDir ()
 Get the data directory in the installation. Static utility function. More...
 
static Int_t GetDirLevel ()
 return directory level More...
 
static const TStringGetDocDir ()
 Get the documentation directory in the installation. Static utility function. More...
 
static const TStringGetEtcDir ()
 Get the sysconfig directory in the installation. Static utility function. More...
 
static const char **& GetExtraInterpreterArgs ()
 INTERNAL function! Used by rootcling to inject interpreter arguments through a C-interface layer. More...
 
static const TStringGetIconPath ()
 Get the icon path in the installation. Static utility function. More...
 
static const TStringGetIncludeDir ()
 Get the include directory in the installation. Static utility function. More...
 
static const TStringGetLibDir ()
 Get the library directory in the installation. Static utility function. More...
 
static const TStringGetMacroDir ()
 Get the macro directory in the installation. Static utility function. More...
 
static const char * GetMacroPath ()
 Get macro search path. Static utility function. More...
 
static const TStringGetRootSys ()
 Get the rootsys directory in the installation. Static utility function. More...
 
static const TStringGetSourceDir ()
 Get the source directory in the installation. Static utility function. More...
 
static const TStringGetTTFFontDir ()
 Get the fonts directory in the installation. Static utility function. More...
 
static const TStringGetTutorialDir ()
 Get the tutorials directory in the installation. Static utility function. More...
 
static const char * GetTutorialsDir ()
 Get the tutorials directory in the installation. More...
 
static Int_t IncreaseDirLevel ()
 Increase the indentation level for ls(). More...
 
static void IndentLevel ()
 Functions used by ls() to indent an object hierarchy. More...
 
static void Initialize ()
 Initialize ROOT explicitly. More...
 
static Bool_t Initialized ()
 Return kTRUE if the TROOT object has been initialized. More...
 
static Bool_t MemCheck ()
 Return kTRUE if the memory leak checker is on. More...
 
static void RegisterModule (const char *modulename, const char **headers, const char **includePaths, const char *payLoadCode, const char *fwdDeclCode, void(*triggerFunc)(), const FwdDeclArgsToKeepCollection_t &fwdDeclsArgToSkip, const char **classesHeaders, bool hasCxxModule=false)
 Called by static dictionary initialization to register clang modules for headers. More...
 
static Int_t RootVersionCode ()
 Return ROOT version code as defined in RVersion.h. More...
 
static void SetDirLevel (Int_t level=0)
 Return Indentation level for ls(). More...
 
static void SetMacroPath (const char *newpath)
 Set or extend the macro search path. More...
 
static void ShutDown ()
 Shut down ROOT. More...
 
- Static Public Member Functions inherited from TDirectory
static void AddDirectory (Bool_t add=kTRUE)
 Sets the flag controlling the automatic add objects like histograms, TGraph2D, etc in memory. More...
 
static Bool_t AddDirectoryStatus ()
 Static function: see TDirectory::AddDirectory for more comments. More...
 
static Bool_t Cd (const char *path)
 Change current directory to "path". More...
 
static TDirectory *& CurrentDirectory ()
 Return the current directory for the current thread. More...
 
static void DecodeNameCycle (const char *namecycle, char *name, Short_t &cycle, const size_t namesize=0)
 Decode a namecycle "aap;2" into name "aap" and cycle "2". More...
 
static void EncodeNameCycle (char *buffer, const char *name, Short_t cycle)
 Encode the name and cycle into buffer like: "aap;2". More...
 
- Static Public Member Functions inherited from TObject
static Long_t GetDtorOnly ()
 Return destructor only flag. More...
 
static Bool_t GetObjectStat ()
 Get status of object stat flag. More...
 
static void SetDtorOnly (void *obj)
 Set destructor only flag. More...
 
static void SetObjectStat (Bool_t stat)
 Turn on/off tracking of objects in the TObjectTable. More...
 

Protected Types

typedef std::atomic< TListOfEnums * > AListOfEnums_t
 
- Protected Types inherited from TObject
enum  { kOnlyPrepStep = BIT(3) }
 

Protected Member Functions

 TROOT ()
 Default ctor. More...
 
TListOfFunctionsGetGlobalFunctions ()
 Internal routine returning, and creating if necessary, the list of global function. More...
 
void InitInterpreter ()
 Initialize the interpreter. More...
 
void InitSystem ()
 Initialize operating system interface. More...
 
void InitThreads ()
 Load and initialize thread library. More...
 
voidoperator new (size_t l)
 
voidoperator new (size_t l, void *ptr)
 
void ReadGitInfo ()
 Read Git commit information and branch name from the etc/gitinfo.txt file. More...
 
- Protected Member Functions inherited from TDirectory
 TDirectory (const TDirectory &directory)=delete
 
void BuildDirectory (TFile *motherFile, TDirectory *motherDir)
 Initialise directory to defaults. More...
 
Bool_t cd1 (const char *path)
 flag to add histograms, graphs,etc to the directory More...
 
void CleanTargets ()
 Clean the pointers to this object (gDirectory, TContext, etc.). More...
 
void FillFullPath (TString &buf) const
 Recursive method to fill full path for directory. More...
 
void operator= (const TDirectory &)=delete
 
void RegisterContext (TContext *ctxt)
 Register a TContext pointing to this TDirectory object. More...
 
void UnregisterContext (TContext *ctxt)
 UnRegister a TContext pointing to this TDirectory object. More...
 
- Protected Member Functions inherited from TObject
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 Interface to ErrorHandler (protected). More...
 
void MakeZombie ()
 

Protected Attributes

std::atomic< TApplication * > fApplication
 
Bool_t fBatch
 
TListfBrowsables
 
TSeqCollectionfBrowsers
 
Int_t fBuiltDate
 
Int_t fBuiltTime
 
TSeqCollectionfCanvases
 
TCollectionfClasses
 
TCollectionfClassGenerators
 
TSeqCollectionfCleanups
 
TSeqCollectionfClipboard
 
TSeqCollectionfClosedObjects
 
TSeqCollectionfColors
 
TString fConfigFeatures
 
TString fConfigOptions
 
TString fCutClassName
 
TSeqCollectionfDataSets
 
TString fDefCanvasName
 
Bool_t fEditHistograms
 
Int_t fEditorMode
 
AListOfEnums_t fEnums
 
Bool_t fEscape
 
Bool_t fExecutingMacro
 
TSeqCollectionfFiles
 
Bool_t fForceStyle
 
Bool_t fFromPopUp
 
TListOfFunctionTemplatesfFuncTemplate
 
TCollectionfFunctions
 
TSeqCollectionfGeometries
 
TString fGitBranch
 
TString fGitCommit
 
TString fGitDate
 
TListOfFunctionsfGlobalFunctions
 
TListOfDataMembersfGlobals
 
TInterpreterfInterpreter
 
Bool_t fInterrupt
 
Bool_t fIsWebDisplay
 
Bool_t fIsWebDisplayBatch
 
TSeqCollectionfMappedFiles
 
TSeqCollectionfMessageHandlers
 
Bool_t fMustClean
 
TPluginManagerfPluginManager
 
const TObjectfPrimitive
 
TSeqCollectionfProofs
 
Bool_t fReadingObject
 
TFolderfRootFolder
 
TSeqCollectionfSecContexts
 
TVirtualPadfSelectPad
 
TSeqCollectionfSockets
 
TSeqCollectionfSpecials
 
TSeqCollectionfStreamerInfo
 
TSeqCollectionfStyles
 
TSeqCollectionfTasks
 
Int_t fTimer
 
TCollectionfTypes
 
TProcessUUIDfUUIDs
 
TString fVersion
 
Int_t fVersionCode
 
Int_t fVersionDate
 
Int_t fVersionInt
 
Int_t fVersionTime
 
TString fWebDisplay
 
- Protected Attributes inherited from TDirectory
TContextfContext {nullptr}
 Buffer for GetPath() function. More...
 
std::atomic< size_t > fContextPeg
 Pointer to a list of TContext object pointing to this TDirectory. More...
 
TListfList {nullptr}
 
TObjectfMother {nullptr}
 
TString fPathBuffer
 
std::atomic_flag fSpinLock
 Counter delaying the TDirectory destructor from finishing. More...
 
TUUID fUUID
 
- Protected Attributes inherited from TNamed
TString fName
 
TString fTitle
 

Private Member Functions

 TROOT (const TROOT &)
 
TROOToperator= (const TROOT &)
 

Private Attributes

Int_t fLineIsProcessing
 

Static Private Attributes

static Int_t fgDirLevel = 0
 
static Bool_t fgMemCheck = kFALSE
 
static Bool_t fgRootInit = kFALSE
 

Friends

class ::ROOT::Internal::TROOTAllocator
 
TROOTROOT::Internal::GetROOT2 ()
 
class TCling
 

Additional Inherited Members

- Static Protected Member Functions inherited from TDirectory
static Bool_t Cd1 (const char *path)
 Change current directory to "path". More...
 
- Static Protected Attributes inherited from TDirectory
static Bool_t fgAddDirectory = kTRUE
 MSVC doesn't support = ATOMIC_FLAG_INIT;. More...
 

#include <TROOT.h>

Inheritance diagram for TROOT:
[legend]

Member Typedef Documentation

◆ AListOfEnums_t

typedef std::atomic<TListOfEnums*> TROOT::AListOfEnums_t
protected

Definition at line 109 of file TROOT.h.

◆ FwdDeclArgsToKeepCollection_t

typedef std::vector<std::pair<std::string, int> > TROOT::FwdDeclArgsToKeepCollection_t

Definition at line 188 of file TROOT.h.

Constructor & Destructor Documentation

◆ TROOT() [1/3]

TROOT::TROOT ( const TROOT )
private

◆ TROOT() [2/3]

TROOT::TROOT ( )
protected

Default ctor.

Definition at line 599 of file TROOT.cxx.

◆ TROOT() [3/3]

TROOT::TROOT ( const char *  name,
const char *  title,
VoidFuncPtr_t initfunc = 0 
)

Initialize the ROOT system.

The creation of the TROOT object initializes the ROOT system. It must be the first ROOT related action that is performed by a program. The TROOT object must be created on the stack (can not be called via new since "operator new" is protected). The TROOT object is either created as a global object (outside the main() program), or it is one of the first objects created in main(). Make sure that the TROOT object stays in scope for as long as ROOT related actions are performed. TROOT is a so called singleton so only one instance of it can be created. The single TROOT object can always be accessed via the global pointer gROOT. The name and title arguments can be used to identify the running application. The initfunc argument can contain an array of function pointers (last element must be 0). These functions are executed at the end of the constructor. This way one can easily extend the ROOT system without adding permanent dependencies (e.g. the graphics system is initialized via such a function).

Definition at line 633 of file TROOT.cxx.

◆ ~TROOT()

TROOT::~TROOT ( )
virtual

Clean up and free resources used by ROOT (files, network sockets, shared memory segments, etc.).

Definition at line 856 of file TROOT.cxx.

Member Function Documentation

◆ AddClass()

void TROOT::AddClass ( TClass cl)

Add a class to the list and map of classes.

This routine is deprecated, use TClass::AddClass directly.

Definition at line 994 of file TROOT.cxx.

◆ AddClassGenerator()

void TROOT::AddClassGenerator ( TClassGenerator generator)

Add a class generator.

This generator will be called by TClass::GetClass in case its does not find a loaded rootcint dictionary to request the creation of a TClass object.

Definition at line 1004 of file TROOT.cxx.

◆ AddExtraInterpreterArgs()

const std::vector< std::string > & TROOT::AddExtraInterpreterArgs ( const std::vector< std::string > &  args)
static

Provide command line arguments to the interpreter construction.

These arguments are added to the existing flags (e.g. -DNDEBUG). They are evaluated once per process, at the time where TROOT (and thus TInterpreter) is constructed. Returns the new flags.

Definition at line 2850 of file TROOT.cxx.

◆ Append()

void TROOT::Append ( TObject obj,
Bool_t  replace = kFALSE 
)
virtual

Append object to this directory.

If replace is true: remove any existing objects with the same same (if the name is not "")

Reimplemented from TDirectory.

Definition at line 1016 of file TROOT.cxx.

◆ Browse()

void TROOT::Browse ( TBrowser b)
virtual

Add browsable objects to TBrowser.

Reimplemented from TDirectory.

Definition at line 1025 of file TROOT.cxx.

◆ ClassSaved()

Bool_t TROOT::ClassSaved ( TClass cl)

return class status bit kClassSaved for class cl This function is called by the SavePrimitive functions writing the C++ code for an object.

Definition at line 1044 of file TROOT.cxx.

◆ CloseFiles()

void TROOT::CloseFiles ( )

Close any files and sockets that gROOT knows about.

This can be used to insures that the files and sockets are closed before any library is unloaded!

Definition at line 1118 of file TROOT.cxx.

◆ ConvertVersionCode2Int()

Int_t TROOT::ConvertVersionCode2Int ( Int_t  code)
static

Convert version code to an integer, i.e. 331527 -> 51507.

Definition at line 2820 of file TROOT.cxx.

◆ ConvertVersionInt2Code()

Int_t TROOT::ConvertVersionInt2Code ( Int_t  v)
static

Convert version as an integer to version code as used in RVersion.h.

Definition at line 2828 of file TROOT.cxx.

◆ DecreaseDirLevel()

Int_t TROOT::DecreaseDirLevel ( )
static

Decrease the indentation level for ls().

Definition at line 2677 of file TROOT.cxx.

◆ EndOfProcessCleanups()

void TROOT::EndOfProcessCleanups ( )

Execute the cleanups necessary at the end of the process, in particular those that must be executed before the library start being unloaded.

Definition at line 1196 of file TROOT.cxx.

◆ FindObject() [1/2]

TObject * TROOT::FindObject ( const char *  name) const
virtual

Returns address of a ROOT object if it exists.

If name contains at least one "/" the function calls FindObjectany else This function looks in the following order in the ROOT lists:

  • List of files
  • List of memory mapped files
  • List of functions
  • List of geometries
  • List of canvases
  • List of styles
  • List of specials
  • List of materials in current geometry
  • List of shapes in current geometry
  • List of matrices in current geometry
  • List of Nodes in current geometry
  • Current Directory in memory
  • Current Directory on file

Reimplemented from TDirectory.

Definition at line 1258 of file TROOT.cxx.

◆ FindObject() [2/2]

TObject * TROOT::FindObject ( const TObject obj) const
virtual

Find an object in one Root folder.

Reimplemented from TDirectory.

Definition at line 1232 of file TROOT.cxx.

◆ FindObjectAny()

TObject * TROOT::FindObjectAny ( const char *  name) const
virtual

Return a pointer to the first object with name starting at //root.

This function scans the list of all folders. if no object found in folders, it scans the memory list of all files.

Reimplemented from TDirectory.

Definition at line 1371 of file TROOT.cxx.

◆ FindObjectAnyFile()

TObject * TROOT::FindObjectAnyFile ( const char *  name) const
virtual

Scan the memory lists of all files for an object with name.

Reimplemented from TDirectory.

Definition at line 1381 of file TROOT.cxx.

◆ FindObjectClassName()

const char * TROOT::FindObjectClassName ( const char *  name) const

Returns class name of a ROOT object including CINT globals.

Definition at line 1398 of file TROOT.cxx.

◆ FindObjectPathName()

const char * TROOT::FindObjectPathName ( const TObject obj) const

Return path name of obj somewhere in the //root/... path.

The function returns the first occurence of the object in the list of folders. The returned string points to a static char array in TROOT. If this function is called in a loop or recursively, it is the user's responsibility to copy this string in their area.

Definition at line 1418 of file TROOT.cxx.

◆ FindSpecialObject()

TObject * TROOT::FindSpecialObject ( const char *  name,
void *&  where 
)

Returns address and folder of a ROOT object if it exists.

This function looks in the following order in the ROOT lists:

  • List of files
  • List of memory mapped files
  • List of functions
  • List of geometries
  • List of canvases
  • List of styles
  • List of specials
  • List of materials in current geometry
  • List of shapes in current geometry
  • List of matrices in current geometry
  • List of Nodes in current geometry
  • Current Directory in memory
  • Current Directory on file

Definition at line 1312 of file TROOT.cxx.

◆ FindSTLClass()

TClass * TROOT::FindSTLClass ( const char *  name,
Bool_t  load,
Bool_t  silent = kFALSE 
) const

return a TClass object corresponding to 'name' assuming it is an STL container.

In particular we looking for possible alternative name (default template parameter, typedefs template arguments, typedefed name).

Definition at line 1429 of file TROOT.cxx.

◆ ForceStyle()

void TROOT::ForceStyle ( Bool_t  force = kTRUE)
inline

Definition at line 207 of file TROOT.h.

◆ FromPopUp()

Bool_t TROOT::FromPopUp ( ) const
inline

Definition at line 208 of file TROOT.h.

◆ GetApplication()

TApplication * TROOT::GetApplication ( ) const
inline

Definition at line 210 of file TROOT.h.

◆ GetBinDir()

const TString & TROOT::GetBinDir ( )
static

Get the binary directory in the installation. Static utility function.

Definition at line 2887 of file TROOT.cxx.

◆ GetBuiltDate()

Int_t TROOT::GetBuiltDate ( ) const
inline

Definition at line 222 of file TROOT.h.

◆ GetBuiltTime()

Int_t TROOT::GetBuiltTime ( ) const
inline

Definition at line 223 of file TROOT.h.

◆ GetClass() [1/2]

TClass * TROOT::GetClass ( const char *  name,
Bool_t  load = kTRUE,
Bool_t  silent = kFALSE 
) const

Return pointer to class with name. Obsolete, use TClass::GetClass directly.

Definition at line 1463 of file TROOT.cxx.

◆ GetClass() [2/2]

TClass * TROOT::GetClass ( const std::type_info &  typeinfo,
Bool_t  load = kTRUE,
Bool_t  silent = kFALSE 
) const

Return pointer to class from its name.

Obsolete, use TClass::GetClass directly See TClass::GetClass

Definition at line 1473 of file TROOT.cxx.

◆ GetClipboard()

TSeqCollection * TROOT::GetClipboard ( ) const
inline

Definition at line 255 of file TROOT.h.

◆ GetColor()

TColor * TROOT::GetColor ( Int_t  color) const

Return address of color with index color.

Definition at line 1481 of file TROOT.cxx.

◆ GetConfigFeatures()

const char * TROOT::GetConfigFeatures ( ) const
inline

Definition at line 216 of file TROOT.h.

◆ GetConfigOptions()

const char * TROOT::GetConfigOptions ( ) const
inline

Definition at line 215 of file TROOT.h.

◆ GetCutClassName()

const char * TROOT::GetCutClassName ( ) const
inline

Definition at line 217 of file TROOT.h.

◆ GetDataDir()

const TString & TROOT::GetDataDir ( )
static

Get the data directory in the installation. Static utility function.

Definition at line 2949 of file TROOT.cxx.

◆ GetDefCanvasName()

const char * TROOT::GetDefCanvasName ( ) const
inline

Definition at line 218 of file TROOT.h.

◆ GetDirLevel()

Int_t TROOT::GetDirLevel ( )
static

return directory level

Definition at line 2685 of file TROOT.cxx.

◆ GetDocDir()

const TString & TROOT::GetDocDir ( )
static

Get the documentation directory in the installation. Static utility function.

Definition at line 2965 of file TROOT.cxx.

◆ GetEditHistograms()

Bool_t TROOT::GetEditHistograms ( ) const
inline

Definition at line 219 of file TROOT.h.

◆ GetEditorMode()

Int_t TROOT::GetEditorMode ( ) const
inline

Definition at line 220 of file TROOT.h.

◆ GetEtcDir()

const TString & TROOT::GetEtcDir ( )
static

Get the sysconfig directory in the installation. Static utility function.

Definition at line 2939 of file TROOT.cxx.

◆ GetExtraInterpreterArgs()

const char **& TROOT::GetExtraInterpreterArgs ( )
static

INTERNAL function! Used by rootcling to inject interpreter arguments through a C-interface layer.

Definition at line 2860 of file TROOT.cxx.

◆ GetFile() [1/2]

TFile * TROOT::GetFile ( ) const
inlinevirtual

Reimplemented from TDirectory.

Definition at line 261 of file TROOT.h.

◆ GetFile() [2/2]

TFile * TROOT::GetFile ( const char *  name) const

Return pointer to file with name.

Definition at line 1515 of file TROOT.cxx.

◆ GetForceStyle()

Bool_t TROOT::GetForceStyle ( ) const
inline

Definition at line 221 of file TROOT.h.

◆ GetFunction()

TObject * TROOT::GetFunction ( const char *  name) const

Return pointer to function with name.

Definition at line 1532 of file TROOT.cxx.

◆ GetFunctionTemplate()

TFunctionTemplate * TROOT::GetFunctionTemplate ( const char *  name)

Definition at line 1552 of file TROOT.cxx.

◆ GetGeometry()

TObject * TROOT::GetGeometry ( const char *  name) const

Return pointer to Geometry with name.

Definition at line 1681 of file TROOT.cxx.

◆ GetGitBranch()

const char * TROOT::GetGitBranch ( ) const
inline

Definition at line 225 of file TROOT.h.

◆ GetGitCommit()

const char * TROOT::GetGitCommit ( ) const
inline

Definition at line 224 of file TROOT.h.

◆ GetGitDate()

const char * TROOT::GetGitDate ( )

Return date/time make was run.

Definition at line 2405 of file TROOT.cxx.

◆ GetGlobal() [1/2]

TGlobal * TROOT::GetGlobal ( const char *  name,
Bool_t  load = kFALSE 
) const

Return pointer to global variable by name.

If load is true force reading of all currently defined globals from CINT (more expensive).

Definition at line 1565 of file TROOT.cxx.

◆ GetGlobal() [2/2]

TGlobal * TROOT::GetGlobal ( const TObject obj,
Bool_t  load = kFALSE 
) const

Return pointer to global variable with address addr.

Definition at line 1573 of file TROOT.cxx.

◆ GetGlobalFunction()

TFunction * TROOT::GetGlobalFunction ( const char *  function,
const char *  params = 0,
Bool_t  load = kFALSE 
)

Return pointer to global function by name.

If params != 0 it will also resolve overloading other it returns the first name match. If params == 0 and load is true force reading of all currently defined global functions from Cling. The param string must be of the form: "3189,\"aap\",1.3".

Definition at line 1619 of file TROOT.cxx.

◆ GetGlobalFunctions()

TListOfFunctions * TROOT::GetGlobalFunctions ( )
protected

Internal routine returning, and creating if necessary, the list of global function.

Definition at line 1597 of file TROOT.cxx.

◆ GetGlobalFunctionWithPrototype()

TFunction * TROOT::GetGlobalFunctionWithPrototype ( const char *  function,
const char *  proto = 0,
Bool_t  load = kFALSE 
)

Return pointer to global function by name.

If proto != 0 it will also resolve overloading. If load is true force reading of all currently defined global functions from CINT (more expensive). The proto string must be of the form: "int, char*, float".

Definition at line 1652 of file TROOT.cxx.

◆ GetIconPath()

const TString & TROOT::GetIconPath ( )
static

Get the icon path in the installation. Static utility function.

Definition at line 3055 of file TROOT.cxx.

◆ GetIncludeDir()

const TString & TROOT::GetIncludeDir ( )
static

Get the include directory in the installation. Static utility function.

Definition at line 2929 of file TROOT.cxx.

◆ GetInterpreter()

TInterpreter * TROOT::GetInterpreter ( ) const
inline

Definition at line 211 of file TROOT.h.

◆ GetLibDir()

const TString & TROOT::GetLibDir ( )
static

Get the library directory in the installation. Static utility function.

Definition at line 2908 of file TROOT.cxx.

◆ GetListOfBrowsables()

TList * TROOT::GetListOfBrowsables ( ) const
inline

Definition at line 259 of file TROOT.h.

◆ GetListOfBrowsers()

TSeqCollection * TROOT::GetListOfBrowsers ( ) const
inline

Definition at line 246 of file TROOT.h.

◆ GetListOfCanvases()

TSeqCollection * TROOT::GetListOfCanvases ( ) const
inline

Definition at line 241 of file TROOT.h.

◆ GetListOfClasses()

TCollection * TROOT::GetListOfClasses ( ) const
inline

Definition at line 232 of file TROOT.h.

◆ GetListOfClassGenerators()

TCollection * TROOT::GetListOfClassGenerators ( ) const
inline

Definition at line 252 of file TROOT.h.

◆ GetListOfCleanups()

TSeqCollection * TROOT::GetListOfCleanups ( ) const
inline

Definition at line 249 of file TROOT.h.

◆ GetListOfClosedObjects()

TSeqCollection * TROOT::GetListOfClosedObjects ( ) const
inline

Definition at line 237 of file TROOT.h.

◆ GetListOfColors()

TSeqCollection * TROOT::GetListOfColors ( ) const
inline

Definition at line 233 of file TROOT.h.

◆ GetListOfDataSets()

TSeqCollection * TROOT::GetListOfDataSets ( ) const
inline

Definition at line 256 of file TROOT.h.

◆ GetListOfEnums()

TCollection * TROOT::GetListOfEnums ( Bool_t  load = kFALSE)

Definition at line 1688 of file TROOT.cxx.

◆ GetListOfFiles()

TSeqCollection * TROOT::GetListOfFiles ( ) const
inline

Definition at line 238 of file TROOT.h.

◆ GetListOfFunctionOverloads()

TCollection * TROOT::GetListOfFunctionOverloads ( const char *  name) const

Return the collection of functions named "name".

Definition at line 1606 of file TROOT.cxx.

◆ GetListOfFunctions()

TCollection * TROOT::GetListOfFunctions ( ) const
inline

Definition at line 243 of file TROOT.h.

◆ GetListOfFunctionTemplates()

TCollection * TROOT::GetListOfFunctionTemplates ( )

Definition at line 1705 of file TROOT.cxx.

◆ GetListOfGeometries()

TSeqCollection * TROOT::GetListOfGeometries ( ) const
inline

Definition at line 245 of file TROOT.h.

◆ GetListOfGlobalFunctions()

TCollection * TROOT::GetListOfGlobalFunctions ( Bool_t  load = kFALSE)

Return list containing the TFunctions currently defined.

Since functions are created and deleted during execution of the program, we need to update the list of functions every time we execute this method. However, when calling this function in a (tight) loop where no interpreter symbols will be created you can set load=kFALSE (default).

Definition at line 1760 of file TROOT.cxx.

◆ GetListOfGlobals()

TCollection * TROOT::GetListOfGlobals ( Bool_t  load = kFALSE)

Return list containing the TGlobals currently defined.

Since globals are created and deleted during execution of the program, we need to update the list of globals every time we execute this method. However, when calling this function in a (tight) loop where no interpreter symbols will be created you can set load=kFALSE (default).

Definition at line 1722 of file TROOT.cxx.

◆ GetListOfMappedFiles()

TSeqCollection * TROOT::GetListOfMappedFiles ( ) const
inline

Definition at line 239 of file TROOT.h.

◆ GetListOfMessageHandlers()

TSeqCollection * TROOT::GetListOfMessageHandlers ( ) const
inline

Definition at line 251 of file TROOT.h.

◆ GetListOfProofs()

TSeqCollection * TROOT::GetListOfProofs ( ) const
inline

Definition at line 254 of file TROOT.h.

◆ GetListOfSecContexts()

TSeqCollection * TROOT::GetListOfSecContexts ( ) const
inline

Definition at line 253 of file TROOT.h.

◆ GetListOfSockets()

TSeqCollection * TROOT::GetListOfSockets ( ) const
inline

Definition at line 240 of file TROOT.h.

◆ GetListOfSpecials()

TSeqCollection * TROOT::GetListOfSpecials ( ) const
inline

Definition at line 247 of file TROOT.h.

◆ GetListOfStreamerInfo()

TSeqCollection * TROOT::GetListOfStreamerInfo ( ) const
inline

Definition at line 250 of file TROOT.h.

◆ GetListOfStyles()

TSeqCollection * TROOT::GetListOfStyles ( ) const
inline

Definition at line 242 of file TROOT.h.

◆ GetListOfTasks()

TSeqCollection * TROOT::GetListOfTasks ( ) const
inline

Definition at line 248 of file TROOT.h.

◆ GetListOfTypes()

TCollection * TROOT::GetListOfTypes ( Bool_t  load = kFALSE)

Return a dynamic list giving access to all TDataTypes (typedefs) currently defined.

The list is populated on demand. Calling

gROOT->GetListOfTypes()->FindObject(nameoftype);

will return the TDataType corresponding to 'nameoftype'. If the TDataType is not already in the list itself and the type does exist, a new TDataType will be created and added to the list.

Calling

gROOT->GetListOfTypes()->ls(); // or Print()

list only the typedefs that have been previously accessed through the list (plus the builtins types).

Definition at line 1799 of file TROOT.cxx.

◆ GetMacroDir()

const TString & TROOT::GetMacroDir ( )
static

Get the macro directory in the installation. Static utility function.

Definition at line 2981 of file TROOT.cxx.

◆ GetMacroPath()

const char * TROOT::GetMacroPath ( )
static

Get macro search path. Static utility function.

Definition at line 2693 of file TROOT.cxx.

◆ GetNclasses()

Int_t TROOT::GetNclasses ( ) const
inline

Definition at line 273 of file TROOT.h.

◆ GetNtypes()

Int_t TROOT::GetNtypes ( ) const
inline

Definition at line 274 of file TROOT.h.

◆ GetPluginManager()

TPluginManager * TROOT::GetPluginManager ( ) const
inline

Definition at line 209 of file TROOT.h.

◆ GetRootFolder()

TFolder * TROOT::GetRootFolder ( ) const
inline

Definition at line 275 of file TROOT.h.

◆ GetRootSys()

const TString & TROOT::GetRootSys ( )
static

Get the rootsys directory in the installation. Static utility function.

Definition at line 2877 of file TROOT.cxx.

◆ GetSelectedPad()

TVirtualPad * TROOT::GetSelectedPad ( ) const
inline

Definition at line 272 of file TROOT.h.

◆ GetSelectedPrimitive()

const TObject * TROOT::GetSelectedPrimitive ( ) const
inline

Definition at line 271 of file TROOT.h.

◆ GetSourceDir()

const TString & TROOT::GetSourceDir ( )
static

Get the source directory in the installation. Static utility function.

Definition at line 3034 of file TROOT.cxx.

◆ GetStyle()

TStyle * TROOT::GetStyle ( const char *  name) const

Return pointer to style with name.

Definition at line 1524 of file TROOT.cxx.

◆ GetTTFFontDir()

const TString & TROOT::GetTTFFontDir ( )
static

Get the fonts directory in the installation. Static utility function.

Definition at line 3076 of file TROOT.cxx.

◆ GetTutorialDir()

const TString & TROOT::GetTutorialDir ( )
static

Get the tutorials directory in the installation. Static utility function.

Definition at line 3002 of file TROOT.cxx.

◆ GetTutorialsDir()

const char * TROOT::GetTutorialsDir ( )
static

Get the tutorials directory in the installation.

Static utility function. Backward compatibility function - do not use for new code

Definition at line 3098 of file TROOT.cxx.

◆ GetType()

TDataType * TROOT::GetType ( const char *  name,
Bool_t  load = kFALSE 
) const

Return pointer to type with name.

Definition at line 1507 of file TROOT.cxx.

◆ GetUUIDs()

TProcessUUID * TROOT::GetUUIDs ( ) const
inline

Definition at line 276 of file TROOT.h.

◆ GetVersion()

const char * TROOT::GetVersion ( ) const
inline

Definition at line 231 of file TROOT.h.

◆ GetVersionCode()

Int_t TROOT::GetVersionCode ( ) const
inline

Definition at line 230 of file TROOT.h.

◆ GetVersionDate()

Int_t TROOT::GetVersionDate ( ) const
inline

Definition at line 227 of file TROOT.h.

◆ GetVersionInt()

Int_t TROOT::GetVersionInt ( ) const
inline

Definition at line 229 of file TROOT.h.

◆ GetVersionTime()

Int_t TROOT::GetVersionTime ( ) const
inline

Definition at line 228 of file TROOT.h.

◆ GetWebDisplay()

const TString & TROOT::GetWebDisplay ( ) const
inline

Definition at line 277 of file TROOT.h.

◆ Idle()

void TROOT::Idle ( UInt_t  idleTimeInSec,
const char *  command = 0 
)

Execute command when system has been idle for idleTimeInSec seconds.

Definition at line 1811 of file TROOT.cxx.

◆ IgnoreInclude()

Int_t TROOT::IgnoreInclude ( const char *  fname,
const char *  expandedfname 
)

Return 1 if the name of the given include file corresponds to a class that is known to ROOT, e.g.

"TLorentzVector.h" versus TLorentzVector.

Definition at line 1847 of file TROOT.cxx.

◆ IncreaseDirLevel()

Int_t TROOT::IncreaseDirLevel ( )
static

Increase the indentation level for ls().

Definition at line 2773 of file TROOT.cxx.

◆ IndentLevel()

void TROOT::IndentLevel ( )
static

Functions used by ls() to indent an object hierarchy.

Definition at line 2781 of file TROOT.cxx.

◆ Initialize()

void TROOT::Initialize ( )
static

Initialize ROOT explicitly.

Definition at line 2789 of file TROOT.cxx.

◆ Initialized()

Bool_t TROOT::Initialized ( )
static

Return kTRUE if the TROOT object has been initialized.

Definition at line 2796 of file TROOT.cxx.

◆ InitInterpreter()

void TROOT::InitInterpreter ( )
protected

Initialize the interpreter.

Should be called only after main(), to make sure LLVM/Clang is fully initialized.

Definition at line 1989 of file TROOT.cxx.

◆ InitSystem()

void TROOT::InitSystem ( )
protected

Initialize operating system interface.

Definition at line 1897 of file TROOT.cxx.

◆ InitThreads()

void TROOT::InitThreads ( )
protected

Load and initialize thread library.

Definition at line 1978 of file TROOT.cxx.

◆ IsBatch()

Bool_t TROOT::IsBatch ( ) const
inline

Definition at line 280 of file TROOT.h.

◆ IsEscaped()

Bool_t TROOT::IsEscaped ( ) const
inline

Definition at line 284 of file TROOT.h.

◆ IsExecutingMacro()

Bool_t TROOT::IsExecutingMacro ( ) const
inline

Definition at line 281 of file TROOT.h.

◆ IsFolder()

Bool_t TROOT::IsFolder ( ) const
inlinevirtual

Returns kTRUE in case object contains browsable objects (like containers or lists of other objects).

Reimplemented from TDirectory.

Definition at line 282 of file TROOT.h.

◆ IsInterrupted()

Bool_t TROOT::IsInterrupted ( ) const
inline

Definition at line 283 of file TROOT.h.

◆ IsLineProcessing()

Bool_t TROOT::IsLineProcessing ( ) const
inline

Definition at line 285 of file TROOT.h.

◆ IsProofServ()

Bool_t TROOT::IsProofServ ( ) const
inline

Definition at line 286 of file TROOT.h.

◆ IsRootFile()

Bool_t TROOT::IsRootFile ( const char *  filename) const

Return true if the file is local and is (likely) to be a ROOT file.

Definition at line 2155 of file TROOT.cxx.

◆ IsWebDisplay()

Bool_t TROOT::IsWebDisplay ( ) const
inline

Definition at line 288 of file TROOT.h.

◆ IsWebDisplayBatch()

Bool_t TROOT::IsWebDisplayBatch ( ) const
inline

Definition at line 289 of file TROOT.h.

◆ LoadClass() [1/2]

Int_t TROOT::LoadClass ( const char *  classname,
const char *  libname,
Bool_t  check = kFALSE 
)

Check if class "classname" is known to the interpreter (in fact, this check is not needed anymore, so classname is ignored).

If not it will load library "libname". If the library couldn't be found with original libname and if the name was not prefixed with lib, try to prefix with "lib" and search again. If DynamicPathName still couldn't find the library, return -1. If check is true it will only check if libname exists and is readable. Returns 0 on successful loading, -1 in case libname does not exist or in case of error and -2 in case of version mismatch.

Definition at line 2108 of file TROOT.cxx.

◆ LoadClass() [2/2]

TClass * TROOT::LoadClass ( const char *  requestedname,
Bool_t  silent = kFALSE 
) const

Helper function used by TClass::GetClass().

This function attempts to load the dictionary for 'classname' either from the TClassTable or from the list of generator. If silent is 'true', do not warn about missing dictionary for the class. (typically used for class that are used only for transient members)

The 'requestedname' is expected to be already normalized.

Definition at line 2092 of file TROOT.cxx.

◆ LoadMacro()

Int_t TROOT::LoadMacro ( const char *  filename,
Int_t error = 0,
Bool_t  check = kFALSE 
)

Load a macro in the interpreter's memory.

Equivalent to the command line command ".L filename". If the filename has "+" or "++" appended the macro will be compiled by ACLiC. The filename must have the format: [path/]macro.C[+|++[g|O]]. The possible error codes are defined by TInterpreter::EErrorCode. If check is true it will only check if filename exists and is readable. Returns 0 on successful loading and -1 in case filename does not exist or in case of error.

Definition at line 2193 of file TROOT.cxx.

◆ ls()

void TROOT::ls ( Option_t option = "") const
virtual

To list all objects of the application.

Loop on all objects created in the ROOT linked lists. Objects may be files and windows or any other object directly attached to the ROOT linked list.

Reimplemented from TDirectory.

Definition at line 2175 of file TROOT.cxx.

◆ Macro()

Long_t TROOT::Macro ( const char *  filename,
Int_t error = 0,
Bool_t  padUpdate = kTRUE 
)

Execute a macro in the interpreter.

Equivalent to the command line command ".x filename". If the filename has "+" or "++" appended the macro will be compiled by ACLiC. The filename must have the format: [path/]macro.C[+|++[g|O]][(args)]. The possible error codes are defined by TInterpreter::EErrorCode. If padUpdate is true (default) update the current pad. Returns the macro return value.

Definition at line 2241 of file TROOT.cxx.

◆ MakeDefCanvas()

TCanvas * TROOT::MakeDefCanvas ( ) const

Return a default canvas.

Definition at line 1499 of file TROOT.cxx.

◆ MemCheck()

Bool_t TROOT::MemCheck ( )
static

Return kTRUE if the memory leak checker is on.

Definition at line 2804 of file TROOT.cxx.

◆ Message()

void TROOT::Message ( Int_t  id,
const TObject obj 
)

Process message id called by obj.

Definition at line 2275 of file TROOT.cxx.

◆ MustClean()

Bool_t TROOT::MustClean ( ) const
inline

Definition at line 297 of file TROOT.h.

◆ operator new() [1/2]

void * TROOT::operator new ( size_t  l)
inlineprotected

Definition at line 179 of file TROOT.h.

◆ operator new() [2/2]

void * TROOT::operator new ( size_t  l,
void ptr 
)
inlineprotected

Definition at line 180 of file TROOT.h.

◆ operator=()

TROOT & TROOT::operator= ( const TROOT )
private

◆ ProcessLine()

Long_t TROOT::ProcessLine ( const char *  line,
Int_t error = 0 
)

Process interpreter command via TApplication::ProcessLine().

On Win32 the line will be processed asynchronously by sending it to the CINT interpreter thread. For explicit synchronous processing use ProcessLineSync(). On non-Win32 platforms there is no difference between ProcessLine() and ProcessLineSync(). The possible error codes are defined by TInterpreter::EErrorCode. In particular, error will equal to TInterpreter::kProcessing until the CINT interpreted thread has finished executing the line. Returns the result of the command, cast to a Long_t.

Definition at line 2295 of file TROOT.cxx.

◆ ProcessLineFast()

Long_t TROOT::ProcessLineFast ( const char *  line,
Int_t error = 0 
)

Process interpreter command directly via CINT interpreter.

Only executable statements are allowed (no variable declarations), In all other cases use TROOT::ProcessLine(). The possible error codes are defined by TInterpreter::EErrorCode.

Definition at line 2332 of file TROOT.cxx.

◆ ProcessLineSync()

Long_t TROOT::ProcessLineSync ( const char *  line,
Int_t error = 0 
)

Process interpreter command via TApplication::ProcessLine().

On Win32 the line will be processed synchronously (i.e. it will only return when the CINT interpreter thread has finished executing the line). On non-Win32 platforms there is no difference between ProcessLine() and ProcessLineSync(). The possible error codes are defined by TInterpreter::EErrorCode. Returns the result of the command, cast to a Long_t.

Definition at line 2315 of file TROOT.cxx.

◆ ReadGitInfo()

void TROOT::ReadGitInfo ( )
protected

Read Git commit information and branch name from the etc/gitinfo.txt file.

Definition at line 2354 of file TROOT.cxx.

◆ ReadingObject()

Bool_t TROOT::ReadingObject ( ) const

Deprecated (will be removed in next release).

Definition at line 2391 of file TROOT.cxx.

◆ RecursiveRemove()

void TROOT::RecursiveRemove ( TObject obj)
virtual

Recursively remove this object from the list of Cleanups.

Typically RecursiveRemove is implemented by classes that can contain mulitple references to a same object or shared ownership of the object with others.

Reimplemented from TDirectory.

Definition at line 2429 of file TROOT.cxx.

◆ RefreshBrowsers()

void TROOT::RefreshBrowsers ( )

Refresh all browsers.

Call this method when some command line command or script has changed the browser contents. Not needed for objects that have the kMustCleanup bit set. Most useful to update browsers that show the file system or other objects external to the running ROOT session.

Definition at line 2443 of file TROOT.cxx.

◆ RegisterModule()

void TROOT::RegisterModule ( const char *  modulename,
const char **  headers,
const char **  includePaths,
const char *  payloadCode,
const char *  fwdDeclCode,
void(*)()  triggerFunc,
const FwdDeclArgsToKeepCollection_t fwdDeclsArgToSkip,
const char **  classesHeaders,
bool  hasCxxModule = false 
)
static

Called by static dictionary initialization to register clang modules for headers.

Calls TCling::RegisterModule() unless gCling is NULL, i.e. during startup, where the information is buffered in the static GetModuleHeaderInfoBuffer().

Definition at line 2466 of file TROOT.cxx.

◆ Remove()

TObject * TROOT::Remove ( TObject obj)
virtual

Remove an object from the in-memory list.

Since TROOT is global resource, this is lock protected.

Reimplemented from TDirectory.

Definition at line 2549 of file TROOT.cxx.

◆ RemoveClass()

void TROOT::RemoveClass ( TClass oldcl)

Remove a class from the list and map of classes.

This routine is deprecated, use TClass::RemoveClass directly.

Definition at line 2559 of file TROOT.cxx.

◆ Reset()

void TROOT::Reset ( Option_t option = "")

Delete all global interpreter objects created since the last call to Reset.

If option="a" is set reset to startup context (i.e. unload also all loaded files, classes, structs, typedefs, etc.).

This function is typically used at the beginning (or end) of an unnamed macro to clean the environment.

IMPORTANT WARNING: Do not use this call from within any function (neither compiled nor interpreted. This should only be used from a unnamed macro (which starts with a { (curly braces) ). For example, using TROOT::Reset from within an interpreted function will lead to the unloading of the dictionary and source file, including the one defining the function being executed.

Definition at line 2582 of file TROOT.cxx.

◆ RootVersionCode()

Int_t TROOT::RootVersionCode ( )
static

Return ROOT version code as defined in RVersion.h.

Definition at line 2839 of file TROOT.cxx.

◆ SaveContext()

void TROOT::SaveContext ( )

Save the current interpreter context.

Definition at line 2602 of file TROOT.cxx.

◆ SetApplication()

void TROOT::SetApplication ( TApplication app)
inline

Definition at line 317 of file TROOT.h.

◆ SetBatch()

void TROOT::SetBatch ( Bool_t  batch = kTRUE)
inline

Definition at line 318 of file TROOT.h.

◆ SetCutClassName()

void TROOT::SetCutClassName ( const char *  name = "TCutG")

Set the default graphical cut class name for the graphics editor By default the graphics editor creates an instance of a class TCutG.

This function may be called to specify a different class that MUST derive from TCutG

Definition at line 2614 of file TROOT.cxx.

◆ SetDefCanvasName()

void TROOT::SetDefCanvasName ( const char *  name = "c1")
inline

Definition at line 321 of file TROOT.h.

◆ SetDirLevel()

void TROOT::SetDirLevel ( Int_t  level = 0)
static

Return Indentation level for ls().

Definition at line 2812 of file TROOT.cxx.

◆ SetEditHistograms()

void TROOT::SetEditHistograms ( Bool_t  flag = kTRUE)
inline

Definition at line 322 of file TROOT.h.

◆ SetEditorMode()

void TROOT::SetEditorMode ( const char *  mode = "")

Set editor mode.

Definition at line 2635 of file TROOT.cxx.

◆ SetEscape()

void TROOT::SetEscape ( Bool_t  flag = kTRUE)
inline

Definition at line 327 of file TROOT.h.

◆ SetExecutingMacro()

void TROOT::SetExecutingMacro ( Bool_t  flag = kTRUE)
inline

Definition at line 324 of file TROOT.h.

◆ SetFromPopUp()

void TROOT::SetFromPopUp ( Bool_t  flag = kTRUE)
inline

Definition at line 325 of file TROOT.h.

◆ SetInterrupt()

void TROOT::SetInterrupt ( Bool_t  flag = kTRUE)
inline

Definition at line 326 of file TROOT.h.

◆ SetLineHasBeenProcessed()

void TROOT::SetLineHasBeenProcessed ( )
inline

Definition at line 329 of file TROOT.h.

◆ SetLineIsProcessing()

void TROOT::SetLineIsProcessing ( )
inline

Definition at line 328 of file TROOT.h.

◆ SetMacroPath()

void TROOT::SetMacroPath ( const char *  newpath)
static

Set or extend the macro search path.

Static utility function. If newpath=0 or "" reset to value specified in the rootrc file.

Definition at line 2719 of file TROOT.cxx.

◆ SetMustClean()

void TROOT::SetMustClean ( Bool_t  flag = kTRUE)
inline

Definition at line 331 of file TROOT.h.

◆ SetReadingObject()

void TROOT::SetReadingObject ( Bool_t  flag = kTRUE)

Definition at line 2396 of file TROOT.cxx.

◆ SetSelectedPad()

void TROOT::SetSelectedPad ( TVirtualPad pad)
inline

Definition at line 333 of file TROOT.h.

◆ SetSelectedPrimitive()

void TROOT::SetSelectedPrimitive ( const TObject obj)
inline

Definition at line 332 of file TROOT.h.

◆ SetStyle()

void TROOT::SetStyle ( const char *  stylename = "Default")

Change current style to style with name stylename.

Definition at line 2661 of file TROOT.cxx.

◆ SetWebDisplay()

void TROOT::SetWebDisplay ( const char *  webdisplay)

Specify where web graphics shall be rendered.

The input parameter webdisplay defines where web graphics is rendered. webdisplay parameter may contain:

  • "off": turns off the web display and comes back to normal graphics in interactive mode.
  • "batch": turns the web display in batch mode. It can be prepended with another string which is considered as the new current web display.
  • "nobatch": turns the web display in interactive mode. It can be prepended with another string which is considered as the new current web display.

If the option "off" is not set, this method turns the normal graphics to "Batch" to avoid the loading of local graphics libraries.

Definition at line 2745 of file TROOT.cxx.

◆ ShutDown()

void TROOT::ShutDown ( )
static

Shut down ROOT.

Definition at line 3023 of file TROOT.cxx.

◆ Time()

void TROOT::Time ( Int_t  casetime = 1)
inline

Definition at line 335 of file TROOT.h.

◆ Timer()

Int_t TROOT::Timer ( ) const
inline

Definition at line 336 of file TROOT.h.

Friends And Related Function Documentation

◆ ::ROOT::Internal::TROOTAllocator

friend class ::ROOT::Internal::TROOTAllocator
friend

Definition at line 182 of file TROOT.h.

◆ ROOT::Internal::GetROOT2

◆ TCling

friend class TCling
friend

Definition at line 95 of file TROOT.h.

Member Data Documentation

◆ fApplication

std::atomic<TApplication*> TROOT::fApplication
protected

Definition at line 124 of file TROOT.h.

◆ fBatch

Bool_t TROOT::fBatch
protected

Definition at line 126 of file TROOT.h.

◆ fBrowsables

TList* TROOT::fBrowsables
protected

Definition at line 169 of file TROOT.h.

◆ fBrowsers

TSeqCollection* TROOT::fBrowsers
protected

Definition at line 156 of file TROOT.h.

◆ fBuiltDate

Int_t TROOT::fBuiltDate
protected

Definition at line 118 of file TROOT.h.

◆ fBuiltTime

Int_t TROOT::fBuiltTime
protected

Definition at line 119 of file TROOT.h.

◆ fCanvases

TSeqCollection* TROOT::fCanvases
protected

Definition at line 150 of file TROOT.h.

◆ fClasses

TCollection* TROOT::fClasses
protected

Definition at line 141 of file TROOT.h.

◆ fClassGenerators

TCollection* TROOT::fClassGenerators
protected

Definition at line 161 of file TROOT.h.

◆ fCleanups

TSeqCollection* TROOT::fCleanups
protected

Definition at line 158 of file TROOT.h.

◆ fClipboard

TSeqCollection* TROOT::fClipboard
protected

Definition at line 164 of file TROOT.h.

◆ fClosedObjects

TSeqCollection* TROOT::fClosedObjects
protected

Definition at line 146 of file TROOT.h.

◆ fColors

TSeqCollection* TROOT::fColors
protected

Definition at line 154 of file TROOT.h.

◆ fConfigFeatures

TString TROOT::fConfigFeatures
protected

Definition at line 112 of file TROOT.h.

◆ fConfigOptions

TString TROOT::fConfigOptions
protected

Definition at line 111 of file TROOT.h.

◆ fCutClassName

TString TROOT::fCutClassName
protected

Definition at line 171 of file TROOT.h.

◆ fDataSets

TSeqCollection* TROOT::fDataSets
protected

Definition at line 165 of file TROOT.h.

◆ fDefCanvasName

TString TROOT::fDefCanvasName
protected

Definition at line 172 of file TROOT.h.

◆ fEditHistograms

Bool_t TROOT::fEditHistograms
protected

Definition at line 130 of file TROOT.h.

◆ fEditorMode

Int_t TROOT::fEditorMode
protected

Definition at line 138 of file TROOT.h.

◆ fEnums

AListOfEnums_t TROOT::fEnums
protected

Definition at line 166 of file TROOT.h.

◆ fEscape

Bool_t TROOT::fEscape
protected

Definition at line 136 of file TROOT.h.

◆ fExecutingMacro

Bool_t TROOT::fExecutingMacro
protected

Definition at line 137 of file TROOT.h.

◆ fFiles

TSeqCollection* TROOT::fFiles
protected

Definition at line 147 of file TROOT.h.

◆ fForceStyle

Bool_t TROOT::fForceStyle
protected

Definition at line 134 of file TROOT.h.

◆ fFromPopUp

Bool_t TROOT::fFromPopUp
protected

Definition at line 131 of file TROOT.h.

◆ fFuncTemplate

TListOfFunctionTemplates* TROOT::fFuncTemplate
protected

Definition at line 143 of file TROOT.h.

◆ fFunctions

TCollection* TROOT::fFunctions
protected

Definition at line 152 of file TROOT.h.

◆ fgDirLevel

Int_t TROOT::fgDirLevel = 0
staticprivate

Definition at line 101 of file TROOT.h.

◆ fGeometries

TSeqCollection* TROOT::fGeometries
protected

Definition at line 155 of file TROOT.h.

◆ fGitBranch

TString TROOT::fGitBranch
protected

Definition at line 121 of file TROOT.h.

◆ fGitCommit

TString TROOT::fGitCommit
protected

Definition at line 120 of file TROOT.h.

◆ fGitDate

TString TROOT::fGitDate
protected

Definition at line 122 of file TROOT.h.

◆ fGlobalFunctions

TListOfFunctions* TROOT::fGlobalFunctions
protected

Definition at line 145 of file TROOT.h.

◆ fGlobals

TListOfDataMembers* TROOT::fGlobals
protected

Definition at line 144 of file TROOT.h.

◆ fgMemCheck

Bool_t TROOT::fgMemCheck = kFALSE
staticprivate

Definition at line 103 of file TROOT.h.

◆ fgRootInit

Bool_t TROOT::fgRootInit = kFALSE
staticprivate

Definition at line 102 of file TROOT.h.

◆ fInterpreter

TInterpreter* TROOT::fInterpreter
protected

Definition at line 125 of file TROOT.h.

◆ fInterrupt

Bool_t TROOT::fInterrupt
protected

Definition at line 135 of file TROOT.h.

◆ fIsWebDisplay

Bool_t TROOT::fIsWebDisplay
protected

Definition at line 128 of file TROOT.h.

◆ fIsWebDisplayBatch

Bool_t TROOT::fIsWebDisplayBatch
protected

Definition at line 129 of file TROOT.h.

◆ fLineIsProcessing

Int_t TROOT::fLineIsProcessing
private

Definition at line 99 of file TROOT.h.

◆ fMappedFiles

TSeqCollection* TROOT::fMappedFiles
protected

Definition at line 148 of file TROOT.h.

◆ fMessageHandlers

TSeqCollection* TROOT::fMessageHandlers
protected

Definition at line 159 of file TROOT.h.

◆ fMustClean

Bool_t TROOT::fMustClean
protected

Definition at line 132 of file TROOT.h.

◆ fPluginManager

TPluginManager* TROOT::fPluginManager
protected

Definition at line 170 of file TROOT.h.

◆ fPrimitive

const TObject* TROOT::fPrimitive
protected

Definition at line 139 of file TROOT.h.

◆ fProofs

TSeqCollection* TROOT::fProofs
protected

Definition at line 163 of file TROOT.h.

◆ fReadingObject

Bool_t TROOT::fReadingObject
protected

Definition at line 133 of file TROOT.h.

◆ fRootFolder

TFolder* TROOT::fRootFolder
protected

Definition at line 168 of file TROOT.h.

◆ fSecContexts

TSeqCollection* TROOT::fSecContexts
protected

Definition at line 162 of file TROOT.h.

◆ fSelectPad

TVirtualPad* TROOT::fSelectPad
protected

Definition at line 140 of file TROOT.h.

◆ fSockets

TSeqCollection* TROOT::fSockets
protected

Definition at line 149 of file TROOT.h.

◆ fSpecials

TSeqCollection* TROOT::fSpecials
protected

Definition at line 157 of file TROOT.h.

◆ fStreamerInfo

TSeqCollection* TROOT::fStreamerInfo
protected

Definition at line 160 of file TROOT.h.

◆ fStyles

TSeqCollection* TROOT::fStyles
protected

Definition at line 151 of file TROOT.h.

◆ fTasks

TSeqCollection* TROOT::fTasks
protected

Definition at line 153 of file TROOT.h.

◆ fTimer

Int_t TROOT::fTimer
protected

Definition at line 123 of file TROOT.h.

◆ fTypes

TCollection* TROOT::fTypes
protected

Definition at line 142 of file TROOT.h.

◆ fUUIDs

TProcessUUID* TROOT::fUUIDs
protected

Definition at line 167 of file TROOT.h.

◆ fVersion

TString TROOT::fVersion
protected

Definition at line 113 of file TROOT.h.

◆ fVersionCode

Int_t TROOT::fVersionCode
protected

Definition at line 115 of file TROOT.h.

◆ fVersionDate

Int_t TROOT::fVersionDate
protected

Definition at line 116 of file TROOT.h.

◆ fVersionInt

Int_t TROOT::fVersionInt
protected

Definition at line 114 of file TROOT.h.

◆ fVersionTime

Int_t TROOT::fVersionTime
protected

Definition at line 117 of file TROOT.h.

◆ fWebDisplay

TString TROOT::fWebDisplay
protected

Definition at line 127 of file TROOT.h.


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