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