28 #ifndef ROOT_TDirectory
29 #include "TDirectory.h"
34 #ifndef ROOT_RConfigure
35 #include "RConfigure.h"
163 void *
operator new(
size_t l) {
return TObject::operator
new(
l); }
164 void *
operator new(
size_t l,
void *ptr) {
return TObject::operator
new(
l,ptr); }
166 friend class ::ROOT::Internal::TROOTAllocator;
260 void Idle(
UInt_t idleTimeInSec,
const char *command = 0);
284 const char** headers,
285 const char** includePaths,
286 const char* payLoadCode,
287 const char* fwdDeclCode,
288 void (*triggerFunc)(),
289 const FwdDeclArgsToKeepCollection_t& fwdDeclsArgToSkip,
290 const char** classesHeaders);
310 void SetStyle(
const char *stylename =
"Default");
340 #define gROOT (ROOT::GetROOT())
TSeqCollection * fStreamerInfo
TSeqCollection * GetListOfMappedFiles() const
void SetSelectedPad(TVirtualPad *pad)
void AddClass(TClass *cl)
Add a class to the list and map of classes.
TListOfFunctionTemplates * fFuncTemplate
A TFolder object is a collection of objects and folders.
A collection of TDataMember objects designed for fast access given a DeclId_t and for keep track of T...
This class defines an abstract interface to a generic command line interpreter.
static Int_t DecreaseDirLevel()
Decrease the indentation level for ls().
const char * GetConfigFeatures() const
void SetDefCanvasName(const char *name="c1")
TCollection * GetListOfEnums(Bool_t load=kFALSE)
ROOT top level object description.
This class is a specialized TProcessID managing the list of UUIDs.
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.
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.
static const char **& GetExtraInterpreterArgs()
TSeqCollection * fGeometries
TList * GetListOfBrowsables() const
TStyle * GetStyle(const char *name) const
Return pointer to style with name.
virtual TObject * FindObject(const char *name) const
Returns address of a ROOT object if it exists.
Dictionary for function template This class describes one single function template.
A collection of TFunction objects designed for fast access given a DeclId_t and for keep track of TFu...
void SetExecutingMacro(Bool_t flag=kTRUE)
const TObject * GetSelectedPrimitive() const
static Int_t RootVersionCode()
Return ROOT version code as defined in RVersion.h.
static Bool_t MemCheck()
Return kTRUE if the memory leak checker is on.
TVirtualPad * GetSelectedPad() const
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
const char * GetGitCommit() const
This class implements a mutex interface.
static const char * filename()
void InitInterpreter()
Initialize the interpreter.
TSeqCollection * GetListOfStyles() const
TCollection * GetListOfFunctions() const
void RefreshBrowsers()
Refresh all browsers.
void ls(Option_t *option="") const
To list all objects of the application.
TSeqCollection * GetListOfColors() const
R__EXTERN TVirtualMutex * gROOTMutex
Bool_t IsLineProcessing() const
void Reset(Option_t *option="")
Delete all global interpreter objects created since the last call to Reset.
Bool_t GetEditHistograms() const
TCollection * GetListOfFunctionOverloads(const char *name) const
Return the collection of functions named "name".
TProcessUUID * GetUUIDs() const
std::atomic< TApplication * > fApplication
void SetStyle(const char *stylename="Default")
Change current style to style with name stylename.
TCollection * GetListOfGlobals(Bool_t load=kFALSE)
Return list containing the TGlobals currently defined.
void SetBatch(Bool_t batch=kTRUE)
TObject * GetGeometry(const char *name) const
Return pointer to Geometry with name.
TSeqCollection * GetListOfBrowsers() const
void ForceStyle(Bool_t force=kTRUE)
static const char * GetTutorialsDir()
Get the tutorials directory in the installation. Static utility function.
TListOfFunctions * GetGlobalFunctions()
Internal routine returning, and creating if necessary, the list of global function.
const char * GetVersion() 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.
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.
TPluginManager * GetPluginManager() const
TSeqCollection * fMappedFiles
Sequenceable collection abstract base class.
TSeqCollection * GetListOfDataSets() const
#define ClassDef(name, id)
void SetEditorMode(const char *mode="")
Set editor mode.
const char * FindObjectClassName(const char *name) const
Returns class name of a ROOT object including CINT globals.
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)
Long_t ProcessLineSync(const char *line, Int_t *error=0)
Process interpreter command via TApplication::ProcessLine().
TSeqCollection * GetListOfStreamerInfo() const
void Message(Int_t id, const TObject *obj)
Process message id called by obj.
Int_t GetVersionTime() const
TCollection * GetListOfFunctionTemplates()
void SetFromPopUp(Bool_t flag=kTRUE)
void SetMustClean(Bool_t flag=kTRUE)
Bool_t GetForceStyle() const
TApplication * GetApplication() const
void SaveContext()
Save the current interpreter context.
TCollection * GetListOfClasses() const
TSeqCollection * fClipboard
This class defines an interface to the cling C++ interpreter.
TInterpreter * GetInterpreter() const
TVirtualPad is an abstract base class for the Pad and Canvas classes.
TSeqCollection * GetListOfCleanups() const
Int_t GetBuiltDate() const
const char * GetConfigOptions() const
TSeqCollection * GetListOfMessageHandlers() const
const char * GetDefCanvasName() const
Long_t Macro(const char *filename, Int_t *error=0, Bool_t padUpdate=kTRUE)
Execute a macro in the interpreter.
Int_t GetVersionCode() const
TStyle objects may be created to define special styles.
R__EXTERN TROOT * gROOTLocal
TSeqCollection * GetListOfCanvases() const
TSeqCollection * GetListOfGeometries() const
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. ...
TSeqCollection * fDataSets
TSeqCollection * fMessageHandlers
Bool_t ReadingObject() const
Deprecated (will be removed in next release).
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...
Basic data type descriptor (datatype information is obtained from CINT).
TSeqCollection * GetListOfSpecials() const
TPluginManager * fPluginManager
std::atomic< TListOfEnums * > AListOfEnums_t
TSeqCollection * fSecContexts
Collection abstract base class.
Bool_t IsInterrupted() 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)
Int_t GetBuiltTime() const
This class implements a plugin library manager.
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...
The ROOT global object gROOT contains a list of all defined classes.
Global variables class (global variables are obtained from CINT).
TSeqCollection * GetClipboard() const
TSeqCollection * GetListOfFiles() const
Bool_t IsFolder() const
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects)...
TSeqCollection * GetListOfTasks() const
void InitSystem()
Initialize operating system interface.
TSeqCollection * fSpecials
TGlobal * GetGlobal(const char *name, Bool_t load=kFALSE) const
Return pointer to global variable by name.
Bool_t IsExecutingMacro() const
const char * GetGitBranch() const
static void SetDirLevel(Int_t level=0)
Return Indentation level for ls().
TListOfFunctions * fGlobalFunctions
Long_t ProcessLine(const char *line, Int_t *error=0)
Process interpreter command via TApplication::ProcessLine().
virtual Int_t GetSize() const
TSeqCollection * fCanvases
virtual TObject * FindObjectAnyFile(const char *name) const
Scan the memory lists of all files for an object with name.
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)
TSeqCollection * GetListOfSecContexts() const
void SetEditHistograms(Bool_t flag=kTRUE)
void InitThreads()
Load and initialize thread library.
Describe directory structure in memory.
Int_t GetVersionDate() const
Int_t GetVersionInt() const
TSeqCollection * GetListOfProofs() const
TCanvas * MakeDefCanvas() const
Return a default canvas.
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.
const char * GetCutClassName() const
void SetInterrupt(Bool_t flag=kTRUE)
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...
TSeqCollection * GetListOfSockets() const
const char * FindObjectPathName(const TObject *obj) const
Return path name of obj somewhere in the //root/...
static Int_t GetDirLevel()
return directory level
virtual TObject * FindObjectAny(const char *name) const
Return a pointer to the first object with name starting at //root.
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.
TFunctionTemplate * GetFunctionTemplate(const char *name)
TDataType * GetType(const char *name, Bool_t load=kFALSE) const
Return pointer to type with 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...
static void SetMacroPath(const char *newpath)
Set or extend the macro search path.
Int_t GetEditorMode() const
TListOfDataMembers * fGlobals
Bool_t IsProofServ() const
TSeqCollection * fClosedObjects
TObject * GetFunction(const char *name) const
Return pointer to function with name.
void SetSelectedPrimitive(const TObject *obj)
TSeqCollection * fBrowsers
Bool_t IsRootFile(const char *filename) const
Return true if the file is local and is (likely) to be a ROOT file.
static void IndentLevel()
Functions used by ls() to indent an object hierarchy.
TFolder * GetRootFolder() const
TSeqCollection * GetListOfClosedObjects() const
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.
void Idle(UInt_t idleTimeInSec, const char *command=0)
Execute command when system has been idle for idleTimeInSec seconds.
void SetLineHasBeenProcessed()
TCollection * GetListOfClassGenerators() const
Int_t GetNclasses() const
const TObject * fPrimitive