30 #include "RConfigure.h" 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); }
186 friend class ::ROOT::Internal::TROOTAllocator;
281 void Idle(
UInt_t idleTimeInSec,
const char *command = 0);
306 const char** headers,
307 const char** includePaths,
308 const char* payLoadCode,
309 const char* fwdDeclCode,
310 void (*triggerFunc)(),
312 const char** classesHeaders);
333 void SetStyle(
const char *stylename =
"Default");
386 if (root && root != &obj && root->
MustClean()) {
393 #define gROOT (ROOT::GetROOT()) TSeqCollection * fStreamerInfo
const char * FindObjectPathName(const TObject *obj) const
Return path name of obj somewhere in the //root/...
void SetSelectedPad(TVirtualPad *pad)
void AddClass(TClass *cl)
Add a class to the list and map of classes.
TListOfFunctionTemplates * fFuncTemplate
UInt_t GetImplicitMTPoolSize()
Returns the size of the pool used for implicit multi-threading.
static const TString & GetTTFFontDir()
Get the fonts directory in the installation. Static utility function.
const TObject * GetSelectedPrimitive() const
A TFolder object is a collection of objects and folders.
TCanvas * MakeDefCanvas() const
Return a default canvas.
Bool_t GetForceStyle() const
A collection of TDataMember objects designed for fast access given a DeclId_t and for keep track of T...
TList * GetListOfBrowsables() const
This class defines an abstract interface to a generic command line interpreter.
static Int_t DecreaseDirLevel()
Decrease the indentation level for ls().
void SetDefCanvasName(const char *name="c1")
TSeqCollection * GetListOfMappedFiles() const
TCollection * GetListOfEnums(Bool_t load=kFALSE)
TParBranchProcessingRAII()
ROOT top level object description.
static const TString & GetMacroDir()
Get the macro directory in the installation. Static utility function.
This class is a specialized TProcessID managing the list of UUIDs.
static const TString & GetTutorialDir()
Get the tutorials directory in the installation. Static utility function.
void RemoveClass(TClass *)
Remove a class from the list and map of classes.
TCollection * GetListOfGlobalFunctions(Bool_t load=kFALSE)
Return list containing the TFunctions currently defined.
void SetLineIsProcessing()
Int_t LoadMacro(const char *filename, Int_t *error=0, Bool_t check=kFALSE)
Load a macro in the interpreter's memory.
Namespace for new ROOT classes and functions.
TSeqCollection * GetListOfCleanups() const
TCollection * GetListOfClasses() const
static const char **& GetExtraInterpreterArgs()
void CallRecursiveRemoveIfNeeded(TObject &obj)
call RecursiveRemove for obj if gROOT is valid and obj.TestBit(kMustCleanup) is true.
TSeqCollection * fGeometries
TCollection * GetListOfClassGenerators() const
~TParTreeProcessingRAII()
Dictionary for function template This class describes one single function template.
void DisableImplicitMT()
Disables the implicit multi-threading in ROOT (see EnableImplicitMT).
A collection of TFunction objects designed for fast access given a DeclId_t and for keep track of TFu...
static const TString & GetIconPath()
Get the icon path in the installation. Static utility function.
void SetExecutingMacro(Bool_t flag=kTRUE)
Int_t GetVersionInt() const
Bool_t ReadingObject() const
Deprecated (will be removed in next release).
static Int_t RootVersionCode()
Return ROOT version code as defined in RVersion.h.
Bool_t IsFolder() const
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects)...
static Bool_t MemCheck()
Return kTRUE if the memory leak checker is on.
TProcessUUID * GetUUIDs() const
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
const char * GetConfigFeatures() const
This class implements a mutex interface.
void DisableParTreeProcessing()
Globally disables the IMT use case of parallel branch processing, deactivating the corresponding lock...
void InitInterpreter()
Initialize the interpreter.
Int_t GetVersionDate() const
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
void RefreshBrowsers()
Refresh all browsers.
R__EXTERN TVirtualMutex * gROOTMutex
static const TString & GetRootSys()
Get the rootsys directory in the installation. Static utility function.
Int_t GetBuiltDate() const
void Reset(Option_t *option="")
Delete all global interpreter objects created since the last call to Reset.
const char * GetCutClassName() const
std::atomic< TApplication * > fApplication
void SetStyle(const char *stylename="Default")
Change current style to style with name stylename.
TDataType * GetType(const char *name, Bool_t load=kFALSE) const
Return pointer to type with name.
TCollection * GetListOfGlobals(Bool_t load=kFALSE)
Return list containing the TGlobals currently defined.
TStyle * GetStyle(const char *name) const
Return pointer to style with name.
const char * GetDefCanvasName() const
void ls(Option_t *option="") const
To list all objects of the application.
Int_t GetVersionCode() const
static const TString & GetIncludeDir()
Get the include directory in the installation. Static utility function.
void SetBatch(Bool_t batch=kTRUE)
TObject * Remove(TObject *)
Remove an object from the in-memory list.
void ForceStyle(Bool_t force=kTRUE)
static const char * GetTutorialsDir()
Get the tutorials directory in the installation.
TListOfFunctions * GetGlobalFunctions()
Internal routine returning, and creating if necessary, the list of global function.
static const char * GetMacroPath()
Get macro search path. Static utility function.
TInterpreter * fInterpreter
TROOT & operator=(const TROOT &)
const char * GetGitDate()
Return date/time make was run.
TObject * GetFunction(const char *name) const
Return pointer to function with name.
TSeqCollection * fMappedFiles
Sequenceable collection abstract base class.
#define ClassDef(name, id)
Bool_t IsParTreeProcessingEnabled()
Returns true if parallel tree processing is enabled.
void SetEditorMode(const char *mode="")
Set editor mode.
TSeqCollection * fCleanups
static Bool_t Initialized()
Return kTRUE if the TROOT object has been initialized.
void EndOfProcessCleanups()
Execute the cleanups necessary at the end of the process, in particular those that must be executed b...
void SetEscape(Bool_t flag=kTRUE)
virtual TObject * FindObjectAny(const char *name) const
Return a pointer to the first object with name starting at //root.
Long_t ProcessLineSync(const char *line, Int_t *error=0)
Process interpreter command via TApplication::ProcessLine().
TSeqCollection * GetListOfSpecials() const
void Message(Int_t id, const TObject *obj)
Process message id called by obj.
void EnableParTreeProcessing()
Globally enables the parallel tree processing, which is a case of implicit multi-threading in ROOT...
TPluginManager * GetPluginManager() const
static const TString & GetDocDir()
Get the documentation directory in the installation. Static utility function.
const char * GetConfigOptions() const
Bool_t IsLineProcessing() const
TCollection * GetListOfFunctionTemplates()
void SetFromPopUp(Bool_t flag=kTRUE)
void SetMustClean(Bool_t flag=kTRUE)
void SaveContext()
Save the current interpreter context.
Bool_t IsInterrupted() const
Int_t GetNclasses() const
TCollection * GetListOfFunctionOverloads(const char *name) const
Return the collection of functions named "name".
TSeqCollection * fClipboard
TVirtualPad is an abstract base class for the Pad and Canvas classes.
TCollection * GetListOfFunctions() const
TSeqCollection * GetListOfClosedObjects() const
TSeqCollection * GetListOfGeometries() const
void EnableImplicitMT(UInt_t numthreads=0)
Enable ROOT's implicit multi-threading for all objects and methods that provide an internal paralleli...
Long_t Macro(const char *filename, Int_t *error=0, Bool_t padUpdate=kTRUE)
Execute a macro in the interpreter.
TStyle objects may be created to define special styles.
R__EXTERN TROOT * gROOTLocal
Using a TBrowser one can browse all ROOT objects.
Bool_t ClassSaved(TClass *cl)
return class status bit kClassSaved for class cl This function is called by the SavePrimitive functio...
void Time(Int_t casetime=1)
static void RegisterModule(const char *modulename, const char **headers, const char **includePaths, const char *payLoadCode, const char *fwdDeclCode, void(*triggerFunc)(), const FwdDeclArgsToKeepCollection_t &fwdDeclsArgToSkip, const char **classesHeaders)
Called by static dictionary initialization to register clang modules for headers. ...
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.
Bool_t IsParBranchProcessingEnabled()
Returns true if parallel branch processing is enabled.
TSeqCollection * fDataSets
TSeqCollection * fMessageHandlers
void Browse(TBrowser *b)
Add browsable objects to TBrowser.
void AddClassGenerator(TClassGenerator *gen)
Add a class generator.
void SetCutClassName(const char *name="TCutG")
Set the default graphical cut class name for the graphics editor By default the graphics editor creat...
TGlobal * GetGlobal(const char *name, Bool_t load=kFALSE) const
Return pointer to global variable by name.
Basic data type descriptor (datatype information is obtained from CINT).
TFolder * GetRootFolder() const
TPluginManager * fPluginManager
std::atomic< TListOfEnums * > AListOfEnums_t
TSeqCollection * GetListOfCanvases() const
TSeqCollection * GetListOfDataSets() const
TSeqCollection * fSecContexts
Collection abstract base class.
TSeqCollection * GetListOfSecContexts() const
static Int_t ConvertVersionCode2Int(Int_t code)
Convert version code to an integer, i.e. 331527 -> 51507.
void ReadGitInfo()
Read Git commit information and branch name from the etc/gitinfo.txt file.
void SetApplication(TApplication *app)
virtual TObject * FindObject(const char *name) const
Returns address of a ROOT object if it exists.
TObject * GetGeometry(const char *name) const
Return pointer to Geometry with name.
This class implements a plugin library manager.
static const TString & GetSourceDir()
Get the source directory in the installation. Static utility function.
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...
Objects following this interface can be passed onto the TROOT object to implement a user customized w...
static void IndentLevel()
Functions used by ls() to indent an object hierarchy.
The ROOT global object gROOT contains a list of all defined classes.
virtual void Append(TObject *obj, Bool_t replace=kFALSE)
Append object to this directory.
Int_t GetBuiltTime() const
Int_t GetEditorMode() const
Global variables class (global variables are obtained from CINT).
Bool_t IsRootFile(const char *filename) const
Return true if the file is local and is (likely) to be a ROOT file.
Bool_t GetEditHistograms() const
void InitSystem()
Initialize operating system interface.
TInterpreter * GetInterpreter() const
TSeqCollection * fSpecials
~TParBranchProcessingRAII()
static void SetDirLevel(Int_t level=0)
Return Indentation level for ls().
Bool_t IsExecutingMacro() const
TSeqCollection * GetListOfColors() const
TListOfFunctions * fGlobalFunctions
Long_t ProcessLine(const char *line, Int_t *error=0)
Process interpreter command via TApplication::ProcessLine().
TSeqCollection * fCanvases
TSeqCollection * GetListOfSockets() const
TVirtualPad * GetSelectedPad() const
void EnableThreadSafety()
Enables the global mutex to make ROOT thread safe/aware.
TFunction * GetGlobalFunctionWithPrototype(const char *name, const char *proto=0, Bool_t load=kFALSE)
Return pointer to global function by name.
void SetReadingObject(Bool_t flag=kTRUE)
void SetEditHistograms(Bool_t flag=kTRUE)
void InitThreads()
Load and initialize thread library.
void RecursiveRemove(TObject *obj)
Recursively remove this object from the list of Cleanups.
Describe directory structure in memory.
TSeqCollection * GetListOfStyles() const
TSeqCollection * GetListOfFiles() const
static const TString & GetEtcDir()
Get the sysconfig directory in the installation. Static utility function.
Int_t GetVersionTime() const
void EnableParBranchProcessing()
Globally enables the parallel branch processing, which is a case of implicit multi-threading (IMT) in...
Long_t ProcessLineFast(const char *line, Int_t *error=0)
Process interpreter command directly via CINT interpreter.
void CloseFiles()
Close any files and sockets that gROOT knows about.
virtual ~TROOT()
Clean up and free resources used by ROOT (files, network sockets, shared memory segments, etc.).
The color creation and management class.
void SetInterrupt(Bool_t flag=kTRUE)
TSeqCollection * GetListOfStreamerInfo() const
TCollection * fClassGenerators
const char * GetGitCommit() const
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...
static Int_t GetDirLevel()
return directory level
Bool_t IsProofServ() const
Mother of all ROOT objects.
Global functions class (global functions are obtained from CINT).
TFunction * GetGlobalFunction(const char *name, const char *params=0, Bool_t load=kFALSE)
Return pointer to global function by name.
std::vector< std::pair< std::string, int > > FwdDeclArgsToKeepCollection_t
static Int_t ConvertVersionInt2Code(Int_t v)
Convert version as an integer to version code as used in RVersion.h.
static Int_t IncreaseDirLevel()
Increase the indentation level for ls().
TCollection * GetListOfTypes(Bool_t load=kFALSE)
Return a dynamic list giving access to all TDataTypes (typedefs) currently defined.
static const TString & GetDataDir()
Get the data directory in the installation. Static utility function.
const char * GetGitBranch() const
TFunctionTemplate * GetFunctionTemplate(const char *name)
TColor * GetColor(Int_t color) const
Return address of color with index color.
A collection of TEnum objects designed for fast access given a DeclId_t and for keep track of TEnum t...
const char * FindObjectClassName(const char *name) const
Returns class name of a ROOT object including CINT globals.
static void SetMacroPath(const char *newpath)
Set or extend the macro search path.
TListOfDataMembers * fGlobals
static const TString & GetLibDir()
Get the library directory in the installation. Static utility function.
Bool_t IsImplicitMTEnabled()
Returns true if the implicit multi-threading in ROOT is enabled.
TSeqCollection * fClosedObjects
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 * GetClipboard() const
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
void SetSelectedPrimitive(const TObject *obj)
TSeqCollection * fBrowsers
TSeqCollection * GetListOfProofs() const
static const TString & GetBinDir()
Get the binary directory in the installation. Static utility function.
virtual TObject * FindObjectAnyFile(const char *name) const
Scan the memory lists of all files for an object with name.
This class creates the ROOT Application Environment that interfaces to the windowing system eventloop...
A collection of TFunction objects designed for fast access given a DeclId_t and for keep track of TFu...
TSeqCollection * fSockets
TObject * FindSpecialObject(const char *name, void *&where)
Returns address and folder of a ROOT object if it exists.
virtual Int_t GetSize() const
TSeqCollection * GetListOfMessageHandlers() const
void Idle(UInt_t idleTimeInSec, const char *command=0)
Execute command when system has been idle for idleTimeInSec seconds.
TSeqCollection * GetListOfBrowsers() const
void SetLineHasBeenProcessed()
TSeqCollection * GetListOfTasks() const
void DisableParBranchProcessing()
Globally disables the IMT use case of parallel branch processing, deactivating the corresponding lock...
const TObject * fPrimitive
TApplication * GetApplication() const
const char * GetVersion() const