30#include "RConfigure.h"
177 void InitInterpreter();
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;
198 void EndOfProcessCleanups();
201 virtual TObject *FindObjectAny(
const char *
name)
const;
202 virtual TObject *FindObjectAnyFile(
const char *
name)
const;
203 TObject *FindSpecialObject(
const char *
name,
void *&where);
204 const char *FindObjectClassName(
const char *
name)
const;
205 const char *FindObjectPathName(
const TObject *obj)
const;
226 const char *GetGitDate();
278 void Idle(
UInt_t idleTimeInSec,
const char *command = 0);
279 Int_t IgnoreInclude(
const char *fname,
const char *expandedfname);
287 Bool_t IsRootFile(
const char *filename)
const;
291 Int_t LoadClass(
const char *classname,
const char *libname,
Bool_t check =
kFALSE);
295 TCanvas *MakeDefCanvas()
const;
301 Bool_t ReadingObject()
const;
303 void RefreshBrowsers();
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);
319 void SetWebDisplay(
const char *webdisplay);
320 void SetCutClassName(
const char *
name =
"TCutG");
323 void SetEditorMode(
const char *mode =
"");
334 void SetStyle(
const char *stylename =
"Default");
339 static Int_t DecreaseDirLevel();
340 static Int_t GetDirLevel();
342 static void SetMacroPath(
const char *newpath);
343 static Int_t IncreaseDirLevel();
344 static void IndentLevel();
346 static Bool_t Initialized();
348 static void SetDirLevel(
Int_t level = 0);
349 static Int_t ConvertVersionCode2Int(
Int_t code);
351 static Int_t RootVersionCode();
352 static const std::vector<std::string> &AddExtraInterpreterArgs(
const std::vector<std::string> &args);
353 static const char**&GetExtraInterpreterArgs();
356 static const TString& GetBinDir();
357 static const TString& GetLibDir();
360 static const TString& GetDataDir();
361 static const TString& GetDocDir();
362 static const TString& GetMacroDir();
363 static const TString& GetTutorialDir();
364 static const TString& GetSourceDir();
365 static const TString& GetIconPath();
366 static const TString& GetTTFFontDir();
369 static const char *GetTutorialsDir();
406#define gROOT (ROOT::GetROOT())
#define R__DEPRECATED(MAJOR, MINOR, REASON)
#define ClassDef(name, id)
std::string Message(const std::string &msg, const std::string &location)
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.
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, Bool_t hasCxxModule=false)
Inject the module named "modulename" into cling; load all headers.
Long_t ProcessLine(const char *line, EErrorCode *error=0)
void SaveContext()
Save the current Cling state.
void Reset()
Pressing Ctrl+C should forward here.
std::unique_ptr< cling::Interpreter > fInterpreter
void LoadMacro(const char *filename, EErrorCode *error=0)
Load a macro file in cling's memory.
void RecursiveRemove(TObject *obj)
Delete object from cling symbol table so it can not be used anymore.
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.
Collection abstract base class.
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
The color creation and management class.
Basic data type descriptor (datatype information is obtained from CINT).
Describe directory structure in memory.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
A TFolder object is a collection of objects and folders.
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.
std::vector< std::pair< std::string, int > > FwdDeclArgsToKeepCollection_t
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...
virtual void ls(Option_t *option="") const
List TNamed name and title.
Mother of all ROOT objects.
virtual void Browse(TBrowser *b)
Browse object. May be overridden for another default action.
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
virtual UInt_t GetUniqueID() const
Return the unique object id.
virtual TObject * FindObject(const char *name) const
Must be redefined in derived classes.
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)
Int_t GetVersionInt() const
const char * GetConfigFeatures() const
TSeqCollection * GetListOfCleanups() const
void Time(Int_t casetime=1)
const char * GetDefCanvasName() const
Bool_t IsInterrupted() const
const TString & GetWebDisplay() const
TCollection * GetListOfClasses() const
TCollection * fClassGenerators
TSeqCollection * fCanvases
const TObject * fPrimitive
const char * GetCutClassName() const
Int_t GetBuiltTime() const
void SetFromPopUp(Bool_t flag=kTRUE)
TSeqCollection * fGeometries
TInterpreter * fInterpreter
Bool_t IsProofServ() const
TSeqCollection * GetListOfMessageHandlers() const
std::vector< std::pair< std::string, int > > FwdDeclArgsToKeepCollection_t
void SetLineIsProcessing()
void SetMustClean(Bool_t flag=kTRUE)
Bool_t IsWebDisplayBatch() const
TSeqCollection * GetListOfFiles() const
TSeqCollection * GetListOfSockets() const
TSeqCollection * fSockets
Int_t GetVersionDate() const
TCollection * GetListOfClassGenerators() const
Bool_t IsExecutingMacro() const
TSeqCollection * fMessageHandlers
TSeqCollection * GetListOfMappedFiles() const
void SetEditHistograms(Bool_t flag=kTRUE)
void ForceStyle(Bool_t force=kTRUE)
const char * GetVersion() const
std::atomic< TApplication * > fApplication
const char * GetGitBranch() const
const TObject * GetSelectedPrimitive() const
Bool_t IsLineProcessing() const
TSeqCollection * fStreamerInfo
TROOT & operator=(const TROOT &)
TSeqCollection * GetListOfCanvases() const
std::atomic< TListOfEnums * > AListOfEnums_t
TSeqCollection * fSpecials
void SetExecutingMacro(Bool_t flag=kTRUE)
void SetInterrupt(Bool_t flag=kTRUE)
TListOfDataMembers * fGlobals
TListOfFunctionTemplates * fFuncTemplate
TSeqCollection * GetClipboard() const
TSeqCollection * fDataSets
TVirtualPad * GetSelectedPad() const
TSeqCollection * fSecContexts
TSeqCollection * fCleanups
void RecursiveRemove(TObject *obj)
Recursively remove this object from the list of Cleanups.
TApplication * GetApplication() const
void SetBatch(Bool_t batch=kTRUE)
TSeqCollection * fClosedObjects
TSeqCollection * fClipboard
TProcessUUID * GetUUIDs() const
TSeqCollection * GetListOfStreamerInfo() const
Int_t GetBuiltDate() const
TCollection * GetListOfFunctions() const
Bool_t GetForceStyle() const
TFolder * GetRootFolder() const
TSeqCollection * GetListOfBrowsers() const
TSeqCollection * GetListOfProofs() const
Bool_t GetEditHistograms() const
TSeqCollection * GetListOfColors() const
void SetLineHasBeenProcessed()
Int_t GetEditorMode() const
const char * GetGitCommit() const
TSeqCollection * GetListOfTasks() const
Bool_t IsWebDisplay() const
Int_t GetVersionTime() const
Int_t GetNclasses() const
void SetSelectedPad(TVirtualPad *pad)
TPluginManager * fPluginManager
TList * GetListOfBrowsables() const
Bool_t fIsWebDisplayBatch
void SetEscape(Bool_t flag=kTRUE)
Int_t GetVersionCode() const
TSeqCollection * fMappedFiles
TSeqCollection * GetListOfSpecials() const
void SetDefCanvasName(const char *name="c1")
TSeqCollection * fBrowsers
TListOfFunctions * fGlobalFunctions
void SetSelectedPrimitive(const TObject *obj)
TSeqCollection * GetListOfDataSets() const
TSeqCollection * GetListOfClosedObjects() const
const char * GetConfigOptions() const
Bool_t IsFolder() const
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects).
TSeqCollection * GetListOfSecContexts() const
TSeqCollection * GetListOfGeometries() const
TSeqCollection * GetListOfStyles() const
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.
const std::string & GetIncludeDir()
\ returns the include directory in the installation.
const std::string & GetRootSys()
const std::string & GetEtcDir()
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)
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...
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()
Enables the global mutex to make ROOT thread safe/aware.
void RemoveClass(const char *cname)
Global function called by the dtor of a class's init class (see the ClassImp macro).
void CallRecursiveRemoveIfNeeded(TObject &obj)
call RecursiveRemove for obj if gROOT is valid and obj.TestBit(kMustCleanup) is true.
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's init class (see the ClassImp macro).
UInt_t GetImplicitMTPoolSize() R__DEPRECATED(6
Returns the size of the pool used for implicit multi-threading.
void DisableImplicitMT()
Disables the implicit multi-threading in ROOT (see EnableImplicitMT).
void GetColor(Float_t v, Float_t vmin, Float_t vmax, Int_t type, Float_t *rgba)
This function creates color for parametric surface's vertex, using its 'u' value.
Type GetType(const std::string &Name)
std::function< T(T)> GetFunction(const std::string &name)
Get function pointer to implementation from name given as string.
void Initialize(Bool_t useTMVAStyle=kTRUE)