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