ROOT  6.06/09
Reference Guide
TROOT.h
Go to the documentation of this file.
1 // @(#)root/base:$Id$
2 // Author: Rene Brun 08/12/94
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TROOT
13 #define ROOT_TROOT
14 
15 
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // TROOT //
19 // //
20 // The TROOT object is the entry point to the system. //
21 // The single instance of TROOT is accessable via the global gROOT. //
22 // Using the gROOT pointer one has access to basically every object //
23 // created in a ROOT based program. The TROOT object is essentially a //
24 // "dispatcher" with several lists pointing to the ROOT main objects. //
25 // //
26 //////////////////////////////////////////////////////////////////////////
27 
28 #ifndef ROOT_TDirectory
29 #include "TDirectory.h"
30 #endif
31 #ifndef ROOT_TList
32 #include "TList.h"
33 #endif
34 #ifndef ROOT_RConfigure
35 #include "RConfigure.h"
36 #endif
37 
38 #include <atomic>
39 
40 class TClass;
41 class TCanvas;
42 class TColor;
43 class TDataType;
44 class TFile;
45 class TStyle;
46 class TVirtualPad;
47 class TApplication;
48 class TInterpreter;
49 class TBrowser;
50 class TGlobal;
51 class TFunction;
52 class TFolder;
53 class TPluginManager;
54 class TProcessUUID;
55 class TClassGenerator;
56 class TVirtualMutex;
57 class TROOT;
58 class TListOfDataMembers;
59 class TListOfEnums;
60 class TListOfFunctions;
62 class TFunctionTemplate;
64 
66 
67 namespace ROOT {
68 namespace Internal {
69  class TROOTAllocator;
70 
71  TROOT *GetROOT2();
72 } } // End ROOT::Internal
73 
74 namespace ROOT {
75  // Enable support for multi-threading within the ROOT code,
76  // in particular, enables the global mutex to make ROOT thread safe/aware.
77  void EnableThreadSafety();
78 }
79 
80 class TROOT : public TDirectory {
81 
82 friend class TCling;
84 
85 private:
86  Int_t fLineIsProcessing; //To synchronize multi-threads
87 
88  static Int_t fgDirLevel; //Indentation level for ls()
89  static Bool_t fgRootInit; //Singleton initialization flag
90  static Bool_t fgMemCheck; //Turn on memory leak checker
91 
92  TROOT(const TROOT&); //Not implemented
93  TROOT& operator=(const TROOT&); //Not implemented
94 
95 protected:
96  typedef std::atomic<TListOfEnums*> AListOfEnums_t;
97 
98  TString fConfigOptions; //ROOT ./configure set build options
99  TString fConfigFeatures; //ROOT ./configure detected build features
100  TString fVersion; //ROOT version (from CMZ VERSQQ) ex 0.05/01
101  Int_t fVersionInt; //ROOT version in integer format (501)
102  Int_t fVersionCode; //ROOT version code as used in RVersion.h
103  Int_t fVersionDate; //Date of ROOT version (ex 951226)
104  Int_t fVersionTime; //Time of ROOT version (ex 1152)
105  Int_t fBuiltDate; //Date of ROOT built
106  Int_t fBuiltTime; //Time of ROOT built
107  TString fGitCommit; //Git commit SHA1 of built
108  TString fGitBranch; //Git branch
109  TString fGitDate; //Date and time when make was run
110  Int_t fTimer; //Timer flag
111  std::atomic<TApplication*> fApplication; //Pointer to current application
112  TInterpreter *fInterpreter; //Command interpreter
113  Bool_t fBatch; //True if session without graphics
114  Bool_t fEditHistograms; //True if histograms can be edited with the mouse
115  Bool_t fFromPopUp; //True if command executed from a popup menu
116  Bool_t fMustClean; //True if object destructor scans canvases
117  Bool_t fReadingObject; //True while reading an object [Deprecated (will be removed in next release)
118  Bool_t fForceStyle; //Force setting of current style when reading objects
119  Bool_t fInterrupt; //True if macro should be interrupted
120  Bool_t fEscape; //True if ESC has been pressed
121  Bool_t fExecutingMacro; //True while executing a TMacro
122  Int_t fEditorMode; //Current Editor mode
123  const TObject *fPrimitive; //Currently selected primitive
124  TVirtualPad *fSelectPad; //Currently selected pad
125  TCollection *fClasses; //List of classes definition
126  TCollection *fTypes; //List of data types definition
127  TListOfFunctionTemplates *fFuncTemplate; //List of global function templates
128  TListOfDataMembers*fGlobals; //List of global variables
129  TListOfFunctions*fGlobalFunctions; //List of global functions
130  TSeqCollection *fClosedObjects; //List of closed objects from the list of files and sockets, so we can delete them if neededCl.
131  TSeqCollection *fFiles; //List of files
132  TSeqCollection *fMappedFiles; //List of memory mapped files
133  TSeqCollection *fSockets; //List of network sockets
134  TSeqCollection *fCanvases; //List of canvases
135  TSeqCollection *fStyles; //List of styles
136  TCollection *fFunctions; //List of analytic functions
137  TSeqCollection *fTasks; //List of tasks
138  TSeqCollection *fColors; //List of colors
139  TSeqCollection *fGeometries; //List of geometries
140  TSeqCollection *fBrowsers; //List of browsers
141  TSeqCollection *fSpecials; //List of special objects
142  TSeqCollection *fCleanups; //List of recursiveRemove collections
143  TSeqCollection *fMessageHandlers; //List of message handlers
144  TSeqCollection *fStreamerInfo; //List of active StreamerInfo classes
145  TCollection *fClassGenerators; //List of user defined class generators;
146  TSeqCollection *fSecContexts; //List of security contexts (TSecContext)
147  TSeqCollection *fProofs; //List of proof sessions
148  TSeqCollection *fClipboard; //List of clipbard objects
149  TSeqCollection *fDataSets; //List of data sets (TDSet or TChain)
150  AListOfEnums_t fEnums; //List of enum types
151  TProcessUUID *fUUIDs; //Pointer to TProcessID managing TUUIDs
152  TFolder *fRootFolder; //top level folder //root
153  TList *fBrowsables; //List of browsables
154  TPluginManager *fPluginManager; //Keeps track of plugin library handlers
155  TString fCutClassName; //Name of default CutG class in graphics editor
156  TString fDefCanvasName; //Name of default canvas
157 
158  TROOT(); //Only used by Dictionary
159  void InitSystem(); //Operating System interface
160  void InitThreads(); //Initialize threads library
161  void InitInterpreter(); //Initialize interpreter (cling)
162  void ReadGitInfo(); //Read Git commit SHA1 and branch name
163  void *operator new(size_t l) { return TObject::operator new(l); }
164  void *operator new(size_t l, void *ptr) { return TObject::operator new(l,ptr); }
165 
166  friend class ::ROOT::Internal::TROOTAllocator;
167 
169 
170 public:
171 
172  typedef std::vector<std::pair<std::string, int> > FwdDeclArgsToKeepCollection_t;
173 
174  TROOT(const char *name, const char *title, VoidFuncPtr_t *initfunc = 0);
175  virtual ~TROOT();
176  void AddClass(TClass *cl);
178  void Browse(TBrowser *b);
179  Bool_t ClassSaved(TClass *cl);
180  void CloseFiles();
181  void EndOfProcessCleanups();
182  virtual TObject *FindObject(const char *name) const;
183  virtual TObject *FindObject(const TObject *obj) const;
184  virtual TObject *FindObjectAny(const char *name) const;
185  virtual TObject *FindObjectAnyFile(const char *name) const;
186  TObject *FindSpecialObject(const char *name, void *&where);
187  const char *FindObjectClassName(const char *name) const;
188  const char *FindObjectPathName(const TObject *obj) const;
189  TClass *FindSTLClass(const char *name, Bool_t load, Bool_t silent = kFALSE) const;
190  void ForceStyle(Bool_t force = kTRUE) { fForceStyle = force; }
191  Bool_t FromPopUp() const { return fFromPopUp; }
195  TClass *GetClass(const char *name, Bool_t load = kTRUE, Bool_t silent = kFALSE) const;
196  TClass *GetClass(const type_info &typeinfo, Bool_t load = kTRUE, Bool_t silent = kFALSE) const;
197  TColor *GetColor(Int_t color) const;
198  const char *GetConfigOptions() const { return fConfigOptions; }
199  const char *GetConfigFeatures() const { return fConfigFeatures; }
200  const char *GetCutClassName() const { return fCutClassName; }
201  const char *GetDefCanvasName() const { return fDefCanvasName; }
203  Int_t GetEditorMode() const { return fEditorMode; }
204  Bool_t GetForceStyle() const { return fForceStyle; }
205  Int_t GetBuiltDate() const { return fBuiltDate; }
206  Int_t GetBuiltTime() const { return fBuiltTime; }
207  const char *GetGitCommit() const { return fGitCommit; }
208  const char *GetGitBranch() const { return fGitBranch; }
209  const char *GetGitDate();
210  Int_t GetVersionDate() const { return fVersionDate; }
211  Int_t GetVersionTime() const { return fVersionTime; }
212  Int_t GetVersionInt() const { return fVersionInt; }
213  Int_t GetVersionCode() const { return fVersionCode; }
214  const char *GetVersion() const { return fVersion; }
215  TCollection *GetListOfClasses() const { return fClasses; }
221  TSeqCollection *GetListOfFiles() const { return fFiles; }
227  TCollection *GetListOfFunctionOverloads(const char* name) const;
231  TSeqCollection *GetListOfTasks() const { return fTasks; }
242  TList *GetListOfBrowsables() const { return fBrowsables; }
243  TDataType *GetType(const char *name, Bool_t load = kFALSE) const;
244  TFile *GetFile() const { if (gDirectory != this) return gDirectory->GetFile(); else return 0;}
245  TFile *GetFile(const char *name) const;
247  TStyle *GetStyle(const char *name) const;
248  TObject *GetFunction(const char *name) const;
249  TGlobal *GetGlobal(const char *name, Bool_t load = kFALSE) const;
250  TGlobal *GetGlobal(const TObject *obj, Bool_t load = kFALSE) const;
251  TFunction *GetGlobalFunction(const char *name, const char *params = 0, Bool_t load = kFALSE);
252  TFunction *GetGlobalFunctionWithPrototype(const char *name, const char *proto = 0, Bool_t load = kFALSE);
253  TObject *GetGeometry(const char *name) const;
254  const TObject *GetSelectedPrimitive() const { return fPrimitive; }
255  TVirtualPad *GetSelectedPad() const { return fSelectPad; }
256  Int_t GetNclasses() const { return fClasses->GetSize(); }
257  Int_t GetNtypes() const { return fTypes->GetSize(); }
258  TFolder *GetRootFolder() const { return fRootFolder; }
259  TProcessUUID *GetUUIDs() const { return fUUIDs; }
260  void Idle(UInt_t idleTimeInSec, const char *command = 0);
261  Int_t IgnoreInclude(const char *fname, const char *expandedfname);
262  Bool_t IsBatch() const { return fBatch; }
264  Bool_t IsFolder() const { return kTRUE; }
265  Bool_t IsInterrupted() const { return fInterrupt; }
266  Bool_t IsEscaped() const { return fEscape; }
267  Bool_t IsLineProcessing() const { return fLineIsProcessing ? kTRUE : kFALSE; }
268  Bool_t IsProofServ() const { return fName == "proofserv" ? kTRUE : kFALSE; }
269  Bool_t IsRootFile(const char *filename) const;
270  void ls(Option_t *option = "") const;
271  Int_t LoadClass(const char *classname, const char *libname, Bool_t check = kFALSE);
272  TClass *LoadClass(const char *name, Bool_t silent = kFALSE) const;
273  Int_t LoadMacro(const char *filename, Int_t *error = 0, Bool_t check = kFALSE);
274  Long_t Macro(const char *filename, Int_t *error = 0, Bool_t padUpdate = kTRUE);
275  TCanvas *MakeDefCanvas() const;
276  void Message(Int_t id, const TObject *obj);
277  Bool_t MustClean() const { return fMustClean; }
278  Long_t ProcessLine(const char *line, Int_t *error = 0);
279  Long_t ProcessLineSync(const char *line, Int_t *error = 0);
280  Long_t ProcessLineFast(const char *line, Int_t *error = 0);
281  Bool_t ReadingObject() const;
282  void RefreshBrowsers();
283  static void RegisterModule(const char* modulename,
284  const char** headers,
285  const char** includePaths,
286  const char* payLoadCode,
287  const char* fwdDeclCode,
288  void (*triggerFunc)(),
289  const FwdDeclArgsToKeepCollection_t& fwdDeclsArgToSkip,
290  const char** classesHeaders);
291  void RemoveClass(TClass *);
292  void Reset(Option_t *option="");
293  void SaveContext();
294  void SetApplication(TApplication *app) { fApplication = app; }
295  void SetBatch(Bool_t batch = kTRUE) { fBatch = batch; }
296  void SetCutClassName(const char *name = "TCutG");
297  void SetDefCanvasName(const char *name = "c1") { fDefCanvasName = name; }
298  void SetEditHistograms(Bool_t flag = kTRUE) { fEditHistograms = flag; }
299  void SetEditorMode(const char *mode = "");
300  void SetExecutingMacro(Bool_t flag = kTRUE) { fExecutingMacro = flag; }
301  void SetFromPopUp(Bool_t flag = kTRUE) { fFromPopUp = flag; }
302  void SetInterrupt(Bool_t flag = kTRUE) { fInterrupt = flag; }
303  void SetEscape(Bool_t flag = kTRUE) { fEscape = flag; }
304  void SetLineIsProcessing() { fLineIsProcessing++; }
305  void SetLineHasBeenProcessed() { if (fLineIsProcessing) fLineIsProcessing--; }
306  void SetReadingObject(Bool_t flag = kTRUE);
307  void SetMustClean(Bool_t flag = kTRUE) { fMustClean=flag; }
308  void SetSelectedPrimitive(const TObject *obj) { fPrimitive = obj; }
309  void SetSelectedPad(TVirtualPad *pad) { fSelectPad = pad; }
310  void SetStyle(const char *stylename = "Default");
311  void Time(Int_t casetime=1) { fTimer = casetime; }
312  Int_t Timer() const { return fTimer; }
313 
314  //---- static functions
315  static Int_t DecreaseDirLevel();
316  static Int_t GetDirLevel();
317  static const char *GetMacroPath();
318  static void SetMacroPath(const char *newpath);
319  static Int_t IncreaseDirLevel();
320  static void IndentLevel();
321  static Bool_t Initialized();
322  static Bool_t MemCheck();
323  static void SetDirLevel(Int_t level = 0);
324  static Int_t ConvertVersionCode2Int(Int_t code);
326  static Int_t RootVersionCode();
327  static const char**&GetExtraInterpreterArgs();
328  static const char *GetTutorialsDir();
329 
330  ClassDef(TROOT,0) //Top level (or root) structure for all classes
331 };
332 
333 
334 namespace ROOT {
335  TROOT *GetROOT();
336  namespace Internal {
338  }
339 }
340 #define gROOT (ROOT::GetROOT())
341 
342 #endif
TSeqCollection * fStreamerInfo
Definition: TROOT.h:144
TSeqCollection * GetListOfMappedFiles() const
Definition: TROOT.h:222
Bool_t fExecutingMacro
Definition: TROOT.h:121
void SetSelectedPad(TVirtualPad *pad)
Definition: TROOT.h:309
void AddClass(TClass *cl)
Add a class to the list and map of classes.
Definition: TROOT.cxx:786
TListOfFunctionTemplates * fFuncTemplate
Definition: TROOT.h:127
A TFolder object is a collection of objects and folders.
Definition: TFolder.h:32
A collection of TDataMember objects designed for fast access given a DeclId_t and for keep track of T...
This class defines an abstract interface to a generic command line interpreter.
Definition: TInterpreter.h:50
static Int_t DecreaseDirLevel()
Decrease the indentation level for ls().
Definition: TROOT.cxx:2390
const char * GetConfigFeatures() const
Definition: TROOT.h:199
TFolder * fRootFolder
Definition: TROOT.h:152
void SetDefCanvasName(const char *name="c1")
Definition: TROOT.h:297
TCollection * GetListOfEnums(Bool_t load=kFALSE)
Definition: TROOT.cxx:1423
ROOT top level object description.
Definition: TROOT.h:80
This class is a specialized TProcessID managing the list of UUIDs.
Definition: TProcessUUID.h:34
TSeqCollection * fProofs
Definition: TROOT.h:147
TClass * 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.
Definition: TROOT.cxx:1164
void RemoveClass(TClass *)
Remove a class from the list and map of classes.
Definition: TROOT.cxx:2272
TCollection * GetListOfGlobalFunctions(Bool_t load=kFALSE)
Return list containing the TFunctions currently defined.
Definition: TROOT.cxx:1492
void SetLineIsProcessing()
Definition: TROOT.h:304
Int_t LoadMacro(const char *filename, Int_t *error=0, Bool_t check=kFALSE)
Load a macro in the interpreter's memory.
Definition: TROOT.cxx:1915
Namespace for new ROOT classes and functions.
Definition: ROOT.py:1
static const char **& GetExtraInterpreterArgs()
Definition: TROOT.cxx:2519
TLine * line
TSeqCollection * fGeometries
Definition: TROOT.h:139
TList * GetListOfBrowsables() const
Definition: TROOT.h:242
TStyle * GetStyle(const char *name) const
Return pointer to style with name.
Definition: TROOT.cxx:1259
virtual TObject * FindObject(const char *name) const
Returns address of a ROOT object if it exists.
Definition: TROOT.cxx:996
const char Option_t
Definition: RtypesCore.h:62
Dictionary for function template This class describes one single function template.
A collection of TFunction objects designed for fast access given a DeclId_t and for keep track of TFu...
Int_t fVersionDate
Definition: TROOT.h:103
void SetExecutingMacro(Bool_t flag=kTRUE)
Definition: TROOT.h:300
Bool_t fForceStyle
Definition: TROOT.h:118
const TObject * GetSelectedPrimitive() const
Definition: TROOT.h:254
#define gDirectory
Definition: TDirectory.h:218
static Int_t RootVersionCode()
Return ROOT version code as defined in RVersion.h.
Definition: TROOT.cxx:2512
Bool_t IsBatch() const
Definition: TROOT.h:262
static Bool_t MemCheck()
Return kTRUE if the memory leak checker is on.
Definition: TROOT.cxx:2477
TVirtualPad * GetSelectedPad() const
Definition: TROOT.h:255
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
Definition: TFile.h:45
TString fVersion
Definition: TROOT.h:100
const char * GetGitCommit() const
Definition: TROOT.h:207
This class implements a mutex interface.
Definition: TVirtualMutex.h:34
static const char * filename()
void InitInterpreter()
Initialize the interpreter.
Definition: TROOT.cxx:1705
TROOT * GetROOT2()
Definition: TROOT.cxx:358
Basic string class.
Definition: TString.h:137
TSeqCollection * GetListOfStyles() const
Definition: TROOT.h:225
TCollection * GetListOfFunctions() const
Definition: TROOT.h:226
void RefreshBrowsers()
Refresh all browsers.
Definition: TROOT.cxx:2167
void ls(Option_t *option="") const
To list all objects of the application.
Definition: TROOT.cxx:1897
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
TSeqCollection * GetListOfColors() const
Definition: TROOT.h:216
R__EXTERN TVirtualMutex * gROOTMutex
Definition: TROOT.h:63
const Bool_t kFALSE
Definition: Rtypes.h:92
Int_t fVersionCode
Definition: TROOT.h:102
Bool_t IsLineProcessing() const
Definition: TROOT.h:267
void Reset(Option_t *option="")
Delete all global interpreter objects created since the last call to Reset.
Definition: TROOT.cxx:2295
Bool_t GetEditHistograms() const
Definition: TROOT.h:202
TCollection * GetListOfFunctionOverloads(const char *name) const
Return the collection of functions named "name".
Definition: TROOT.cxx:1341
TProcessUUID * GetUUIDs() const
Definition: TROOT.h:259
std::atomic< TApplication * > fApplication
Definition: TROOT.h:111
void SetStyle(const char *stylename="Default")
Change current style to style with name stylename.
Definition: TROOT.cxx:2374
TCollection * GetListOfGlobals(Bool_t load=kFALSE)
Return list containing the TGlobals currently defined.
Definition: TROOT.cxx:1457
TString fGitCommit
Definition: TROOT.h:107
void SetBatch(Bool_t batch=kTRUE)
Definition: TROOT.h:295
TObject * GetGeometry(const char *name) const
Return pointer to Geometry with name.
Definition: TROOT.cxx:1416
TSeqCollection * GetListOfBrowsers() const
Definition: TROOT.h:229
void ForceStyle(Bool_t force=kTRUE)
Definition: TROOT.h:190
TString fCutClassName
Definition: TROOT.h:155
static const char * GetTutorialsDir()
Get the tutorials directory in the installation. Static utility function.
Definition: TROOT.cxx:2527
TListOfFunctions * GetGlobalFunctions()
Internal routine returning, and creating if necessary, the list of global function.
Definition: TROOT.cxx:1332
const char * GetVersion() const
Definition: TROOT.h:214
TClass * 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: TROOT.cxx:1198
static Int_t fgDirLevel
Definition: TROOT.h:88
static const char * GetMacroPath()
Get macro search path. Static utility function.
Definition: TROOT.cxx:2406
TInterpreter * fInterpreter
Definition: TROOT.h:112
TROOT & operator=(const TROOT &)
const char * GetGitDate()
Return date/time make was run.
Definition: TROOT.cxx:2142
AListOfEnums_t fEnums
Definition: TROOT.h:150
TPluginManager * GetPluginManager() const
Definition: TROOT.h:192
TSeqCollection * fMappedFiles
Definition: TROOT.h:132
Sequenceable collection abstract base class.
TSeqCollection * GetListOfDataSets() const
Definition: TROOT.h:239
Int_t fVersionInt
Definition: TROOT.h:101
#define ClassDef(name, id)
Definition: Rtypes.h:254
Int_t Timer() const
Definition: TROOT.h:312
void SetEditorMode(const char *mode="")
Set editor mode.
Definition: TROOT.cxx:2348
const char * FindObjectClassName(const char *name) const
Returns class name of a ROOT object including CINT globals.
Definition: TROOT.cxx:1133
Bool_t IsEscaped() const
Definition: TROOT.h:266
TSeqCollection * fCleanups
Definition: TROOT.h:142
Int_t fEditorMode
Definition: TROOT.h:122
Bool_t fMustClean
Definition: TROOT.h:116
static Bool_t Initialized()
Return kTRUE if the TROOT object has been initialized.
Definition: TROOT.cxx:2469
void EndOfProcessCleanups()
Execute the cleanups necessary at the end of the process, in particular those that must be executed b...
Definition: TROOT.cxx:948
void SetEscape(Bool_t flag=kTRUE)
Definition: TROOT.h:303
static Bool_t fgRootInit
Definition: TROOT.h:89
Long_t ProcessLineSync(const char *line, Int_t *error=0)
Process interpreter command via TApplication::ProcessLine().
Definition: TROOT.cxx:2037
TSeqCollection * GetListOfStreamerInfo() const
Definition: TROOT.h:233
void Message(Int_t id, const TObject *obj)
Process message id called by obj.
Definition: TROOT.cxx:1997
Int_t GetVersionTime() const
Definition: TROOT.h:211
TCollection * GetListOfFunctionTemplates()
Definition: TROOT.cxx:1440
void SetFromPopUp(Bool_t flag=kTRUE)
Definition: TROOT.h:301
void SetMustClean(Bool_t flag=kTRUE)
Definition: TROOT.h:307
Bool_t GetForceStyle() const
Definition: TROOT.h:204
TApplication * GetApplication() const
Definition: TROOT.h:193
void SaveContext()
Save the current interpreter context.
Definition: TROOT.cxx:2315
TCollection * GetListOfClasses() const
Definition: TROOT.h:215
TSeqCollection * fClipboard
Definition: TROOT.h:148
This class defines an interface to the cling C++ interpreter.
Definition: TCling.h:92
TInterpreter * GetInterpreter() const
Definition: TROOT.h:194
TVirtualPad is an abstract base class for the Pad and Canvas classes.
Definition: TVirtualPad.h:59
TSeqCollection * GetListOfCleanups() const
Definition: TROOT.h:232
Int_t GetBuiltDate() const
Definition: TROOT.h:205
const char * GetConfigOptions() const
Definition: TROOT.h:198
Bool_t fEscape
Definition: TROOT.h:120
TSeqCollection * fFiles
Definition: TROOT.h:131
TSeqCollection * GetListOfMessageHandlers() const
Definition: TROOT.h:234
const char * GetDefCanvasName() const
Definition: TROOT.h:201
TCollection * fClasses
Definition: TROOT.h:125
A doubly linked list.
Definition: TList.h:47
Long_t Macro(const char *filename, Int_t *error=0, Bool_t padUpdate=kTRUE)
Execute a macro in the interpreter.
Definition: TROOT.cxx:1963
Int_t GetVersionCode() const
Definition: TROOT.h:213
TStyle objects may be created to define special styles.
Definition: TStyle.h:52
R__EXTERN TROOT * gROOTLocal
Definition: TROOT.h:337
TSeqCollection * GetListOfCanvases() const
Definition: TROOT.h:224
TSeqCollection * GetListOfGeometries() const
Definition: TROOT.h:228
Bool_t fEditHistograms
Definition: TROOT.h:114
Using a TBrowser one can browse all ROOT objects.
Definition: TBrowser.h:41
Bool_t ClassSaved(TClass *cl)
return class status bit kClassSaved for class cl This function is called by the SavePrimitive functio...
Definition: TROOT.cxx:824
Int_t fVersionTime
Definition: TROOT.h:104
void Time(Int_t casetime=1)
Definition: TROOT.h:311
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)
Called by static dictionary initialization to register clang modules for headers. ...
Definition: TROOT.cxx:2190
static Bool_t fgMemCheck
Definition: TROOT.h:90
TSeqCollection * fDataSets
Definition: TROOT.h:149
TSeqCollection * fMessageHandlers
Definition: TROOT.h:143
Bool_t ReadingObject() const
Deprecated (will be removed in next release).
Definition: TROOT.cxx:2128
void Browse(TBrowser *b)
Add browsable objects to TBrowser.
Definition: TROOT.cxx:805
void AddClassGenerator(TClassGenerator *gen)
Add a class generator.
Definition: TROOT.cxx:796
TString fDefCanvasName
Definition: TROOT.h:156
void SetCutClassName(const char *name="TCutG")
Set the default graphical cut class name for the graphics editor By default the graphics editor creat...
Definition: TROOT.cxx:2327
SVector< double, 2 > v
Definition: Dict.h:5
Basic data type descriptor (datatype information is obtained from CINT).
Definition: TDataType.h:46
TSeqCollection * GetListOfSpecials() const
Definition: TROOT.h:230
TPluginManager * fPluginManager
Definition: TROOT.h:154
std::atomic< TListOfEnums * > AListOfEnums_t
Definition: TROOT.h:96
TString fGitBranch
Definition: TROOT.h:108
TSeqCollection * fSecContexts
Definition: TROOT.h:146
Collection abstract base class.
Definition: TCollection.h:48
void(* VoidFuncPtr_t)()
Definition: Rtypes.h:74
Bool_t IsInterrupted() const
Definition: TROOT.h:265
static Int_t ConvertVersionCode2Int(Int_t code)
Convert version code to an integer, i.e. 331527 -> 51507.
Definition: TROOT.cxx:2493
unsigned int UInt_t
Definition: RtypesCore.h:42
void ReadGitInfo()
Read Git commit information and branch name from the etc/gitinfo.txt file.
Definition: TROOT.cxx:2076
void SetApplication(TApplication *app)
Definition: TROOT.h:294
Bool_t MustClean() const
Definition: TROOT.h:277
Int_t GetBuiltTime() const
Definition: TROOT.h:206
This class implements a plugin library manager.
TLine * l
Definition: textangle.C:4
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...
Definition: TROOT.cxx:1829
Objects following this interface can be passed onto the TROOT object to implement a user customized w...
The ROOT global object gROOT contains a list of all defined classes.
Definition: TClass.h:81
Global variables class (global variables are obtained from CINT).
Definition: TGlobal.h:29
TSeqCollection * GetClipboard() const
Definition: TROOT.h:238
TSeqCollection * GetListOfFiles() const
Definition: TROOT.h:221
Bool_t IsFolder() const
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects)...
Definition: TROOT.h:264
TROOT * GetROOT()
Definition: TROOT.cxx:375
Bool_t FromPopUp() const
Definition: TROOT.h:191
TSeqCollection * GetListOfTasks() const
Definition: TROOT.h:231
TString fName
Definition: TNamed.h:36
void InitSystem()
Initialize operating system interface.
Definition: TROOT.cxx:1629
TSeqCollection * fSpecials
Definition: TROOT.h:141
TGlobal * GetGlobal(const char *name, Bool_t load=kFALSE) const
Return pointer to global variable by name.
Definition: TROOT.cxx:1300
Bool_t IsExecutingMacro() const
Definition: TROOT.h:263
TString fGitDate
Definition: TROOT.h:109
const char * GetGitBranch() const
Definition: TROOT.h:208
static void SetDirLevel(Int_t level=0)
Return Indentation level for ls().
Definition: TROOT.cxx:2485
long Long_t
Definition: RtypesCore.h:50
The Canvas class.
Definition: TCanvas.h:48
TListOfFunctions * fGlobalFunctions
Definition: TROOT.h:129
Long_t ProcessLine(const char *line, Int_t *error=0)
Process interpreter command via TApplication::ProcessLine().
Definition: TROOT.cxx:2017
virtual Int_t GetSize() const
Definition: TCollection.h:95
TSeqCollection * fCanvases
Definition: TROOT.h:134
virtual TObject * FindObjectAnyFile(const char *name) const
Scan the memory lists of all files for an object with name.
Definition: TROOT.cxx:1116
void EnableThreadSafety()
Enables the global mutex to make ROOT thread safe/aware.
Definition: TROOT.cxx:386
TFunction * GetGlobalFunctionWithPrototype(const char *name, const char *proto=0, Bool_t load=kFALSE)
Return pointer to global function by name.
Definition: TROOT.cxx:1387
void SetReadingObject(Bool_t flag=kTRUE)
Definition: TROOT.cxx:2133
TSeqCollection * GetListOfSecContexts() const
Definition: TROOT.h:236
void SetEditHistograms(Bool_t flag=kTRUE)
Definition: TROOT.h:298
TString fConfigOptions
Definition: TROOT.h:98
void InitThreads()
Load and initialize thread library.
Definition: TROOT.cxx:1694
Describe directory structure in memory.
Definition: TDirectory.h:41
Int_t GetVersionDate() const
Definition: TROOT.h:210
Int_t GetVersionInt() const
Definition: TROOT.h:212
Bool_t fFromPopUp
Definition: TROOT.h:115
Int_t fTimer
Definition: TROOT.h:110
TSeqCollection * GetListOfProofs() const
Definition: TROOT.h:237
TCanvas * MakeDefCanvas() const
Return a default canvas.
Definition: TROOT.cxx:1234
Bool_t fBatch
Definition: TROOT.h:113
Long_t ProcessLineFast(const char *line, Int_t *error=0)
Process interpreter command directly via CINT interpreter.
Definition: TROOT.cxx:2054
void CloseFiles()
Close any files and sockets that gROOT knows about.
Definition: TROOT.cxx:870
virtual ~TROOT()
Clean up and free resources used by ROOT (files, network sockets, shared memory segments, etc.).
Definition: TROOT.cxx:661
The color creation and management class.
Definition: TColor.h:23
const char * GetCutClassName() const
Definition: TROOT.h:200
TSeqCollection * fStyles
Definition: TROOT.h:135
void SetInterrupt(Bool_t flag=kTRUE)
Definition: TROOT.h:302
Bool_t fReadingObject
Definition: TROOT.h:117
TCollection * fClassGenerators
Definition: TROOT.h:145
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...
Definition: TROOT.cxx:1579
TSeqCollection * GetListOfSockets() const
Definition: TROOT.h:223
#define name(a, b)
Definition: linkTestLib0.cpp:5
const char * FindObjectPathName(const TObject *obj) const
Return path name of obj somewhere in the //root/...
Definition: TROOT.cxx:1153
static Int_t GetDirLevel()
return directory level
Definition: TROOT.cxx:2398
virtual TObject * FindObjectAny(const char *name) const
Return a pointer to the first object with name starting at //root.
Definition: TROOT.cxx:1106
Int_t fBuiltTime
Definition: TROOT.h:106
Mother of all ROOT objects.
Definition: TObject.h:58
Global functions class (global functions are obtained from CINT).
Definition: TFunction.h:30
TFunction * GetGlobalFunction(const char *name, const char *params=0, Bool_t load=kFALSE)
Return pointer to global function by name.
Definition: TROOT.cxx:1354
std::vector< std::pair< std::string, int > > FwdDeclArgsToKeepCollection_t
Definition: TROOT.h:172
static Int_t ConvertVersionInt2Code(Int_t v)
Convert version as an integer to version code as used in RVersion.h.
Definition: TROOT.cxx:2501
#define R__EXTERN
Definition: DllImport.h:27
static Int_t IncreaseDirLevel()
Increase the indentation level for ls().
Definition: TROOT.cxx:2453
TCollection * GetListOfTypes(Bool_t load=kFALSE)
Return a dynamic list giving access to all TDataTypes (typedefs) currently defined.
Definition: TROOT.cxx:1531
TFile * GetFile() const
Definition: TROOT.h:244
Int_t fBuiltDate
Definition: TROOT.h:105
TFunctionTemplate * GetFunctionTemplate(const char *name)
Definition: TROOT.cxx:1287
TDataType * GetType(const char *name, Bool_t load=kFALSE) const
Return pointer to type with name.
Definition: TROOT.cxx:1242
TColor * GetColor(Int_t color) const
Return address of color with index color.
Definition: TROOT.cxx:1216
TCollection * fFunctions
Definition: TROOT.h:136
A collection of TEnum objects designed for fast access given a DeclId_t and for keep track of TEnum t...
Definition: TListOfEnums.h:36
static void SetMacroPath(const char *newpath)
Set or extend the macro search path.
Definition: TROOT.cxx:2440
Int_t GetEditorMode() const
Definition: TROOT.h:203
Int_t GetNtypes() const
Definition: TROOT.h:257
TListOfDataMembers * fGlobals
Definition: TROOT.h:128
Bool_t IsProofServ() const
Definition: TROOT.h:268
TSeqCollection * fClosedObjects
Definition: TROOT.h:130
TObject * GetFunction(const char *name) const
Return pointer to function with name.
Definition: TROOT.cxx:1267
Int_t fLineIsProcessing
Definition: TROOT.h:86
TSeqCollection * fTasks
Definition: TROOT.h:137
TSeqCollection * fColors
Definition: TROOT.h:138
TCollection * fTypes
Definition: TROOT.h:126
void SetSelectedPrimitive(const TObject *obj)
Definition: TROOT.h:308
TSeqCollection * fBrowsers
Definition: TROOT.h:140
Bool_t IsRootFile(const char *filename) const
Return true if the file is local and is (likely) to be a ROOT file.
Definition: TROOT.cxx:1877
static void IndentLevel()
Functions used by ls() to indent an object hierarchy.
Definition: TROOT.cxx:2461
TFolder * GetRootFolder() const
Definition: TROOT.h:258
TSeqCollection * GetListOfClosedObjects() const
Definition: TROOT.h:220
This class creates the ROOT Application Environment that interfaces to the windowing system eventloop...
Definition: TApplication.h:45
TList * fBrowsables
Definition: TROOT.h:153
A collection of TFunction objects designed for fast access given a DeclId_t and for keep track of TFu...
TSeqCollection * fSockets
Definition: TROOT.h:133
TObject * FindSpecialObject(const char *name, void *&where)
Returns address and folder of a ROOT object if it exists.
Definition: TROOT.cxx:1047
Bool_t fInterrupt
Definition: TROOT.h:119
const Bool_t kTRUE
Definition: Rtypes.h:91
TObject * obj
void Idle(UInt_t idleTimeInSec, const char *command=0)
Execute command when system has been idle for idleTimeInSec seconds.
Definition: TROOT.cxx:1543
void SetLineHasBeenProcessed()
Definition: TROOT.h:305
TCollection * GetListOfClassGenerators() const
Definition: TROOT.h:235
Int_t GetNclasses() const
Definition: TROOT.h:256
TString fConfigFeatures
Definition: TROOT.h:99
TProcessUUID * fUUIDs
Definition: TROOT.h:151
const TObject * fPrimitive
Definition: TROOT.h:123
TVirtualPad * fSelectPad
Definition: TROOT.h:124