178 void *
operator new(
size_t l) {
return TObject::operator
new(
l); }
179 void *
operator new(
size_t l,
void *ptr) {
return TObject::operator
new(
l,ptr); }
181 friend class ::ROOT::Internal::TROOTAllocator;
277 void Idle(
UInt_t idleTimeInSec,
const char *command =
nullptr);
304 const char** headers,
305 const char** includePaths,
306 const char* payLoadCode,
307 const char* fwdDeclCode,
308 void (*triggerFunc)(),
310 const char** classesHeaders,
311 bool hasCxxModule =
false);
335 void SetStyle(
const char *stylename =
"Default");
407#define gROOT (ROOT::GetROOT())
#define ClassDefOverride(name, id)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char filename
Option_t Option_t TPoint TPoint const char mode
R__EXTERN TVirtualMutex * gROOTMutex
TParBranchProcessingRAII()
~TParBranchProcessingRAII()
This class creates the ROOT Application Environment that interfaces to the windowing system eventloop...
Using a TBrowser one can browse all ROOT objects.
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.
This class defines an interface to the cling C++ interpreter.
Collection abstract base class.
The color creation and management class.
Basic data type descriptor (datatype information is obtained from CINT).
TFile * GetFile() const override
Describe directory structure in memory.
A ROOT file is composed of a header, followed by consecutive data records (TKey instances) with a wel...
<div class="legacybox"><h2>Legacy Code</h2> TFolder is a legacy interface: there will be no bug fixes...
Dictionary for function template This class describes one single function template.
Global functions class (global functions are obtained from CINT).
Global variables class (global variables are obtained from CINT).
This class defines an abstract interface to a generic command line interpreter.
A collection of TDataMember objects designed for fast access given a DeclId_t and for keep track of T...
A collection of TEnum objects designed for fast access given a DeclId_t and for keep track of TEnum t...
A collection of TFunction objects designed for fast access given a DeclId_t and for keep track of TFu...
A collection of TFunction objects designed for fast access given a DeclId_t and for keep track of TFu...
Mother of all ROOT objects.
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
virtual UInt_t GetUniqueID() const
Return the unique object id.
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
virtual void SetUniqueID(UInt_t uid)
Set the unique object id.
This class implements a plugin library manager.
This class is a specialized TProcessID managing the list of UUIDs.
ROOT top level object description.
void SetApplication(TApplication *app)
static Int_t IncreaseDirLevel()
Increase the indentation level for ls().
Int_t GetVersionInt() const
const char * GetConfigFeatures() const
TSeqCollection * GetListOfCleanups() const
void Time(Int_t casetime=1)
Int_t IgnoreInclude(const char *fname, const char *expandedfname)
Return 1 if the name of the given include file corresponds to a class that is known to ROOT,...
Int_t fVersionCode
ROOT version code as used in RVersion.h.
const char * GetDefCanvasName() const
Bool_t IsInterrupted() const
const TString & GetWebDisplay() const
TCollection * GetListOfClasses() const
void Message(Int_t id, const TObject *obj)
Process message id called by obj.
void RemoveClass(TClass *)
Remove a class from the list and map of classes.
TSeqCollection * fProofs
List of proof sessions.
TCollection * fClassGenerators
List of user defined class generators;.
TROOT()
Only used by Dictionary.
void SetCutClassName(const char *name="TCutG")
Set the default graphical cut class name for the graphics editor By default the graphics editor creat...
TSeqCollection * fCanvases
List of canvases.
TObject * FindObjectAnyFile(const char *name) const override
Scan the memory lists of all files for an object with name.
const TObject * fPrimitive
Currently selected primitive.
void SetWebDisplay(const char *webdisplay="")
Specify where web graphics shall be rendered.
Bool_t fIsWebDisplay
True if session with graphics on web.
TFolder * fRootFolder
top level folder //root
void AddClassGenerator(TClassGenerator *gen)
Add a class generator.
const char * GetCutClassName() const
Int_t GetBuiltTime() const
void SetFromPopUp(Bool_t flag=kTRUE)
TSeqCollection * fGeometries
List of geometries.
TString fCutClassName
Name of default CutG class in graphics editor.
TInterpreter * fInterpreter
Command interpreter.
Bool_t IsProofServ() const
TSeqCollection * GetListOfMessageHandlers() const
std::vector< std::pair< std::string, int > > FwdDeclArgsToKeepCollection_t
Int_t fVersionTime
Time of ROOT version (ex 1152)
void SetLineIsProcessing()
void SetMustClean(Bool_t flag=kTRUE)
void EndOfProcessCleanups()
Execute the cleanups necessary at the end of the process, in particular those that must be executed b...
Bool_t fBatch
True if session without graphics.
Bool_t IsWebDisplayBatch() const
TSeqCollection * GetListOfFiles() const
Bool_t fEscape
True if ESC has been pressed.
static const TString & GetBinDir()
Get the binary directory in the installation. Static utility function.
TSeqCollection * GetListOfSockets() const
Int_t fVersionInt
ROOT version in integer format (501)
static const TString & GetIncludeDir()
Get the include directory in the installation. Static utility function.
Bool_t fFromPopUp
True if command executed from a popup menu.
void Idle(UInt_t idleTimeInSec, const char *command=nullptr)
Execute command when system has been idle for idleTimeInSec seconds.
TSeqCollection * fSockets
List of network sockets.
void ls(Option_t *option="") const override
To list all objects of the application.
static const char * GetMacroPath()
Get macro search path. Static utility function.
TCollection * fFunctions
List of analytic functions.
Int_t GetVersionDate() const
void SaveContext()
Save the current interpreter context.
TCollection * GetListOfClassGenerators() const
Bool_t IsExecutingMacro() const
TDataType * GetType(const char *name, Bool_t load=kFALSE) const
Return pointer to type with name.
static void Initialize()
Initialize ROOT explicitly.
static void ShutDown()
Shut down ROOT.
TObject * GetFunction(const char *name) const
Return pointer to function with name.
static Int_t ConvertVersionCode2Int(Int_t code)
Convert version code to an integer, i.e. 331527 -> 51507.
TSeqCollection * fMessageHandlers
List of message handlers.
void SetStyle(const char *stylename="Default")
Change current style to style with name stylename.
TSeqCollection * GetListOfMappedFiles() const
void SetEditHistograms(Bool_t flag=kTRUE)
AListOfEnums_t fEnums
List of enum types.
void ReadGitInfo()
Read Git commit SHA1 and branch name.
void ForceStyle(Bool_t force=kTRUE)
static Bool_t fgRootInit
Singleton initialization flag.
void RefreshBrowsers()
Refresh all browsers.
void CloseFiles()
Close any files and sockets that gROOT knows about.
const char * GetVersion() const
std::atomic< TApplication * > fApplication
Pointer to current application.
const char * FindObjectPathName(const TObject *obj) const
Return path name of obj somewhere in the //root/... path.
static Int_t ConvertVersionInt2Code(Int_t v)
Convert version as an integer to version code as used in RVersion.h.
void ResetClassSaved()
Reset the ClassSaved status of all classes.
static const TString & GetTTFFontDir()
Get the fonts directory in the installation. Static utility function.
const char * GetGitBranch() const
Bool_t fForceStyle
Force setting of current style when reading objects.
const TObject * GetSelectedPrimitive() const
TCanvas * MakeDefCanvas() const
Return a default canvas.
TCollection * fTypes
List of data types definition.
TColor * GetColor(Int_t color) const
Return address of color with index color.
Bool_t IsLineProcessing() const
TGlobal * GetGlobal(const char *name, Bool_t load=kFALSE) const
Return pointer to global variable by name.
TClass * FindSTLClass(const char *name, Bool_t load, Bool_t silent=kFALSE) const
return a TClass object corresponding to 'name' assuming it is an STL container.
TSeqCollection * fStreamerInfo
List of active StreamerInfo classes.
void Append(TObject *obj, Bool_t replace=kFALSE) override
Append object to this directory.
static const TString & GetIconPath()
Get the icon path in the installation. Static utility function.
TSeqCollection * GetListOfCanvases() const
std::atomic< TListOfEnums * > AListOfEnums_t
TCollection * GetListOfGlobalFunctions(Bool_t load=kFALSE)
Return list containing the TFunctions currently defined.
TString fGitDate
Date and time when make was run.
TSeqCollection * fSpecials
List of special objects.
TCollection * GetListOfFunctionTemplates()
void SetExecutingMacro(Bool_t flag=kTRUE)
static void RegisterModule(const char *modulename, const char **headers, const char **includePaths, const char *payLoadCode, const char *fwdDeclCode, void(*triggerFunc)(), const FwdDeclArgsToKeepCollection_t &fwdDeclsArgToSkip, const char **classesHeaders, bool hasCxxModule=false)
Called by static dictionary initialization to register clang modules for headers.
TObject * FindObject(const char *name) const override
Returns address of a ROOT object if it exists.
TCollection * fClasses
List of classes definition.
void SetInterrupt(Bool_t flag=kTRUE)
Bool_t fEditHistograms
True if histograms can be edited with the mouse.
TListOfDataMembers * fGlobals
List of global variables.
TListOfFunctionTemplates * fFuncTemplate
List of global function templates.
TSeqCollection * GetClipboard() const
TSeqCollection * fDataSets
List of data sets (TDSet or TChain)
TString fConfigOptions
ROOT ./configure set build options.
TStyle * GetStyle(const char *name) const
Return pointer to style with name.
TCollection * GetListOfEnums(Bool_t load=kFALSE)
Longptr_t ProcessLineSync(const char *line, Int_t *error=nullptr)
Process interpreter command via TApplication::ProcessLine().
void InitInterpreter()
Initialize interpreter (cling)
TCollection * GetListOfGlobals(Bool_t load=kFALSE)
Return list containing the TGlobals currently defined.
TVirtualPad * GetSelectedPad() const
static void SetDirLevel(Int_t level=0)
Return Indentation level for ls().
TSeqCollection * fSecContexts
List of security contexts (TSecContext)
TString fWebDisplay
If not empty it defines where web graphics should be rendered (cef, qt5, browser.....
static const char * GetTutorialsDir()
Get the tutorials directory in the installation.
TCollection * GetListOfFunctionOverloads(const char *name) const
Return the collection of functions named "name".
TSeqCollection * fCleanups
List of recursiveRemove collections.
static Bool_t Initialized()
Return kTRUE if the TROOT object has been initialized.
TApplication * GetApplication() const
void SetBatch(Bool_t batch=kTRUE)
Set the "Batch mode". If the argument evaluates to true, the session does not use interactive graphic...
Int_t fLineIsProcessing
To synchronize multi-threads.
static const TString & GetSourceDir()
Get the source directory in the installation. Static utility function.
static const TString & GetMacroDir()
Get the macro directory in the installation. Static utility function.
TString fGitCommit
Git commit SHA1 of built.
Longptr_t ProcessLine(const char *line, Int_t *error=nullptr)
Process interpreter command via TApplication::ProcessLine().
TSeqCollection * fClosedObjects
List of closed objects from the list of files and sockets, so we can delete them if neededCl.
TSeqCollection * fTasks
List of tasks.
TSeqCollection * fClipboard
List of clipboard objects.
const char * GetGitDate()
Return date/time make was run.
TProcessUUID * GetUUIDs() const
void SetEditorMode(const char *mode="")
Set editor mode.
TSeqCollection * GetListOfStreamerInfo() const
static const TString & GetTutorialDir()
Get the tutorials directory in the installation. Static utility function.
virtual ~TROOT()
Clean up and free resources used by ROOT (files, network sockets, shared memory segments,...
TSeqCollection * fColors
List of colors.
Int_t GetBuiltDate() const
TCollection * GetListOfFunctions() const
TFunction * GetGlobalFunctionWithPrototype(const char *name, const char *proto=nullptr, Bool_t load=kFALSE)
Return pointer to global function by name.
Bool_t GetForceStyle() const
TFolder * GetRootFolder() const
TSeqCollection * GetListOfBrowsers() const
Bool_t ReadingObject() const
Deprecated (will be removed in next release).
TSeqCollection * fStyles
List of styles.
TSeqCollection * GetListOfProofs() const
Bool_t GetEditHistograms() const
Int_t fVersionDate
Date of ROOT version (ex 951226)
TSeqCollection * GetListOfColors() const
Longptr_t Macro(const char *filename, Int_t *error=nullptr, Bool_t padUpdate=kTRUE)
Execute a macro in the interpreter.
Int_t fBuiltTime
Time of ROOT built.
static const std::vector< std::string > & AddExtraInterpreterArgs(const std::vector< std::string > &args)
Provide command line arguments to the interpreter construction.
void SetLineHasBeenProcessed()
TClass * GetClass(const char *name, Bool_t load=kTRUE, Bool_t silent=kFALSE) const
Return pointer to class with name. Obsolete, use TClass::GetClass directly.
TVirtualPad * fSelectPad
Currently selected pad.
TSeqCollection * fFiles
List of files.
void Browse(TBrowser *b) override
Add browsable objects to TBrowser.
static const TString & GetRootSys()
Get the rootsys directory in the installation. Static utility function.
TListOfFunctions * GetGlobalFunctions()
Internal routine returning, and creating if necessary, the list of global function.
Bool_t fInterrupt
True if macro should be interrupted.
Bool_t fMustClean
True if object destructor scans canvases.
Int_t LoadClass(const char *classname, const char *libname, Bool_t check=kFALSE)
Check if class "classname" is known to the interpreter (in fact, this check is not needed anymore,...
TFunction * GetGlobalFunction(const char *name, const char *params=nullptr, Bool_t load=kFALSE)
Return pointer to global function by name.
void AddClass(TClass *cl)
Add a class to the list and map of classes.
static Int_t RootVersionCode()
Return ROOT version code as defined in RVersion.h.
TObject * FindSpecialObject(const char *name, void *&where)
Returns address and folder of a ROOT object if it exists.
TObject * Remove(TObject *) override
Remove an object from the in-memory list.
void InitSystem()
Operating System interface.
Longptr_t ProcessLineFast(const char *line, Int_t *error=nullptr)
Process interpreter command directly via CINT interpreter.
Int_t GetEditorMode() const
Bool_t ClassSaved(TClass *cl)
return class status 'ClassSaved' for class cl This function is called by the SavePrimitive functions ...
const char * GetGitCommit() const
TString fGitBranch
Git branch.
TCollection * GetListOfTypes(Bool_t load=kFALSE)
Return a dynamic list giving access to all TDataTypes (typedefs) currently defined.
static Int_t fgDirLevel
Indentation level for ls()
TSeqCollection * GetListOfTasks() const
Bool_t IsRootFile(const char *filename) const
Return true if the file is local and is (likely) to be a ROOT file.
Bool_t IsWebDisplay() const
static void IndentLevel()
Functions used by ls() to indent an object hierarchy.
Int_t GetVersionTime() const
static const TString & GetDocDir()
Get the documentation directory in the installation. Static utility function.
static const TString & GetEtcDir()
Get the sysconfig directory in the installation. Static utility function.
TROOT(const TROOT &)=delete
Int_t GetNclasses() const
Get number of classes.
static const char **& GetExtraInterpreterArgs()
INTERNAL function! Used by rootcling to inject interpreter arguments through a C-interface layer.
static void SetMacroPath(const char *newpath)
Set or extend the macro search path.
void SetSelectedPad(TVirtualPad *pad)
void InitThreads()
Initialize threads library.
TProcessUUID * fUUIDs
Pointer to TProcessID managing TUUIDs.
TString fConfigFeatures
ROOT ./configure detected build features.
TFunctionTemplate * GetFunctionTemplate(const char *name)
TPluginManager * fPluginManager
Keeps track of plugin library handlers.
TObject * GetGeometry(const char *name) const
Return pointer to Geometry with name.
void RecursiveRemove(TObject *obj) override
Recursively remove this object from the list of Cleanups.
Bool_t fExecutingMacro
True while executing a TMacro.
TList * GetListOfBrowsables() const
Int_t fBuiltDate
Date of ROOT built.
Bool_t fIsWebDisplayBatch
True if session with graphics on web and batch mode.
static const TString & GetSharedLibDir()
Get the shared libraries directory in the installation. Static utility function.
void SetEscape(Bool_t flag=kTRUE)
Int_t GetVersionCode() const
TSeqCollection * fMappedFiles
List of memory mapped files.
Int_t GetNtypes() const
Get number of types.
TSeqCollection * GetListOfSpecials() const
Int_t LoadMacro(const char *filename, Int_t *error=nullptr, Bool_t check=kFALSE)
Load a macro in the interpreter's memory.
TFile * GetFile() const override
static const TString & GetLibDir()
Get the library directory in the installation. Static utility function.
void SetDefCanvasName(const char *name="c1")
TSeqCollection * fBrowsers
List of browsers.
TString fDefCanvasName
Name of default canvas.
TListOfFunctions * fGlobalFunctions
List of global functions.
TList * fBrowsables
List of browsables.
TObject * FindObjectAny(const char *name) const override
Return a pointer to the first object with name starting at //root.
static Int_t DecreaseDirLevel()
Decrease the indentation level for ls().
Bool_t IsFolder() const override
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects).
void SetSelectedPrimitive(const TObject *obj)
void Reset(Option_t *option="")
Delete all global interpreter objects created since the last call to Reset.
Int_t fEditorMode
Current Editor mode.
const char * FindObjectClassName(const char *name) const
Returns class name of a ROOT object including CINT globals.
TSeqCollection * GetListOfDataSets() const
TSeqCollection * GetListOfClosedObjects() const
const char * GetConfigOptions() const
static const TString & GetDataDir()
Get the data directory in the installation. Static utility function.
TROOT & operator=(const TROOT &)=delete
TSeqCollection * GetListOfSecContexts() const
TSeqCollection * GetListOfGeometries() const
TSeqCollection * GetListOfStyles() const
TString fVersion
ROOT version (from CMZ VERSQQ) ex 0.05/01.
static Int_t GetDirLevel()
return directory level
void SetReadingObject(Bool_t flag=kTRUE)
TInterpreter * GetInterpreter() const
TPluginManager * GetPluginManager() const
Sequenceable collection abstract base class.
TStyle objects may be created to define special styles.
This class implements a mutex interface.
TVirtualPad is an abstract base class for the Pad and Canvas classes.
void SetRequireCleanup(TObject &obj)
R__EXTERN TROOT * gROOTLocal
void DisableParBranchProcessing()
Globally disables the IMT use case of parallel branch processing, deactivating the corresponding lock...
void EnableParBranchProcessing()
Globally enables the parallel branch processing, which is a case of implicit multi-threading (IMT) in...
Bool_t IsParBranchProcessingEnabled()
Returns true if parallel branch processing is enabled.
Bool_t RequiresCleanup(TObject &obj)
This file contains a specialised ROOT message handler to test for diagnostic in unit tests.
void EnableImplicitMT(UInt_t numthreads=0)
Enable ROOT's implicit multi-threading for all objects and methods that provide an internal paralleli...
Bool_t IsImplicitMTEnabled()
Returns true if the implicit multi-threading in ROOT is enabled.
UInt_t GetThreadPoolSize()
Returns the size of ROOT's thread pool.
void EnableThreadSafety()
Enable support for multi-threading within the ROOT code in particular, enables the global mutex to ma...
void CallRecursiveRemoveIfNeeded(TObject &obj)
call RecursiveRemove for obj if gROOT is valid and obj.TestBit(kMustCleanup) is true.
void DisableImplicitMT()
Disables the implicit multi-threading in ROOT (see EnableImplicitMT).