Logo ROOT  
Reference Guide
Go to the documentation of this file.
1 // @(#)root/base:$Id$
2 // Author: Rene Brun 08/12/94
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  *************************************************************************/
12 #ifndef ROOT_TROOT
13 #define ROOT_TROOT
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // TROOT //
19 // //
20 // The TROOT object is the entry point to the system. //
21 // The single instance of TROOT is accessible 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 //////////////////////////////////////////////////////////////////////////
28 #include "TDirectory.h"
29 #include "TList.h"
30 #include "RConfigure.h"
32 #include <atomic>
33 #include <string>
34 #include <vector>
36 class TClass;
37 class TCanvas;
38 class TColor;
39 class TDataType;
40 class TFile;
41 class TStyle;
42 class TVirtualPad;
43 class TApplication;
44 class TInterpreter;
45 class TBrowser;
46 class TGlobal;
47 class TFunction;
48 class TFolder;
49 class TPluginManager;
50 class TProcessUUID;
51 class TClassGenerator;
52 class TVirtualMutex;
53 class TROOT;
54 class TListOfDataMembers;
55 class TListOfEnums;
56 class TListOfFunctions;
58 class TFunctionTemplate;
63 namespace ROOT {
64 namespace Internal {
65  class TROOTAllocator;
67  TROOT *GetROOT2();
69  // Manage parallel branch processing
74  public:
77  };
78 } } // End ROOT::Internal
80 namespace ROOT {
81  // Enable support for multi-threading within the ROOT code,
82  // in particular, enables the global mutex to make ROOT thread safe/aware.
83  void EnableThreadSafety();
84  /// \brief Enable ROOT's implicit multi-threading for all objects and methods that provide an internal
85  /// parallelisation mechanism.
86  void EnableImplicitMT(UInt_t numthreads = 0);
87  void DisableImplicitMT();
89  UInt_t GetImplicitMTPoolSize() R__DEPRECATED(6, 24, "Please use ROOT::GetThreadPoolSize() instead");
91 }
93 class TROOT : public TDirectory {
95 friend class TCling;
98 private:
99  Int_t fLineIsProcessing; //To synchronize multi-threads
101  static Int_t fgDirLevel; //Indentation level for ls()
102  static Bool_t fgRootInit; //Singleton initialization flag
103  static Bool_t fgMemCheck; //Turn on memory leak checker
105  TROOT(const TROOT&); //Not implemented
106  TROOT& operator=(const TROOT&); //Not implemented
108 protected:
109  typedef std::atomic<TListOfEnums*> AListOfEnums_t;
111  TString fConfigOptions; //ROOT ./configure set build options
112  TString fConfigFeatures; //ROOT ./configure detected build features
113  TString fVersion; //ROOT version (from CMZ VERSQQ) ex 0.05/01
114  Int_t fVersionInt; //ROOT version in integer format (501)
115  Int_t fVersionCode; //ROOT version code as used in RVersion.h
116  Int_t fVersionDate; //Date of ROOT version (ex 951226)
117  Int_t fVersionTime; //Time of ROOT version (ex 1152)
118  Int_t fBuiltDate; //Date of ROOT built
119  Int_t fBuiltTime; //Time of ROOT built
120  TString fGitCommit; //Git commit SHA1 of built
121  TString fGitBranch; //Git branch
122  TString fGitDate; //Date and time when make was run
123  Int_t fTimer; //Timer flag
124  std::atomic<TApplication*> fApplication; //Pointer to current application
125  TInterpreter *fInterpreter; //Command interpreter
126  Bool_t fBatch; //True if session without graphics
127  TString fWebDisplay; //If not empty it defines where web graphics should be rendered (cef, qt5, browser...)
128  Bool_t fIsWebDisplay; //True if session with graphics on web
129  Bool_t fIsWebDisplayBatch; //True if session with graphics on web and batch mode
130  Bool_t fEditHistograms; //True if histograms can be edited with the mouse
131  Bool_t fFromPopUp; //True if command executed from a popup menu
132  Bool_t fMustClean; //True if object destructor scans canvases
133  Bool_t fReadingObject; //True while reading an object [Deprecated (will be removed in next release)
134  Bool_t fForceStyle; //Force setting of current style when reading objects
135  Bool_t fInterrupt; //True if macro should be interrupted
136  Bool_t fEscape; //True if ESC has been pressed
137  Bool_t fExecutingMacro; //True while executing a TMacro
138  Int_t fEditorMode; //Current Editor mode
139  const TObject *fPrimitive; //Currently selected primitive
140  TVirtualPad *fSelectPad; //Currently selected pad
141  TCollection *fClasses; //List of classes definition
142  TCollection *fTypes; //List of data types definition
143  TListOfFunctionTemplates *fFuncTemplate; //List of global function templates
144  TListOfDataMembers*fGlobals; //List of global variables
145  TListOfFunctions*fGlobalFunctions; //List of global functions
146  TSeqCollection *fClosedObjects; //List of closed objects from the list of files and sockets, so we can delete them if neededCl.
147  TSeqCollection *fFiles; //List of files
148  TSeqCollection *fMappedFiles; //List of memory mapped files
149  TSeqCollection *fSockets; //List of network sockets
150  TSeqCollection *fCanvases; //List of canvases
151  TSeqCollection *fStyles; //List of styles
152  TCollection *fFunctions; //List of analytic functions
153  TSeqCollection *fTasks; //List of tasks
154  TSeqCollection *fColors; //List of colors
155  TSeqCollection *fGeometries; //List of geometries
156  TSeqCollection *fBrowsers; //List of browsers
157  TSeqCollection *fSpecials; //List of special objects
158  TSeqCollection *fCleanups; //List of recursiveRemove collections
159  TSeqCollection *fMessageHandlers; //List of message handlers
160  TSeqCollection *fStreamerInfo; //List of active StreamerInfo classes
161  TCollection *fClassGenerators; //List of user defined class generators;
162  TSeqCollection *fSecContexts; //List of security contexts (TSecContext)
163  TSeqCollection *fProofs; //List of proof sessions
164  TSeqCollection *fClipboard; //List of clipboard objects
165  TSeqCollection *fDataSets; //List of data sets (TDSet or TChain)
166  AListOfEnums_t fEnums; //List of enum types
167  TProcessUUID *fUUIDs; //Pointer to TProcessID managing TUUIDs
168  TFolder *fRootFolder; //top level folder //root
169  TList *fBrowsables; //List of browsables
170  TPluginManager *fPluginManager; //Keeps track of plugin library handlers
171  TString fCutClassName; //Name of default CutG class in graphics editor
172  TString fDefCanvasName; //Name of default canvas
174  TROOT(); //Only used by Dictionary
175  void InitSystem(); //Operating System interface
176  void InitThreads(); //Initialize threads library
177  void InitInterpreter(); //Initialize interpreter (cling)
178  void ReadGitInfo(); //Read Git commit SHA1 and branch name
179  void *operator new(size_t l) { return TObject::operator new(l); }
180  void *operator new(size_t l, void *ptr) { return TObject::operator new(l,ptr); }
182  friend class ::ROOT::Internal::TROOTAllocator;
184  TListOfFunctions*GetGlobalFunctions();
186 public:
188  typedef std::vector<std::pair<std::string, int> > FwdDeclArgsToKeepCollection_t;
190  TROOT(const char *name, const char *title, VoidFuncPtr_t *initfunc = 0);
191  virtual ~TROOT();
192  void AddClass(TClass *cl);
193  void AddClassGenerator(TClassGenerator *gen);
194  virtual void Append(TObject *obj, Bool_t replace = kFALSE);
195  void Browse(TBrowser *b);
196  Bool_t ClassSaved(TClass *cl);
197  void CloseFiles();
198  void EndOfProcessCleanups();
199  virtual TObject *FindObject(const char *name) const;
200  virtual TObject *FindObject(const TObject *obj) const;
201  virtual TObject *FindObjectAny(const char *name) const;
202  virtual TObject *FindObjectAnyFile(const char *name) const;
203  TObject *FindSpecialObject(const char *name, void *&where);
204  const char *FindObjectClassName(const char *name) const;
205  const char *FindObjectPathName(const TObject *obj) const;
206  TClass *FindSTLClass(const char *name, Bool_t load, Bool_t silent = kFALSE) const;
207  void ForceStyle(Bool_t force = kTRUE) { fForceStyle = force; }
208  Bool_t FromPopUp() const { return fFromPopUp; }
209  TPluginManager *GetPluginManager() const { return fPluginManager; }
210  TApplication *GetApplication() const { return fApplication; }
212  TClass *GetClass(const char *name, Bool_t load = kTRUE, Bool_t silent = kFALSE) const;
213  TClass *GetClass(const std::type_info &typeinfo, Bool_t load = kTRUE, Bool_t silent = kFALSE) const;
214  TColor *GetColor(Int_t color) const;
215  const char *GetConfigOptions() const { return fConfigOptions; }
216  const char *GetConfigFeatures() const { return fConfigFeatures; }
217  const char *GetCutClassName() const { return fCutClassName; }
218  const char *GetDefCanvasName() const { return fDefCanvasName; }
219  Bool_t GetEditHistograms() const { return fEditHistograms; }
220  Int_t GetEditorMode() const { return fEditorMode; }
221  Bool_t GetForceStyle() const { return fForceStyle; }
222  Int_t GetBuiltDate() const { return fBuiltDate; }
223  Int_t GetBuiltTime() const { return fBuiltTime; }
224  const char *GetGitCommit() const { return fGitCommit; }
225  const char *GetGitBranch() const { return fGitBranch; }
226  const char *GetGitDate();
227  Int_t GetVersionDate() const { return fVersionDate; }
228  Int_t GetVersionTime() const { return fVersionTime; }
229  Int_t GetVersionInt() const { return fVersionInt; }
230  Int_t GetVersionCode() const { return fVersionCode; }
231  const char *GetVersion() const { return fVersion; }
232  TCollection *GetListOfClasses() const { return fClasses; }
233  TSeqCollection *GetListOfColors() const { return fColors; }
234  TCollection *GetListOfTypes(Bool_t load = kFALSE);
235  TCollection *GetListOfGlobals(Bool_t load = kFALSE);
236  TCollection *GetListOfGlobalFunctions(Bool_t load = kFALSE);
237  TSeqCollection *GetListOfClosedObjects() const { return fClosedObjects; }
238  TSeqCollection *GetListOfFiles() const { return fFiles; }
239  TSeqCollection *GetListOfMappedFiles() const { return fMappedFiles; }
240  TSeqCollection *GetListOfSockets() const { return fSockets; }
241  TSeqCollection *GetListOfCanvases() const { return fCanvases; }
242  TSeqCollection *GetListOfStyles() const { return fStyles; }
243  TCollection *GetListOfFunctions() const { return fFunctions; }
244  TCollection *GetListOfFunctionOverloads(const char* name) const;
245  TSeqCollection *GetListOfGeometries() const { return fGeometries; }
246  TSeqCollection *GetListOfBrowsers() const { return fBrowsers; }
247  TSeqCollection *GetListOfSpecials() const { return fSpecials; }
248  TSeqCollection *GetListOfTasks() const { return fTasks; }
249  TSeqCollection *GetListOfCleanups() const { return fCleanups; }
250  TSeqCollection *GetListOfStreamerInfo() const { return fStreamerInfo; }
251  TSeqCollection *GetListOfMessageHandlers() const { return fMessageHandlers; }
252  TCollection *GetListOfClassGenerators() const { return fClassGenerators; }
253  TSeqCollection *GetListOfSecContexts() const { return fSecContexts; }
254  TSeqCollection *GetListOfProofs() const { return fProofs; }
255  TSeqCollection *GetClipboard() const { return fClipboard; }
256  TSeqCollection *GetListOfDataSets() const { return fDataSets; }
257  TCollection *GetListOfEnums(Bool_t load = kFALSE);
258  TCollection *GetListOfFunctionTemplates();
259  TList *GetListOfBrowsables() const { return fBrowsables; }
260  TDataType *GetType(const char *name, Bool_t load = kFALSE) const;
261  TFile *GetFile() const { if (gDirectory != this) return gDirectory->GetFile(); else return 0;}
262  TFile *GetFile(const char *name) const;
264  TStyle *GetStyle(const char *name) const;
265  TObject *GetFunction(const char *name) const;
266  TGlobal *GetGlobal(const char *name, Bool_t load = kFALSE) const;
267  TGlobal *GetGlobal(const TObject *obj, Bool_t load = kFALSE) const;
268  TFunction *GetGlobalFunction(const char *name, const char *params = 0, Bool_t load = kFALSE);
269  TFunction *GetGlobalFunctionWithPrototype(const char *name, const char *proto = 0, Bool_t load = kFALSE);
270  TObject *GetGeometry(const char *name) const;
271  const TObject *GetSelectedPrimitive() const { return fPrimitive; }
272  TVirtualPad *GetSelectedPad() const { return fSelectPad; }
273  Int_t GetNclasses() const { return fClasses->GetSize(); }
274  Int_t GetNtypes() const { return fTypes->GetSize(); }
275  TFolder *GetRootFolder() const { return fRootFolder; }
276  TProcessUUID *GetUUIDs() const { return fUUIDs; }
277  const TString &GetWebDisplay() const { return fWebDisplay; }
278  void Idle(UInt_t idleTimeInSec, const char *command = 0);
279  Int_t IgnoreInclude(const char *fname, const char *expandedfname);
280  Bool_t IsBatch() const { return fBatch; }
281  Bool_t IsExecutingMacro() const { return fExecutingMacro; }
282  Bool_t IsFolder() const { return kTRUE; }
283  Bool_t IsInterrupted() const { return fInterrupt; }
284  Bool_t IsEscaped() const { return fEscape; }
285  Bool_t IsLineProcessing() const { return fLineIsProcessing ? kTRUE : kFALSE; }
286  Bool_t IsProofServ() const { return fName == "proofserv" ? kTRUE : kFALSE; }
287  Bool_t IsRootFile(const char *filename) const;
288  Bool_t IsWebDisplay() const { return fIsWebDisplay; }
289  Bool_t IsWebDisplayBatch() const { return fIsWebDisplayBatch; }
290  void ls(Option_t *option = "") const;
291  Int_t LoadClass(const char *classname, const char *libname, Bool_t check = kFALSE);
292  TClass *LoadClass(const char *name, Bool_t silent = kFALSE) const;
293  Int_t LoadMacro(const char *filename, Int_t *error = 0, Bool_t check = kFALSE);
294  Long_t Macro(const char *filename, Int_t *error = 0, Bool_t padUpdate = kTRUE);
295  TCanvas *MakeDefCanvas() const;
296  void Message(Int_t id, const TObject *obj);
297  Bool_t MustClean() const { return fMustClean; }
298  Long_t ProcessLine(const char *line, Int_t *error = 0);
299  Long_t ProcessLineSync(const char *line, Int_t *error = 0);
300  Long_t ProcessLineFast(const char *line, Int_t *error = 0);
301  Bool_t ReadingObject() const;
302  void RecursiveRemove(TObject *obj);
303  void RefreshBrowsers();
304  static void RegisterModule(const char* modulename,
305  const char** headers,
306  const char** includePaths,
307  const char* payLoadCode,
308  const char* fwdDeclCode,
309  void (*triggerFunc)(),
310  const FwdDeclArgsToKeepCollection_t& fwdDeclsArgToSkip,
311  const char** classesHeaders,
312  bool hasCxxModule = false);
313  TObject *Remove(TObject*);
314  void RemoveClass(TClass *);
315  void Reset(Option_t *option="");
316  void SaveContext();
317  void SetApplication(TApplication *app) { fApplication = app; }
318  void SetBatch(Bool_t batch = kTRUE) { fBatch = batch; }
319  void SetWebDisplay(const char *webdisplay);
320  void SetCutClassName(const char *name = "TCutG");
321  void SetDefCanvasName(const char *name = "c1") { fDefCanvasName = name; }
322  void SetEditHistograms(Bool_t flag = kTRUE) { fEditHistograms = flag; }
323  void SetEditorMode(const char *mode = "");
324  void SetExecutingMacro(Bool_t flag = kTRUE) { fExecutingMacro = flag; }
325  void SetFromPopUp(Bool_t flag = kTRUE) { fFromPopUp = flag; }
326  void SetInterrupt(Bool_t flag = kTRUE) { fInterrupt = flag; }
327  void SetEscape(Bool_t flag = kTRUE) { fEscape = flag; }
328  void SetLineIsProcessing() { fLineIsProcessing++; }
329  void SetLineHasBeenProcessed() { if (fLineIsProcessing) fLineIsProcessing--; }
330  void SetReadingObject(Bool_t flag = kTRUE);
331  void SetMustClean(Bool_t flag = kTRUE) { fMustClean=flag; }
332  void SetSelectedPrimitive(const TObject *obj) { fPrimitive = obj; }
333  void SetSelectedPad(TVirtualPad *pad) { fSelectPad = pad; }
334  void SetStyle(const char *stylename = "Default");
335  void Time(Int_t casetime=1) { fTimer = casetime; }
336  Int_t Timer() const { return fTimer; }
338  //---- static functions
339  static Int_t DecreaseDirLevel();
340  static Int_t GetDirLevel();
341  static const char *GetMacroPath();
342  static void SetMacroPath(const char *newpath);
343  static Int_t IncreaseDirLevel();
344  static void IndentLevel();
345  static void Initialize();
346  static Bool_t Initialized();
347  static Bool_t MemCheck();
348  static void SetDirLevel(Int_t level = 0);
349  static Int_t ConvertVersionCode2Int(Int_t code);
350  static Int_t ConvertVersionInt2Code(Int_t v);
351  static Int_t RootVersionCode();
352  static const std::vector<std::string> &AddExtraInterpreterArgs(const std::vector<std::string> &args);
353  static const char**&GetExtraInterpreterArgs();
355  static const TString& GetRootSys();
356  static const TString& GetBinDir();
357  static const TString& GetLibDir();
358  static const TString& GetIncludeDir();
359  static const TString& GetEtcDir();
360  static const TString& GetDataDir();
361  static const TString& GetDocDir();
362  static const TString& GetMacroDir();
363  static const TString& GetTutorialDir();
364  static const TString& GetSourceDir();
365  static const TString& GetIconPath();
366  static const TString& GetTTFFontDir();
368  // Backward compatibility function - do not use for new code
369  static const char *GetTutorialsDir();
370  static void ShutDown();
372  ClassDef(TROOT,0) //Top level (or root) structure for all classes
373 };
376 namespace ROOT {
377  TROOT *GetROOT();
378  namespace Internal {
381  inline void SetRequireCleanup(TObject &obj) {
382  obj.SetBit(kIsReferenced);
383  obj.SetUniqueID(0);
384  }
387  return obj.TestBit(kIsReferenced) && obj.GetUniqueID() == 0;
388  }
389  }
391  /// \brief call RecursiveRemove for obj if gROOT is valid
392  /// and obj.TestBit(kMustCleanup) is true.
393  /// Note: this reset the kMustCleanup bit to allow
394  /// harmless multiple call to this function.
396  {
397  if (obj.TestBit(kMustCleanup)) {
399  if (root && root != &obj && (root->MustClean() || Internal::RequiresCleanup(obj))) {
400  root->RecursiveRemove(&obj);
401  obj.ResetBit(kMustCleanup);
402  }
403  }
404  }
405 }
406 #define gROOT (ROOT::GetROOT())
408 #endif
TSeqCollection * fStreamerInfo
Definition: TROOT.h:160
void AddClass(const char *cname, Version_t id, const std::type_info &info, DictFuncPtr_t dict, Int_t pragmabits)
Global function called by the ctor of a class&#39;s init class (see the ClassImp macro).
Bool_t fExecutingMacro
Definition: TROOT.h:137
void SetSelectedPad(TVirtualPad *pad)
Definition: TROOT.h:333
virtual UInt_t GetUniqueID() const
Return the unique object id.
Definition: TObject.cxx:375
TListOfFunctionTemplates * fFuncTemplate
Definition: TROOT.h:143
UInt_t GetImplicitMTPoolSize() R__DEPRECATED(6
Returns the size of the pool used for implicit multi-threading.
Definition: TROOT.cxx:579
Int_t GetNtypes() const
Definition: TROOT.h:274
const TObject * GetSelectedPrimitive() const
Definition: TROOT.h:271
A TFolder object is a collection of objects and folders.
Definition: TFolder.h:30
Bool_t GetForceStyle() const
Definition: TROOT.h:221
A collection of TDataMember objects designed for fast access given a DeclId_t and for keep track of T...
TList * GetListOfBrowsables() const
Definition: TROOT.h:259
This class defines an abstract interface to a generic command line interpreter.
Definition: TInterpreter.h:61
const std::string & GetIncludeDir()
\ returns the include directory in the installation.
TFolder * fRootFolder
Definition: TROOT.h:168
Bool_t IsWebDisplay() const
Definition: TROOT.h:288
void SetDefCanvasName(const char *name="c1")
Definition: TROOT.h:321
TSeqCollection * GetListOfMappedFiles() const
Definition: TROOT.h:239
ROOT top level object description.
Definition: TROOT.h:93
This class is a specialized TProcessID managing the list of UUIDs.
Definition: TProcessUUID.h:32
TSeqCollection * fProofs
Definition: TROOT.h:163
Bool_t IsEscaped() const
Definition: TROOT.h:284
Definition: RConfig.hxx:522
void SetLineIsProcessing()
Definition: TROOT.h:328
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn&#39;t allow to forward declare tb...
Definition: StringConv.hxx:21
TSeqCollection * GetListOfCleanups() const
Definition: TROOT.h:249
TCollection * GetListOfClasses() const
Definition: TROOT.h:232
TLine * line
void CallRecursiveRemoveIfNeeded(TObject &obj)
call RecursiveRemove for obj if gROOT is valid and obj.TestBit(kMustCleanup) is true.
Definition: TROOT.h:395
TSeqCollection * fGeometries
Definition: TROOT.h:155
TCollection * GetListOfClassGenerators() const
Definition: TROOT.h:252
const char Option_t
Definition: RtypesCore.h:64
Dictionary for function template This class describes one single function template.
void DisableImplicitMT()
Disables the implicit multi-threading in ROOT (see EnableImplicitMT).
Definition: TROOT.cxx:543
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:116
void SetExecutingMacro(Bool_t flag=kTRUE)
Definition: TROOT.h:324
Int_t GetVersionInt() const
Definition: TROOT.h:229
Bool_t fForceStyle
Definition: TROOT.h:134
Bool_t IsFolder() const
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects)...
Definition: TROOT.h:282
TProcessUUID * GetUUIDs() const
Definition: TROOT.h:276
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
Definition: TFile.h:53
TString fVersion
Definition: TROOT.h:113
void SaveContext()
Save the current Cling state.
Definition: TCling.cxx:3675
const char * GetConfigFeatures() const
Definition: TROOT.h:216
This class implements a mutex interface.
Definition: TVirtualMutex.h:34
Bool_t IsImplicitMTEnabled()
Returns true if the implicit multi-threading in ROOT is enabled.
Definition: TROOT.cxx:557
Int_t GetVersionDate() const
Definition: TROOT.h:227
Definition: TROOT.cxx:381
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
Definition: TObject.h:187
virtual void Browse(TBrowser *b)
Browse object. May be overridden for another default action.
Definition: TObject.cxx:119
Basic string class.
Definition: TString.h:131
TString & GetMacroPath()
Definition: TROOT.cxx:470
int Int_t
Definition: RtypesCore.h:43
bool Bool_t
Definition: RtypesCore.h:61
std::vector< std::pair< std::string, int > > FwdDeclArgsToKeepCollection_t
Definition: TInterpreter.h:134
R__EXTERN TVirtualMutex * gROOTMutex
Definition: TROOT.h:59
Int_t fVersionCode
Definition: TROOT.h:115
Int_t GetBuiltDate() const
Definition: TROOT.h:222
Type GetType(const std::string &Name)
Definition: Systematics.cxx:34
const char * GetCutClassName() const
Definition: TROOT.h:217
std::function< T(T)> GetFunction(const std::string &name)
Get function pointer to implementation from name given as string.
Definition: Objectives.hxx:58
std::atomic< TApplication * > fApplication
Definition: TROOT.h:124
TString fGitCommit
Definition: TROOT.h:120
const char * GetDefCanvasName() const
Definition: TROOT.h:218
Int_t GetVersionCode() const
Definition: TROOT.h:230
Bool_t FromPopUp() const
Definition: TROOT.h:208
void SetBatch(Bool_t batch=kTRUE)
Definition: TROOT.h:318
void ForceStyle(Bool_t force=kTRUE)
Definition: TROOT.h:207
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
Definition: TObject.cxx:694
TString fCutClassName
Definition: TROOT.h:171
static Int_t fgDirLevel
Definition: TROOT.h:101
TInterpreter * fInterpreter
Definition: TROOT.h:125
std::unique_ptr< cling::Interpreter > fInterpreter
Definition: TCling.h:128
AListOfEnums_t fEnums
Definition: TROOT.h:166
TSeqCollection * fMappedFiles
Definition: TROOT.h:148
TClass * GetClass(T *)
Definition: TClass.h:658
Sequenceable collection abstract base class.
Int_t fVersionInt
Definition: TROOT.h:114
#define ClassDef(name, id)
Definition: Rtypes.h:322
TSeqCollection * fCleanups
Definition: TROOT.h:158
Int_t fEditorMode
Definition: TROOT.h:138
Bool_t fMustClean
Definition: TROOT.h:132
void SetEscape(Bool_t flag=kTRUE)
Definition: TROOT.h:327
static Bool_t fgRootInit
Definition: TROOT.h:102
TSeqCollection * GetListOfSpecials() const
Definition: TROOT.h:247
TPluginManager * GetPluginManager() const
Definition: TROOT.h:209
const char * GetConfigOptions() const
Definition: TROOT.h:215
Bool_t IsLineProcessing() const
Definition: TROOT.h:285
void SetFromPopUp(Bool_t flag=kTRUE)
Definition: TROOT.h:325
void SetMustClean(Bool_t flag=kTRUE)
Definition: TROOT.h:331
Bool_t IsInterrupted() const
Definition: TROOT.h:283
Long_t ProcessLine(const char *line, EErrorCode *error=0)
Definition: TCling.cxx:2370
Int_t GetNclasses() const
Definition: TROOT.h:273
TString fWebDisplay
Definition: TROOT.h:127
TSeqCollection * fClipboard
Definition: TROOT.h:164
This class defines an interface to the cling C++ interpreter.
Definition: TCling.h:99
TVirtualPad is an abstract base class for the Pad and Canvas classes.
Definition: TVirtualPad.h:50
TCollection * GetListOfFunctions() const
Definition: TROOT.h:243
TSeqCollection * GetListOfClosedObjects() const
Definition: TROOT.h:237
Bool_t fEscape
Definition: TROOT.h:136
TSeqCollection * fFiles
Definition: TROOT.h:147
TSeqCollection * GetListOfGeometries() const
Definition: TROOT.h:245
void EnableImplicitMT(UInt_t numthreads=0)
Enable ROOT&#39;s implicit multi-threading for all objects and methods that provide an internal paralleli...
Definition: TROOT.cxx:526
virtual void SetUniqueID(UInt_t uid)
Set the unique object id.
Definition: TObject.cxx:705
TCollection * fClasses
Definition: TROOT.h:141
A doubly linked list.
Definition: TList.h:44
TStyle objects may be created to define special styles.
Definition: TStyle.h:27
Definition: TROOT.h:379
Bool_t fEditHistograms
Definition: TROOT.h:130
Using a TBrowser one can browse all ROOT objects.
Definition: TBrowser.h:37
Int_t fVersionTime
Definition: TROOT.h:117
void Time(Int_t casetime=1)
Definition: TROOT.h:335
virtual void ls(Option_t *option="") const
List TNamed name and title.
Definition: TNamed.cxx:113
static Bool_t fgMemCheck
Definition: TROOT.h:103
Bool_t IsParBranchProcessingEnabled()
Returns true if parallel branch processing is enabled.
Definition: TROOT.cxx:441
TSeqCollection * fDataSets
Definition: TROOT.h:165
virtual TObject * FindObject(const char *name) const
Must be redefined in derived classes.
Definition: TObject.cxx:321
TSeqCollection * fMessageHandlers
Definition: TROOT.h:159
void RemoveClass(const char *cname)
Global function called by the dtor of a class&#39;s init class (see the ClassImp macro).
void Initialize(Bool_t useTMVAStyle=kTRUE)
Definition: tmvaglob.cxx:176
TString fDefCanvasName
Definition: TROOT.h:172
Bool_t MustClean() const
Definition: TROOT.h:297
Basic data type descriptor (datatype information is obtained from CINT).
Definition: TDataType.h:44
TFolder * GetRootFolder() const
Definition: TROOT.h:275
TPluginManager * fPluginManager
Definition: TROOT.h:170
std::atomic< TListOfEnums * > AListOfEnums_t
Definition: TROOT.h:109
TString fGitBranch
Definition: TROOT.h:121
TSeqCollection * GetListOfCanvases() const
Definition: TROOT.h:241
TSeqCollection * GetListOfDataSets() const
Definition: TROOT.h:256
TSeqCollection * fSecContexts
Definition: TROOT.h:162
Collection abstract base class.
Definition: TCollection.h:63
void(* VoidFuncPtr_t)()
Definition: Rtypes.h:77
TSeqCollection * GetListOfSecContexts() const
Definition: TROOT.h:253
unsigned int UInt_t
Definition: RtypesCore.h:44
void SetApplication(TApplication *app)
Definition: TROOT.h:317
virtual void ShutDown()
Definition: TCling.cxx:1599
Bool_t RequiresCleanup(TObject &obj)
Definition: TROOT.h:386
This class implements a plugin library manager.
Objects following this interface can be passed onto the TROOT object to implement a user customized w...
TClass instances represent classes, structs and namespaces in the ROOT type system.
Definition: TClass.h:80
TFile * GetFile() const
Definition: TROOT.h:261
Int_t GetBuiltTime() const
Definition: TROOT.h:223
Int_t GetEditorMode() const
Definition: TROOT.h:220
Global variables class (global variables are obtained from CINT).
Definition: TGlobal.h:28
Definition: TROOT.cxx:466
TString fName
Definition: TNamed.h:32
Bool_t GetEditHistograms() const
Definition: TROOT.h:219
Int_t Timer() const
Definition: TROOT.h:336
TInterpreter * GetInterpreter() const
Definition: TROOT.h:211
TSeqCollection * fSpecials
Definition: TROOT.h:157
const Bool_t kFALSE
Definition: RtypesCore.h:90
TString fGitDate
Definition: TROOT.h:122
long Long_t
Definition: RtypesCore.h:52
The Canvas class.
Definition: TCanvas.h:27
const std::string & GetRootSys()
Bool_t IsExecutingMacro() const
Definition: TROOT.h:281
TSeqCollection * GetListOfColors() const
Definition: TROOT.h:233
TListOfFunctions * fGlobalFunctions
Definition: TROOT.h:145
Bool_t IsWebDisplayBatch() const
Definition: TROOT.h:289
TSeqCollection * fCanvases
Definition: TROOT.h:150
TSeqCollection * GetListOfSockets() const
Definition: TROOT.h:240
TVirtualPad * GetSelectedPad() const
Definition: TROOT.h:272
void EnableThreadSafety()
Enables the global mutex to make ROOT thread safe/aware.
Definition: TROOT.cxx:495
std::string Message(const std::string &msg, const std::string &location)
Definition: Scanner.cxx:178
void SetEditHistograms(Bool_t flag=kTRUE)
Definition: TROOT.h:322
TString fConfigOptions
Definition: TROOT.h:111
void RecursiveRemove(TObject *obj)
Recursively remove this object from the list of Cleanups.
Definition: TROOT.cxx:2429
Describe directory structure in memory.
Definition: TDirectory.h:40
TSeqCollection * GetListOfStyles() const
Definition: TROOT.h:242
TSeqCollection * GetListOfFiles() const
Definition: TROOT.h:238
DeclId_t GetFunctionTemplate(ClassInfo_t *cl, const char *funcname)
Return pointer to cling interface function for a method of a class with a certain name...
Definition: TCling.cxx:4956
Int_t GetVersionTime() const
Definition: TROOT.h:228
void Reset()
Pressing Ctrl+C should forward here.
Definition: TCling.cxx:3524
Bool_t fFromPopUp
Definition: TROOT.h:131
Int_t fTimer
Definition: TROOT.h:123
void EnableParBranchProcessing()
Globally enables the parallel branch processing, which is a case of implicit multi-threading (IMT) in...
Definition: TROOT.cxx:414
Bool_t fBatch
Definition: TROOT.h:126
The color creation and management class.
Definition: TColor.h:19
TSeqCollection * fStyles
Definition: TROOT.h:151
void SetInterrupt(Bool_t flag=kTRUE)
Definition: TROOT.h:326
Bool_t fReadingObject
Definition: TROOT.h:133
TSeqCollection * GetListOfStreamerInfo() const
Definition: TROOT.h:250
TCollection * fClassGenerators
Definition: TROOT.h:161
const char * GetGitCommit() const
Definition: TROOT.h:224
void RecursiveRemove(TObject *obj)
Delete object from cling symbol table so it can not be used anymore.
Definition: TCling.cxx:3499
Binding & operator=(OUT(*fun)(void))
Bool_t IsProofServ() const
Definition: TROOT.h:286
Int_t fBuiltTime
Definition: TROOT.h:119
Mother of all ROOT objects.
Definition: TObject.h:37
void GetColor(Float_t v, Float_t vmin, Float_t vmax, Int_t type, Float_t *rgba)
This function creates color for parametric surface&#39;s vertex, using its &#39;u&#39; value. ...
Definition: TGLUtil.cxx:3878
Global functions class (global functions are obtained from CINT).
Definition: TFunction.h:28
Bool_t fIsWebDisplay
Definition: TROOT.h:128
std::vector< std::pair< std::string, int > > FwdDeclArgsToKeepCollection_t
Definition: TROOT.h:188
Bool_t IsBatch() const
Definition: TROOT.h:280
#define R__EXTERN
Definition: DllImport.h:27
Int_t fBuiltDate
Definition: TROOT.h:118
const char * GetGitBranch() const
Definition: TROOT.h:225
void RegisterModule(const char *modulename, const char **headers, const char **includePaths, const char *payloadCode, const char *fwdDeclsCode, void(*triggerFunc)(), const FwdDeclArgsToKeepCollection_t &fwdDeclsArgToSkip, const char **classesHeaders, Bool_t lateRegistration=false, Bool_t hasCxxModule=false)
Inject the module named "modulename" into cling; load all headers.
Definition: TCling.cxx:1951
Bool_t fIsWebDisplayBatch
Definition: TROOT.h:129
TCollection * fFunctions
Definition: TROOT.h:152
A collection of TEnum objects designed for fast access given a DeclId_t and for keep track of TEnum t...
Definition: TListOfEnums.h:32
auto * l
Definition: textangle.C:4
TListOfDataMembers * fGlobals
Definition: TROOT.h:144
TSeqCollection * fClosedObjects
Definition: TROOT.h:146
TSeqCollection * GetClipboard() const
Definition: TROOT.h:255
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
Definition: TRolke.cxx:630
Int_t fLineIsProcessing
Definition: TROOT.h:99
TSeqCollection * fTasks
Definition: TROOT.h:153
TSeqCollection * fColors
Definition: TROOT.h:154
TCollection * fTypes
Definition: TROOT.h:142
const char * proto
Definition: civetweb.c:16604
void SetSelectedPrimitive(const TObject *obj)
Definition: TROOT.h:332
TSeqCollection * fBrowsers
Definition: TROOT.h:156
TSeqCollection * GetListOfProofs() const
Definition: TROOT.h:254
#define gDirectory
Definition: TDirectory.h:229
void ResetBit(UInt_t f)
Definition: TObject.h:186
This class creates the ROOT Application Environment that interfaces to the windowing system eventloop...
Definition: TApplication.h:39
TList * fBrowsables
Definition: TROOT.h:169
A collection of TFunction objects designed for fast access given a DeclId_t and for keep track of TFu...
TSeqCollection * fSockets
Definition: TROOT.h:149
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
Definition: TCollection.h:182
Bool_t fInterrupt
Definition: TROOT.h:135
UInt_t GetThreadPoolSize()
Returns the size of ROOT&#39;s thread pool.
Definition: TROOT.cxx:564
TSeqCollection * GetListOfMessageHandlers() const
Definition: TROOT.h:251
TSeqCollection * GetListOfBrowsers() const
Definition: TROOT.h:246
const Bool_t kTRUE
Definition: RtypesCore.h:89
void SetLineHasBeenProcessed()
Definition: TROOT.h:329
void LoadMacro(const char *filename, EErrorCode *error=0)
Load a macro file in cling&#39;s memory.
Definition: TCling.cxx:3378
const std::string & GetEtcDir()
char name[80]
Definition: TGX11.cxx:109
TString fConfigFeatures
Definition: TROOT.h:112
TProcessUUID * fUUIDs
Definition: TROOT.h:167
TSeqCollection * GetListOfTasks() const
Definition: TROOT.h:248
void DisableParBranchProcessing()
Globally disables the IMT use case of parallel branch processing, deactivating the corresponding lock...
Definition: TROOT.cxx:428
const TObject * fPrimitive
Definition: TROOT.h:139
void SetRequireCleanup(TObject &obj)
Definition: TROOT.h:381
TVirtualPad * fSelectPad
Definition: TROOT.h:140
const TString & GetWebDisplay() const
Definition: TROOT.h:277
TApplication * GetApplication() const
Definition: TROOT.h:210
const char * GetVersion() const
Definition: TROOT.h:231