Logo ROOT   6.08/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 #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 
73  // Manage parallel branch processing
78  public:
81  };
82 
83  // Manage parallel tree processing
88  public:
91  };
92 } } // End ROOT::Internal
93 
94 namespace ROOT {
95  // Enable support for multi-threading within the ROOT code,
96  // in particular, enables the global mutex to make ROOT thread safe/aware.
97  void EnableThreadSafety();
98  // Manage implicit multi-threading within ROOT
99  void EnableImplicitMT(UInt_t numthreads = 0);
100  void DisableImplicitMT();
102 }
103 
104 class TROOT : public TDirectory {
105 
106 friend class TCling;
108 
109 private:
110  Int_t fLineIsProcessing; //To synchronize multi-threads
111 
112  static Int_t fgDirLevel; //Indentation level for ls()
113  static Bool_t fgRootInit; //Singleton initialization flag
114  static Bool_t fgMemCheck; //Turn on memory leak checker
115 
116  TROOT(const TROOT&); //Not implemented
117  TROOT& operator=(const TROOT&); //Not implemented
118 
119 protected:
120  typedef std::atomic<TListOfEnums*> AListOfEnums_t;
121 
122  TString fConfigOptions; //ROOT ./configure set build options
123  TString fConfigFeatures; //ROOT ./configure detected build features
124  TString fVersion; //ROOT version (from CMZ VERSQQ) ex 0.05/01
125  Int_t fVersionInt; //ROOT version in integer format (501)
126  Int_t fVersionCode; //ROOT version code as used in RVersion.h
127  Int_t fVersionDate; //Date of ROOT version (ex 951226)
128  Int_t fVersionTime; //Time of ROOT version (ex 1152)
129  Int_t fBuiltDate; //Date of ROOT built
130  Int_t fBuiltTime; //Time of ROOT built
131  TString fGitCommit; //Git commit SHA1 of built
132  TString fGitBranch; //Git branch
133  TString fGitDate; //Date and time when make was run
134  Int_t fTimer; //Timer flag
135  std::atomic<TApplication*> fApplication; //Pointer to current application
136  TInterpreter *fInterpreter; //Command interpreter
137  Bool_t fBatch; //True if session without graphics
138  Bool_t fEditHistograms; //True if histograms can be edited with the mouse
139  Bool_t fFromPopUp; //True if command executed from a popup menu
140  Bool_t fMustClean; //True if object destructor scans canvases
141  Bool_t fReadingObject; //True while reading an object [Deprecated (will be removed in next release)
142  Bool_t fForceStyle; //Force setting of current style when reading objects
143  Bool_t fInterrupt; //True if macro should be interrupted
144  Bool_t fEscape; //True if ESC has been pressed
145  Bool_t fExecutingMacro; //True while executing a TMacro
146  Int_t fEditorMode; //Current Editor mode
147  const TObject *fPrimitive; //Currently selected primitive
148  TVirtualPad *fSelectPad; //Currently selected pad
149  TCollection *fClasses; //List of classes definition
150  TCollection *fTypes; //List of data types definition
151  TListOfFunctionTemplates *fFuncTemplate; //List of global function templates
152  TListOfDataMembers*fGlobals; //List of global variables
153  TListOfFunctions*fGlobalFunctions; //List of global functions
154  TSeqCollection *fClosedObjects; //List of closed objects from the list of files and sockets, so we can delete them if neededCl.
155  TSeqCollection *fFiles; //List of files
156  TSeqCollection *fMappedFiles; //List of memory mapped files
157  TSeqCollection *fSockets; //List of network sockets
158  TSeqCollection *fCanvases; //List of canvases
159  TSeqCollection *fStyles; //List of styles
160  TCollection *fFunctions; //List of analytic functions
161  TSeqCollection *fTasks; //List of tasks
162  TSeqCollection *fColors; //List of colors
163  TSeqCollection *fGeometries; //List of geometries
164  TSeqCollection *fBrowsers; //List of browsers
165  TSeqCollection *fSpecials; //List of special objects
166  TSeqCollection *fCleanups; //List of recursiveRemove collections
167  TSeqCollection *fMessageHandlers; //List of message handlers
168  TSeqCollection *fStreamerInfo; //List of active StreamerInfo classes
169  TCollection *fClassGenerators; //List of user defined class generators;
170  TSeqCollection *fSecContexts; //List of security contexts (TSecContext)
171  TSeqCollection *fProofs; //List of proof sessions
172  TSeqCollection *fClipboard; //List of clipbard objects
173  TSeqCollection *fDataSets; //List of data sets (TDSet or TChain)
174  AListOfEnums_t fEnums; //List of enum types
175  TProcessUUID *fUUIDs; //Pointer to TProcessID managing TUUIDs
176  TFolder *fRootFolder; //top level folder //root
177  TList *fBrowsables; //List of browsables
178  TPluginManager *fPluginManager; //Keeps track of plugin library handlers
179  TString fCutClassName; //Name of default CutG class in graphics editor
180  TString fDefCanvasName; //Name of default canvas
181 
182  TROOT(); //Only used by Dictionary
183  void InitSystem(); //Operating System interface
184  void InitThreads(); //Initialize threads library
185  void InitInterpreter(); //Initialize interpreter (cling)
186  void ReadGitInfo(); //Read Git commit SHA1 and branch name
187  void *operator new(size_t l) { return TObject::operator new(l); }
188  void *operator new(size_t l, void *ptr) { return TObject::operator new(l,ptr); }
189 
190  friend class ::ROOT::Internal::TROOTAllocator;
191 
192  TListOfFunctions*GetGlobalFunctions();
193 
194 public:
195 
196  typedef std::vector<std::pair<std::string, int> > FwdDeclArgsToKeepCollection_t;
197 
198  TROOT(const char *name, const char *title, VoidFuncPtr_t *initfunc = 0);
199  virtual ~TROOT();
200  void AddClass(TClass *cl);
201  void AddClassGenerator(TClassGenerator *gen);
202  void Browse(TBrowser *b);
203  Bool_t ClassSaved(TClass *cl);
204  void CloseFiles();
205  void EndOfProcessCleanups();
206  virtual TObject *FindObject(const char *name) const;
207  virtual TObject *FindObject(const TObject *obj) const;
208  virtual TObject *FindObjectAny(const char *name) const;
209  virtual TObject *FindObjectAnyFile(const char *name) const;
210  TObject *FindSpecialObject(const char *name, void *&where);
211  const char *FindObjectClassName(const char *name) const;
212  const char *FindObjectPathName(const TObject *obj) const;
213  TClass *FindSTLClass(const char *name, Bool_t load, Bool_t silent = kFALSE) const;
214  void ForceStyle(Bool_t force = kTRUE) { fForceStyle = force; }
215  Bool_t FromPopUp() const { return fFromPopUp; }
216  TPluginManager *GetPluginManager() const { return fPluginManager; }
217  TApplication *GetApplication() const { return fApplication; }
219  TClass *GetClass(const char *name, Bool_t load = kTRUE, Bool_t silent = kFALSE) const;
220  TClass *GetClass(const std::type_info &typeinfo, Bool_t load = kTRUE, Bool_t silent = kFALSE) const;
221  TColor *GetColor(Int_t color) const;
222  const char *GetConfigOptions() const { return fConfigOptions; }
223  const char *GetConfigFeatures() const { return fConfigFeatures; }
224  const char *GetCutClassName() const { return fCutClassName; }
225  const char *GetDefCanvasName() const { return fDefCanvasName; }
226  Bool_t GetEditHistograms() const { return fEditHistograms; }
227  Int_t GetEditorMode() const { return fEditorMode; }
228  Bool_t GetForceStyle() const { return fForceStyle; }
229  Int_t GetBuiltDate() const { return fBuiltDate; }
230  Int_t GetBuiltTime() const { return fBuiltTime; }
231  const char *GetGitCommit() const { return fGitCommit; }
232  const char *GetGitBranch() const { return fGitBranch; }
233  const char *GetGitDate();
234  Int_t GetVersionDate() const { return fVersionDate; }
235  Int_t GetVersionTime() const { return fVersionTime; }
236  Int_t GetVersionInt() const { return fVersionInt; }
237  Int_t GetVersionCode() const { return fVersionCode; }
238  const char *GetVersion() const { return fVersion; }
239  TCollection *GetListOfClasses() const { return fClasses; }
240  TSeqCollection *GetListOfColors() const { return fColors; }
241  TCollection *GetListOfTypes(Bool_t load = kFALSE);
242  TCollection *GetListOfGlobals(Bool_t load = kFALSE);
243  TCollection *GetListOfGlobalFunctions(Bool_t load = kFALSE);
244  TSeqCollection *GetListOfClosedObjects() const { return fClosedObjects; }
245  TSeqCollection *GetListOfFiles() const { return fFiles; }
246  TSeqCollection *GetListOfMappedFiles() const { return fMappedFiles; }
247  TSeqCollection *GetListOfSockets() const { return fSockets; }
248  TSeqCollection *GetListOfCanvases() const { return fCanvases; }
249  TSeqCollection *GetListOfStyles() const { return fStyles; }
250  TCollection *GetListOfFunctions() const { return fFunctions; }
251  TCollection *GetListOfFunctionOverloads(const char* name) const;
252  TSeqCollection *GetListOfGeometries() const { return fGeometries; }
253  TSeqCollection *GetListOfBrowsers() const { return fBrowsers; }
254  TSeqCollection *GetListOfSpecials() const { return fSpecials; }
255  TSeqCollection *GetListOfTasks() const { return fTasks; }
256  TSeqCollection *GetListOfCleanups() const { return fCleanups; }
257  TSeqCollection *GetListOfStreamerInfo() const { return fStreamerInfo; }
258  TSeqCollection *GetListOfMessageHandlers() const { return fMessageHandlers; }
259  TCollection *GetListOfClassGenerators() const { return fClassGenerators; }
260  TSeqCollection *GetListOfSecContexts() const { return fSecContexts; }
261  TSeqCollection *GetListOfProofs() const { return fProofs; }
262  TSeqCollection *GetClipboard() const { return fClipboard; }
263  TSeqCollection *GetListOfDataSets() const { return fDataSets; }
264  TCollection *GetListOfEnums(Bool_t load = kFALSE);
265  TCollection *GetListOfFunctionTemplates();
266  TList *GetListOfBrowsables() const { return fBrowsables; }
267  TDataType *GetType(const char *name, Bool_t load = kFALSE) const;
268  TFile *GetFile() const { if (gDirectory != this) return gDirectory->GetFile(); else return 0;}
269  TFile *GetFile(const char *name) const;
270  TFunctionTemplate*GetFunctionTemplate(const char *name);
271  TStyle *GetStyle(const char *name) const;
272  TObject *GetFunction(const char *name) const;
273  TGlobal *GetGlobal(const char *name, Bool_t load = kFALSE) const;
274  TGlobal *GetGlobal(const TObject *obj, Bool_t load = kFALSE) const;
275  TFunction *GetGlobalFunction(const char *name, const char *params = 0, Bool_t load = kFALSE);
276  TFunction *GetGlobalFunctionWithPrototype(const char *name, const char *proto = 0, Bool_t load = kFALSE);
277  TObject *GetGeometry(const char *name) const;
278  const TObject *GetSelectedPrimitive() const { return fPrimitive; }
279  TVirtualPad *GetSelectedPad() const { return fSelectPad; }
280  Int_t GetNclasses() const { return fClasses->GetSize(); }
281  Int_t GetNtypes() const { return fTypes->GetSize(); }
282  TFolder *GetRootFolder() const { return fRootFolder; }
283  TProcessUUID *GetUUIDs() const { return fUUIDs; }
284  void Idle(UInt_t idleTimeInSec, const char *command = 0);
285  Int_t IgnoreInclude(const char *fname, const char *expandedfname);
286  Bool_t IsBatch() const { return fBatch; }
287  Bool_t IsExecutingMacro() const { return fExecutingMacro; }
288  Bool_t IsFolder() const { return kTRUE; }
289  Bool_t IsInterrupted() const { return fInterrupt; }
290  Bool_t IsEscaped() const { return fEscape; }
291  Bool_t IsLineProcessing() const { return fLineIsProcessing ? kTRUE : kFALSE; }
292  Bool_t IsProofServ() const { return fName == "proofserv" ? kTRUE : kFALSE; }
293  Bool_t IsRootFile(const char *filename) const;
294  void ls(Option_t *option = "") const;
295  Int_t LoadClass(const char *classname, const char *libname, Bool_t check = kFALSE);
296  TClass *LoadClass(const char *name, Bool_t silent = kFALSE) const;
297  Int_t LoadMacro(const char *filename, Int_t *error = 0, Bool_t check = kFALSE);
298  Long_t Macro(const char *filename, Int_t *error = 0, Bool_t padUpdate = kTRUE);
299  TCanvas *MakeDefCanvas() const;
300  void Message(Int_t id, const TObject *obj);
301  Bool_t MustClean() const { return fMustClean; }
302  Long_t ProcessLine(const char *line, Int_t *error = 0);
303  Long_t ProcessLineSync(const char *line, Int_t *error = 0);
304  Long_t ProcessLineFast(const char *line, Int_t *error = 0);
305  Bool_t ReadingObject() const;
306  void RefreshBrowsers();
307  static void RegisterModule(const char* modulename,
308  const char** headers,
309  const char** includePaths,
310  const char* payLoadCode,
311  const char* fwdDeclCode,
312  void (*triggerFunc)(),
313  const FwdDeclArgsToKeepCollection_t& fwdDeclsArgToSkip,
314  const char** classesHeaders);
315  void RemoveClass(TClass *);
316  void Reset(Option_t *option="");
317  void SaveContext();
318  void SetApplication(TApplication *app) { fApplication = app; }
319  void SetBatch(Bool_t batch = kTRUE) { fBatch = batch; }
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; }
337 
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 Bool_t Initialized();
346  static Bool_t MemCheck();
347  static void SetDirLevel(Int_t level = 0);
348  static Int_t ConvertVersionCode2Int(Int_t code);
349  static Int_t ConvertVersionInt2Code(Int_t v);
350  static Int_t RootVersionCode();
351  static const char**&GetExtraInterpreterArgs();
352  static const char *GetTutorialsDir();
353 
354  ClassDef(TROOT,0) //Top level (or root) structure for all classes
355 };
356 
357 
358 namespace ROOT {
359  TROOT *GetROOT();
360  namespace Internal {
362  }
363 }
364 #define gROOT (ROOT::GetROOT())
365 
366 #endif
TSeqCollection * fStreamerInfo
Definition: TROOT.h:168
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:145
void SetSelectedPad(TVirtualPad *pad)
Definition: TROOT.h:333
TListOfFunctionTemplates * fFuncTemplate
Definition: TROOT.h:151
Int_t GetNtypes() const
Definition: TROOT.h:281
const TObject * GetSelectedPrimitive() const
Definition: TROOT.h:278
A TFolder object is a collection of objects and folders.
Definition: TFolder.h:32
Bool_t GetForceStyle() const
Definition: TROOT.h:228
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:266
This class defines an abstract interface to a generic command line interpreter.
Definition: TInterpreter.h:50
TCling & operator=(const TCling &)
TFolder * fRootFolder
Definition: TROOT.h:176
void SetDefCanvasName(const char *name="c1")
Definition: TROOT.h:321
TSeqCollection * GetListOfMappedFiles() const
Definition: TROOT.h:246
ROOT top level object description.
Definition: TROOT.h:104
This class is a specialized TProcessID managing the list of UUIDs.
Definition: TProcessUUID.h:34
TSeqCollection * fProofs
Definition: TROOT.h:171
Bool_t IsEscaped() const
Definition: TROOT.h:290
void SetLineIsProcessing()
Definition: TROOT.h:328
This namespace contains pre-defined functions to be used in conjuction with TExecutor::Map and TExecu...
Definition: StringConv.hxx:21
TSeqCollection * GetListOfCleanups() const
Definition: TROOT.h:256
TCollection * GetListOfClasses() const
Definition: TROOT.h:239
TLine * line
TSeqCollection * fGeometries
Definition: TROOT.h:163
TCollection * GetListOfClassGenerators() const
Definition: TROOT.h:259
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.
Definition: TROOT.cxx:532
A collection of TFunction objects designed for fast access given a DeclId_t and for keep track of TFu...
void EnableImplicitMT(UInt_t numthreads=0)
Globally enables the implicit multi-threading in ROOT, activating the parallel execution of those met...
Definition: TROOT.cxx:518
Int_t fVersionDate
Definition: TROOT.h:127
void SetExecutingMacro(Bool_t flag=kTRUE)
Definition: TROOT.h:324
Int_t GetVersionInt() const
Definition: TROOT.h:236
Bool_t fForceStyle
Definition: TROOT.h:142
Bool_t IsFolder() const
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects)...
Definition: TROOT.h:288
TProcessUUID * GetUUIDs() const
Definition: TROOT.h:283
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
Definition: TFile.h:50
TString fVersion
Definition: TROOT.h:124
void SaveContext()
Save the current Cling state.
Definition: TCling.cxx:3148
cling::Interpreter * fInterpreter
Definition: TCling.h:120
const char * GetConfigFeatures() const
Definition: TROOT.h:223
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:458
Int_t GetVersionDate() const
Definition: TROOT.h:234
TROOT * GetROOT2()
Definition: TROOT.cxx:360
virtual void Browse(TBrowser *b)
Browse object. May be overridden for another default action.
Definition: TObject.cxx:179
Basic string class.
Definition: TString.h:137
TString & GetMacroPath()
Definition: TROOT.cxx:491
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
R__EXTERN TVirtualMutex * gROOTMutex
Definition: TROOT.h:63
const Bool_t kFALSE
Definition: Rtypes.h:92
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)
Inject the module named "modulename" into cling; load all headers.
Definition: TCling.cxx:1493
Int_t fVersionCode
Definition: TROOT.h:126
Int_t GetBuiltDate() const
Definition: TROOT.h:229
Type GetType(const std::string &Name)
Definition: Systematics.cxx:34
const char * GetCutClassName() const
Definition: TROOT.h:224
std::atomic< TApplication * > fApplication
Definition: TROOT.h:135
TString fGitCommit
Definition: TROOT.h:131
const char * GetDefCanvasName() const
Definition: TROOT.h:225
Int_t GetVersionCode() const
Definition: TROOT.h:237
Bool_t FromPopUp() const
Definition: TROOT.h:215
void SetBatch(Bool_t batch=kTRUE)
Definition: TROOT.h:319
void ForceStyle(Bool_t force=kTRUE)
Definition: TROOT.h:214
TString fCutClassName
Definition: TROOT.h:179
static Int_t fgDirLevel
Definition: TROOT.h:112
TInterpreter * fInterpreter
Definition: TROOT.h:136
AListOfEnums_t fEnums
Definition: TROOT.h:174
TSeqCollection * fMappedFiles
Definition: TROOT.h:156
TClass * GetClass(T *)
Definition: TClass.h:555
Sequenceable collection abstract base class.
Int_t fVersionInt
Definition: TROOT.h:125
#define ClassDef(name, id)
Definition: Rtypes.h:254
Bool_t IsParTreeProcessingEnabled()
Returns true if parallel tree processing is enabled.
Definition: TROOT.cxx:471
TSeqCollection * fCleanups
Definition: TROOT.h:166
Int_t fEditorMode
Definition: TROOT.h:146
Bool_t fMustClean
Definition: TROOT.h:140
void SetEscape(Bool_t flag=kTRUE)
Definition: TROOT.h:327
static Bool_t fgRootInit
Definition: TROOT.h:113
TSeqCollection * GetListOfSpecials() const
Definition: TROOT.h:254
void EnableParTreeProcessing()
Globally enables the parallel tree processing, which is a case of implicit multi-threading in ROOT...
Definition: TROOT.cxx:442
TPluginManager * GetPluginManager() const
Definition: TROOT.h:216
const char * GetConfigOptions() const
Definition: TROOT.h:222
Bool_t IsLineProcessing() const
Definition: TROOT.h:291
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:289
DeclId_t GetFunction(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:4154
Long_t ProcessLine(const char *line, EErrorCode *error=0)
Definition: TCling.cxx:1906
Int_t GetNclasses() const
Definition: TROOT.h:280
TSeqCollection * fClipboard
Definition: TROOT.h:172
This class defines an interface to the cling C++ interpreter.
Definition: TCling.h:92
TVirtualPad is an abstract base class for the Pad and Canvas classes.
Definition: TVirtualPad.h:59
TCollection * GetListOfFunctions() const
Definition: TROOT.h:250
TSeqCollection * GetListOfClosedObjects() const
Definition: TROOT.h:244
Bool_t fEscape
Definition: TROOT.h:144
TSeqCollection * fFiles
Definition: TROOT.h:155
TSeqCollection * GetListOfGeometries() const
Definition: TROOT.h:252
TCollection * fClasses
Definition: TROOT.h:149
A doubly linked list.
Definition: TList.h:47
TStyle objects may be created to define special styles.
Definition: TStyle.h:43
R__EXTERN TROOT * gROOTLocal
Definition: TROOT.h:361
Bool_t fEditHistograms
Definition: TROOT.h:138
Using a TBrowser one can browse all ROOT objects.
Definition: TBrowser.h:41
Int_t fVersionTime
Definition: TROOT.h:128
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:104
static Bool_t fgMemCheck
Definition: TROOT.h:114
Bool_t IsParBranchProcessingEnabled()
Returns true if parallel branch processing is enabled.
Definition: TROOT.cxx:422
TSeqCollection * fDataSets
Definition: TROOT.h:173
virtual TObject * FindObject(const char *name) const
Must be redefined in derived classes.
Definition: TObject.cxx:380
TSeqCollection * fMessageHandlers
Definition: TROOT.h:167
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:180
SVector< double, 2 > v
Definition: Dict.h:5
Bool_t MustClean() const
Definition: TROOT.h:301
Basic data type descriptor (datatype information is obtained from CINT).
Definition: TDataType.h:46
TFolder * GetRootFolder() const
Definition: TROOT.h:282
TPluginManager * fPluginManager
Definition: TROOT.h:178
std::atomic< TListOfEnums * > AListOfEnums_t
Definition: TROOT.h:120
TString fGitBranch
Definition: TROOT.h:132
TSeqCollection * GetListOfCanvases() const
Definition: TROOT.h:248
TSeqCollection * GetListOfDataSets() const
Definition: TROOT.h:263
TSeqCollection * fSecContexts
Definition: TROOT.h:170
Collection abstract base class.
Definition: TCollection.h:48
void(* VoidFuncPtr_t)()
Definition: Rtypes.h:74
TSeqCollection * GetListOfSecContexts() const
Definition: TROOT.h:260
unsigned int UInt_t
Definition: RtypesCore.h:42
void SetApplication(TApplication *app)
Definition: TROOT.h:318
This class implements a plugin library manager.
TLine * l
Definition: textangle.C:4
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
TFile * GetFile() const
Definition: TROOT.h:268
Int_t GetBuiltTime() const
Definition: TROOT.h:230
Int_t GetEditorMode() const
Definition: TROOT.h:227
Global variables class (global variables are obtained from CINT).
Definition: TGlobal.h:29
void Reset(Detail::TBranchProxy *x)
TROOT * GetROOT()
Definition: TROOT.cxx:487
TString fName
Definition: TNamed.h:36
Bool_t GetEditHistograms() const
Definition: TROOT.h:226
Int_t Timer() const
Definition: TROOT.h:336
TInterpreter * GetInterpreter() const
Definition: TROOT.h:218
TSeqCollection * fSpecials
Definition: TROOT.h:165
TString fGitDate
Definition: TROOT.h:133
long Long_t
Definition: RtypesCore.h:50
The Canvas class.
Definition: TCanvas.h:41
Bool_t IsExecutingMacro() const
Definition: TROOT.h:287
TSeqCollection * GetListOfColors() const
Definition: TROOT.h:240
TListOfFunctions * fGlobalFunctions
Definition: TROOT.h:153
TSeqCollection * fCanvases
Definition: TROOT.h:158
TSeqCollection * GetListOfSockets() const
Definition: TROOT.h:247
TVirtualPad * GetSelectedPad() const
Definition: TROOT.h:279
void EnableThreadSafety()
Enables the global mutex to make ROOT thread safe/aware.
Definition: TROOT.cxx:498
std::string Message(const std::string &msg, const std::string &location)
Definition: Scanner.cxx:152
void SetEditHistograms(Bool_t flag=kTRUE)
Definition: TROOT.h:322
TString fConfigOptions
Definition: TROOT.h:122
Describe directory structure in memory.
Definition: TDirectory.h:44
TSeqCollection * GetListOfStyles() const
Definition: TROOT.h:249
TSeqCollection * GetListOfFiles() const
Definition: TROOT.h:245
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:4276
Int_t GetVersionTime() const
Definition: TROOT.h:235
Bool_t fFromPopUp
Definition: TROOT.h:139
Int_t fTimer
Definition: TROOT.h:134
void EnableParBranchProcessing()
Globally enables the parallel branch processing, which is a case of implicit multi-threading (IMT) in...
Definition: TROOT.cxx:393
Bool_t fBatch
Definition: TROOT.h:137
The color creation and management class.
Definition: TColor.h:23
TSeqCollection * fStyles
Definition: TROOT.h:159
void SetInterrupt(Bool_t flag=kTRUE)
Definition: TROOT.h:326
Bool_t fReadingObject
Definition: TROOT.h:141
TSeqCollection * GetListOfStreamerInfo() const
Definition: TROOT.h:257
TCollection * fClassGenerators
Definition: TROOT.h:169
const char * GetGitCommit() const
Definition: TROOT.h:231
Bool_t IsProofServ() const
Definition: TROOT.h:292
Int_t fBuiltTime
Definition: TROOT.h:130
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:30
std::vector< std::pair< std::string, int > > FwdDeclArgsToKeepCollection_t
Definition: TROOT.h:196
Bool_t IsBatch() const
Definition: TROOT.h:286
#define R__EXTERN
Definition: DllImport.h:27
Int_t fBuiltDate
Definition: TROOT.h:129
const char * GetGitBranch() const
Definition: TROOT.h:232
TCollection * fFunctions
Definition: TROOT.h:160
A collection of TEnum objects designed for fast access given a DeclId_t and for keep track of TEnum t...
Definition: TListOfEnums.h:36
TListOfDataMembers * fGlobals
Definition: TROOT.h:152
Bool_t IsImplicitMTEnabled()
Returns true if the implicit multi-threading in ROOT is enabled.
Definition: TROOT.cxx:545
TSeqCollection * fClosedObjects
Definition: TROOT.h:154
TSeqCollection * GetClipboard() const
Definition: TROOT.h:262
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:110
TSeqCollection * fTasks
Definition: TROOT.h:161
TSeqCollection * fColors
Definition: TROOT.h:162
TCollection * fTypes
Definition: TROOT.h:150
const char * proto
Definition: civetweb.c:11652
void SetSelectedPrimitive(const TObject *obj)
Definition: TROOT.h:332
TSeqCollection * fBrowsers
Definition: TROOT.h:164
TSeqCollection * GetListOfProofs() const
Definition: TROOT.h:261
#define gDirectory
Definition: TDirectory.h:221
This class creates the ROOT Application Environment that interfaces to the windowing system eventloop...
Definition: TApplication.h:45
TList * fBrowsables
Definition: TROOT.h:177
A collection of TFunction objects designed for fast access given a DeclId_t and for keep track of TFu...
TSeqCollection * fSockets
Definition: TROOT.h:157
virtual Int_t GetSize() const
Definition: TCollection.h:95
Bool_t fInterrupt
Definition: TROOT.h:143
const Bool_t kTRUE
Definition: Rtypes.h:91
TSeqCollection * GetListOfMessageHandlers() const
Definition: TROOT.h:258
TSeqCollection * GetListOfBrowsers() const
Definition: TROOT.h:253
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:2860
char name[80]
Definition: TGX11.cxx:109
TString fConfigFeatures
Definition: TROOT.h:123
TProcessUUID * fUUIDs
Definition: TROOT.h:175
TSeqCollection * GetListOfTasks() const
Definition: TROOT.h:255
void DisableParBranchProcessing()
Globally disables the IMT use case of parallel branch processing, deactivating the corresponding lock...
Definition: TROOT.cxx:409
const TObject * fPrimitive
Definition: TROOT.h:147
TVirtualPad * fSelectPad
Definition: TROOT.h:148
TApplication * GetApplication() const
Definition: TROOT.h:217
const char * GetVersion() const
Definition: TROOT.h:238