ROOT 6.12/07 Reference Guide |
Mother of all ROOT objects.
The TObject class provides default behaviour and protocol for all objects in the ROOT system. It provides protocol for object I/O, error handling, sorting, inspection, printing, drawing, etc. Every object which inherits from TObject can be stored in the ROOT collection classes.
TObject's bits can be used as flags, bits 0 - 13 and 24-31 are reserved as global bits while bits 14 - 23 can be used in different class hierarchies (watch out for overlaps).
Public Types | |
enum | { kIsOnHeap = 0x01000000, kNotDeleted = 0x02000000, kZombie = 0x04000000, kInconsistent = 0x08000000, kBitMask = 0x00ffffff } |
enum | { kSingleKey = BIT(0), kOverwrite = BIT(1), kWriteDelete = BIT(2) } |
enum | EDeprecatedStatusBits { kObjInCanvas = BIT(3) } |
enum | EStatusBits { kCanDelete = BIT(0), kMustCleanup = BIT(3), kIsReferenced = BIT(4), kHasUUID = BIT(5), kCannotPick = BIT(6), kNoContextMenu = BIT(8), kInvalidObject = BIT(13) } |
Public Member Functions | |
TObject () | |
TObject constructor. More... | |
TObject (const TObject &object) | |
TObject copy ctor. More... | |
virtual | ~TObject () |
TObject destructor. More... | |
void | AbstractMethod (const char *method) const |
Use this method to implement an "abstract" method that you don't want to leave purely abstract. More... | |
virtual void | AppendPad (Option_t *option="") |
Append graphics object to current pad. More... | |
virtual void | Browse (TBrowser *b) |
Browse object. May be overridden for another default action. More... | |
ULong_t | CheckedHash () |
Checked and record whether for this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object. More... | |
virtual const char * | ClassName () const |
Returns name of class to which the object belongs. More... | |
virtual void | Clear (Option_t *="") |
virtual TObject * | Clone (const char *newname="") const |
Make a clone of an object using the Streamer facility. More... | |
virtual Int_t | Compare (const TObject *obj) const |
Compare abstract method. More... | |
virtual void | Copy (TObject &object) const |
Copy this to obj. More... | |
virtual void | Delete (Option_t *option="") |
Delete this object. More... | |
virtual Int_t | DistancetoPrimitive (Int_t px, Int_t py) |
Computes distance from point (px,py) to the object. More... | |
virtual void | Draw (Option_t *option="") |
Default Draw method for all objects. More... | |
virtual void | DrawClass () const |
Draw class inheritance tree of the class to which this object belongs. More... | |
virtual TObject * | DrawClone (Option_t *option="") const |
Draw a clone of this object in the current selected pad for instance with: gROOT->SetSelectedPad(gPad) . More... | |
virtual void | Dump () const |
Dump contents of object on stdout. More... | |
virtual void | Error (const char *method, const char *msgfmt,...) const |
Issue error message. More... | |
virtual void | Execute (const char *method, const char *params, Int_t *error=0) |
Execute method on this object with the given parameter string, e.g. More... | |
virtual void | Execute (TMethod *method, TObjArray *params, Int_t *error=0) |
Execute method on this object with parameters stored in the TObjArray. More... | |
virtual void | ExecuteEvent (Int_t event, Int_t px, Int_t py) |
Execute action corresponding to an event at (px,py). More... | |
virtual void | Fatal (const char *method, const char *msgfmt,...) const |
Issue fatal error message. More... | |
virtual TObject * | FindObject (const char *name) const |
Must be redefined in derived classes. More... | |
virtual TObject * | FindObject (const TObject *obj) const |
Must be redefined in derived classes. More... | |
virtual Option_t * | GetDrawOption () const |
Get option used by the graphics system to draw this object. More... | |
virtual const char * | GetIconName () const |
Returns mime type name of object. More... | |
virtual const char * | GetName () const |
Returns name of object. More... | |
virtual char * | GetObjectInfo (Int_t px, Int_t py) const |
Returns string containing info about the object at position (px,py). More... | |
virtual Option_t * | GetOption () const |
virtual const char * | GetTitle () const |
Returns title of object. More... | |
virtual UInt_t | GetUniqueID () const |
Return the unique object id. More... | |
virtual Bool_t | HandleTimer (TTimer *timer) |
Execute action in response of a timer timing out. More... | |
virtual ULong_t | Hash () const |
Return hash value for this object. More... | |
Bool_t | HasInconsistentHash () const |
Return true is the type of this object is known to have an inconsistent setup for Hash and RecursiveRemove (i.e. More... | |
virtual void | Info (const char *method, const char *msgfmt,...) const |
Issue info message. More... | |
virtual Bool_t | InheritsFrom (const char *classname) const |
Returns kTRUE if object inherits from class "classname". More... | |
virtual Bool_t | InheritsFrom (const TClass *cl) const |
Returns kTRUE if object inherits from TClass cl. More... | |
virtual void | Inspect () const |
Dump contents of this object in a graphics canvas. More... | |
void | InvertBit (UInt_t f) |
virtual Bool_t | IsEqual (const TObject *obj) const |
Default equal comparison (objects are equal if they have the same address in memory). More... | |
virtual Bool_t | IsFolder () const |
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects). More... | |
R__ALWAYS_INLINE Bool_t | IsOnHeap () const |
virtual Bool_t | IsSortable () const |
R__ALWAYS_INLINE Bool_t | IsZombie () const |
virtual void | ls (Option_t *option="") const |
The ls function lists the contents of a class on stdout. More... | |
void | MayNotUse (const char *method) const |
Use this method to signal that a method (defined in a base class) may not be called in a derived class (in principle against good design since a child class should not provide less functionality than its parent, however, sometimes it is necessary). More... | |
virtual Bool_t | Notify () |
This method must be overridden to handle object notification. More... | |
void | Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const |
Use this method to declare a method obsolete. More... | |
void | operator delete (void *ptr) |
Operator delete. More... | |
void | operator delete[] (void *ptr) |
Operator delete []. More... | |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, void *vp) |
void * | operator new[] (size_t sz) |
void * | operator new[] (size_t sz, void *vp) |
TObject & | operator= (const TObject &rhs) |
TObject assignment operator. More... | |
virtual void | Paint (Option_t *option="") |
This method must be overridden if a class wants to paint itself. More... | |
virtual void | Pop () |
Pop on object drawn in a pad to the top of the display list. More... | |
virtual void | Print (Option_t *option="") const |
This method must be overridden when a class wants to print itself. More... | |
virtual Int_t | Read (const char *name) |
Read contents of object with specified name from the current directory. More... | |
virtual void | RecursiveRemove (TObject *obj) |
Recursively remove this object from a list. More... | |
void | ResetBit (UInt_t f) |
virtual void | SaveAs (const char *filename="", Option_t *option="") const |
Save this object in the file specified by filename. More... | |
virtual void | SavePrimitive (std::ostream &out, Option_t *option="") |
Save a primitive as a C++ statement(s) on output stream "out". More... | |
void | SetBit (UInt_t f, Bool_t set) |
Set or unset the user status bits as specified in f. More... | |
void | SetBit (UInt_t f) |
virtual void | SetDrawOption (Option_t *option="") |
Set drawing option for object. More... | |
virtual void | SetUniqueID (UInt_t uid) |
Set the unique object id. More... | |
virtual void | SysError (const char *method, const char *msgfmt,...) const |
Issue system error message. More... | |
R__ALWAYS_INLINE Bool_t | TestBit (UInt_t f) const |
Int_t | TestBits (UInt_t f) const |
virtual void | UseCurrentStyle () |
Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked. More... | |
virtual void | Warning (const char *method, const char *msgfmt,...) const |
Issue warning message. More... | |
virtual Int_t | Write (const char *name=0, Int_t option=0, Int_t bufsize=0) |
Write this object to the current directory. More... | |
virtual Int_t | Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const |
Write this object to the current directory. More... | |
Static Public Member Functions | |
static Long_t | GetDtorOnly () |
Return destructor only flag. More... | |
static Bool_t | GetObjectStat () |
Get status of object stat flag. More... | |
static void | SetDtorOnly (void *obj) |
Set destructor only flag. More... | |
static void | SetObjectStat (Bool_t stat) |
Turn on/off tracking of objects in the TObjectTable. More... | |
Protected Member Functions | |
virtual void | DoError (int level, const char *location, const char *fmt, va_list va) const |
Interface to ErrorHandler (protected). More... | |
void | MakeZombie () |
Static Private Member Functions | |
static void | AddToTObjectTable (TObject *) |
Private helper function which will dispatch to TObjectTable::AddObj. More... | |
Private Attributes | |
UInt_t | fBits |
bit field status word More... | |
UInt_t | fUniqueID |
object unique identifier More... | |
Static Private Attributes | |
static Long_t | fgDtorOnly = 0 |
object for which to call dtor only (i.e. no delete) More... | |
static Bool_t | fgObjectStat = kTRUE |
if true keep track of objects in TObjectTable More... | |
Friends | |
class | TClonesArray |
#include <TObject.h>
Inherited by Hit, Jet, JetEvent, Memstat::TMemStatMng, MonitoredTFileInfo, PyROOT::TMemoryRegulator, RooAbsCollection, RooAbsIntegrator, RooCatType, RooCFunction1Ref< VO, VI >, RooCFunction2Ref< VO, VI1, VI2 >, RooCFunction3Ref< VO, VI1, VI2, VI3 >, RooCFunction4Ref< VO, VI1, VI2, VI3, VI4 >, RooCmdConfig, RooExpensiveObjectCache, RooGrid, RooHashTable, RooLinkedList, RooMinimizer, RooMinuit, RooMsgService, RooNameSet, RooNumGenConfig, RooNumGenFactory, RooNumIntConfig, RooNumIntFactory, RooSetPair, RooSharedProperties, RooSharedPropertiesList, RooSimPdfBuilder, RooStats::AcceptanceRegion, RooStats::HistFactory::EstimateSummary, RooStats::HistFactory::HistoToWorkspaceFactory, RooStats::HistFactory::HistoToWorkspaceFactoryFast, RooStats::MetropolisHastings, RooStats::ProposalFunction, RooStats::ProposalHelper, RooStats::SamplingSummary, RooStats::SamplingSummaryLookup, ROOT::Detail::TSchemaRuleSet, ROOT::Internal::TCheckHashRecursiveRemoveConsistency, ROOT::Internal::TTreeReaderDescriptor, ROOT::R::TRDataFrame, ROOT::R::TRFunctionExport, ROOT::R::TRFunctionImport, ROOT::R::TRInterface, ROOT::R::TRObject, ROOT::TSchemaRule, RooThreshEntry, RooWorkspace::CodeRepo, TAFS, TAliEnFind, TApplication, TArchiveFile, TArchiveMember, TASPaletteEditor::PaintPalette, TAuthenticate, TAxisModLab, TBinomialEfficiencyFitter, TBits, TBonjourBrowser, TBonjourRecord, TBonjourRegistrar, TBonjourResolver, TBox, TBuffer, TBuffer3D, TClassDocInfo, TClassGenerator, TClassMenuItem, TClassTable, TCollection, TCondition, TConditionImp, TCondor, TCondorSlave, TConfidenceLevel, TDataSetIter, TDataSetManager, TDecayChannel, TDecompBase, TDictAttributeMap, TDimensionInfo, TDNDData, TDocMethodWrapper, TDocOutput, TDocParser, TDrawFeedback, TEllipse, TEntryListBlock, TEnv, TEnvRec, TEveCluster, TEveElementObjectPtr, TEveFrameBox, TEveGeoNode, TEveGridStepper, TEveHit, TEveMCRecCrossRef, TEventIter, TEveRecCascade, TEveRecKink, TEveRecTrackT< TT >, TEveRecTrackT< Float_t >, TEveRecV0, TEveRGBAPalette, TEveTrans, TEveVSD, TExMap, TF1AbsComposition, TFeldmanCousins, TFileCacheRead, TFileCacheWrite, TFileMerger, TFilePrefetch, TFoam, TFoamCell, TFoamIntegrand, TFoamMaxwt, TFoamVect, TFormLeafInfo, TFPBlock, TFractionFitter, TFree, TFTP, TGClient, TGDMLParse, TGDMLRefl, TGDMLWrite, TGDNDManager, TGedFrame::TGedSubFrame, TGedTabInfo, TGenPhaseSpace, TGeoBatemanSol, TGeoBoolNode, TGeoBranchArray, TGeoBuilder, TGeoCacheState, TGeoChecker, TGeoDecayChannel, TGeoElementTable, TGeoExtension, TGeoGlobalMagField, TGeoHelix, TGeoIteratorPlugin, TGeoNavigator, TGeoNodeCache, TGeoPatternFinder, TGeoPolygon, TGeoTabManager, TGeoToStep, TGeoVoxelFinder, TGFrameElement, TGGC, TGHtmlElement, TGHtmlImage, TGHtmlLayoutContext, TGHtmlUri, TGIdleHandler, TGItemContext, TGLAutoRotator, TGLayoutHints, TGLayoutManager, TGLCamera, TGLLightSet, TGLPShapeObj, TGMainFrame::TGMapKey, TGMenuEntry, TGMime, TGMimeTypes, TGObject, TGPicture, TGPicturePool, TGraph2DPainter, TGraphEdge, TGraphStruct, TGRectMap, TGRegion, TGrid, TGridCollection, TGridJDL, TGridJob, TGTextEditCommand, TGTextLayout, TGUnknownWindowHandler, TGWin32CallBackObject, TH2PolyBin, THLimitsFinder, THnChain, THnIter, THnSparseArrayChunk, THostAuth, THtml, THtml::TFileSysEntry, THtml::THelperBase, THttpCallArg, TIconBoxThumb, TImagePalette, TImagePlugin, TInetAddress, TInspectorObject, TJSONStackObj, TKDTree< Index, Value >, TKDTreeBinning, TKSocket, TLDAPEntry, TLDAPResult, TLDAPServer, TLegendEntry, TLimitDataSource, TLine, TLockFile, TLockPath, TLorentzRotation, TLorentzVector, TMapFile, TMarker, TMarker3DBox, TMatrixTBase< Element >, TMatrixTLazy< Element >, TMatrixTSymLazy< Element >, TMCParticle, TMCVerbose, TMemStat, TMemStatShow, TMergerInfo, TMethodCall, TMLPAnalyzer, TMonitor, TMrbSubevent_Caen, TMultiLayerPerceptron, TMutexImp, TMVA::DataInputHandler, TMVA::DataSetFactory, TMVA::DataSetInfo, TMVA::DataSetManager, TMVA::Event, TMVA::Experimental::ClassificationResult, TMVA::MsgLogger, TMVA::OptionBase, TMVA::PDEFoam, TMVA::PDEFoamCell, TMVA::PDEFoamDensityBase, TMVA::PDEFoamKernelBase, TMVA::PDEFoamVect, TMVA::Results, TMVA::RootFinder, TMVA::TNeuron, TMVA::TreeInfo, TMVA::TSynapse, TMVA::VariableTransformBase, TNamed, TNDArray, TObjectRefSpy, TObjectSpy, TObjectTable, TObjString, TOptionListItem, TOutputListSelectorDataMap, TPackageDescription, TPacketizer::TFileNode, TPacketizer::TFileStat, TPacketizerAdaptive::TFileNode, TPacketizerAdaptive::TFileStat, TPacketizerFile::TIterObj, TPainter3dAlgorithms, TPair, TParameter< AParamType >, TParameter< Long64_t >, TParticle, TPBHandleDSType, TPBHistType, TPBReadType, TPerfEvent, TPluginHandler, TPluginManager, TPoints3DABC, TPolyLine, TPolyLine3D, TPolyMarker, TPolyMarker3D, TPrimary, TProofBench, TProofBenchDataSet, TProofBenchRun, TProofNodeInfo, TProofNodes, TProofPerfAnalysis::TWrkEntry, TProofProgressInfo, TProofProgressStatus, TProofResources, TPyDispatcher, TQpDataBase, TQpLinSolverBase, TQpProbBase, TQpResidual, TQpSolverBase, TQpVar, TQSlot, TQuaternion, TQueryDescription, TQueryResultManager, Track, TRatioPlot, TRealData, TRecEvent, TRecorder, TRecWinPair, TRef, TRefTable, TRobustEstimator, TRolke, TRootBrowserHistoryCursor, TRootSnifferStore, TRotation, TRWLock, TS3HTTPRequest, TSecContext, TSecContextCleanup, TSelector, TSemaphore, TSessionDescription, TSlave, TSlaveInfo, TSpectrum2Transform, TSpider, TSplinePoly, TSPlot, TSQLClassColumnInfo, TSQLClassInfo, TSqlCmdsBuffer, TSQLColumnData, TSQLObjectData, TSQLObjectDataPool, TSQLObjectInfo, TSqlRawBuffer, TSqlRegistry, TSQLResult, TSQLRow, TSQLServer, TSQLStatement, TSQLStructure, TSQLTableData, TStatistic, TStatsFeedback, TStopwatch, TStreamerInfoActions::TActionSequence, TStreamerInfoActions::TConfiguredAction, TStructNode, TStructViewer, TSVDUnfold, TSynapse, TSysEvtHandler, TTableIter, TTableMap, TThreadImp, TTreeDrawArgsParser, TTreeFormulaManager, TTreeReader, TTVRecord, TTVSession, TUnfold, TUri, TUrl, TUsrHit, TUsrHitBuffer, TVector2, TVector3, TVectorT< Element >, TVectorT< Double_t >, TView, TVirtualFFT, TVirtualGeoConverter, TVirtualGeoPainter, TVirtualGeoTrack, TVirtualGraphPainter, TVirtualHistPainter, TVirtualMCDecayer, TVirtualMCStack, TVirtualPacketizer, TVirtualPacketizer::TVirtualSlaveStat, TVirtualPad, TVirtualPerfStats, TVirtualProofPlayer, TVirtualTreePlayer, TVirtualViewer3D, TVolumePosition, TXMLAttr, TXMLDocument, TXMLEngine, TXMLNode, TXMLParser, TXMLPlayer, and TXMLStackObj.
anonymous enum |
anonymous enum |
enum TObject::EStatusBits |
Enumerator | |
---|---|
kCanDelete | if object in a list can be deleted |
kMustCleanup | if object destructor must call RecursiveRemove() |
kIsReferenced | |
kHasUUID | if object has a TUUID (its fUniqueID=UUIDNumber) |
kCannotPick | if object in a pad cannot be picked |
kNoContextMenu | if object does not want context menu |
kInvalidObject | if object ctor succeeded but object should not be used |
|
inline |
TObject constructor.
It sets the two data words of TObject to their initial values. The unique ID is set to 0 and the status word is set depending if the object is created on the stack or allocated on the heap. Depending on the ROOT environment variable "Root.MemStat" (see TEnv) the object is added to the global TObjectTable for bookkeeping.
|
inline |
|
virtual |
TObject destructor.
Removes object from all canvases and object browsers if observer bit is on and remove from the global object table.
Definition at line 79 of file TObject.cxx.
void TObject::AbstractMethod | ( | const char * | method | ) | const |
Use this method to implement an "abstract" method that you don't want to leave purely abstract.
Definition at line 922 of file TObject.cxx.
Private helper function which will dispatch to TObjectTable::AddObj.
Included here to avoid circular dependency between header files.
Definition at line 96 of file TObject.cxx.
Append graphics object to current pad.
In case no current pad is set yet, create a default canvas with the name "c1".
Definition at line 105 of file TObject.cxx.
Browse object. May be overridden for another default action.
Reimplemented in TProof, TRecorder, TF1, TClass, TTree, ROOT::Internal::THnBaseBrowsable, THnBase, TROOT, TH1, TBranchElement, TRatioPlot, RooPlot, TPad, TGenerator, TCollection, TGeoManager, TBranch, TStyle, TCollectionPropertyBrowsable, TMultiDimFit, TCanvas, TDirectory, TPair, TQueryResult, TTable, TGeoVolume, TApplicationRemote, TASImage, TEfficiency, TDataSet, TGraph, TGraph2D, TMapFile, TChain, TDatabasePDG, TGeoNode, TVolume, TGeometry, TGeoOverlap, TKey, TLeaf, TTreePerfStats, TDirectoryFile, TParticleClassPDG, TGeoTrack, TBaseClass, TNode, THStack, TPrincipal, TAlienDirectory, TAlienJobStatus, TAxis3D, TSPlot, TSystemDirectory, TTask, TMultiGraph, TBranchObject, TRemoteObject, TChair, TAlienMasterJobStatus, TProofChain, TBranchClones, TVolumeView, TFolder, TVolumePosition, TMacro, THbookFile, TNtuple, TNtupleD, TAlienMasterJob, TVirtualBranchBrowsable, TAlienDirectoryEntry, TSystemFile, TObjectSet, THbookBranch, THbookKey, TBranchSTL, TKeyMapFile, and TColumnView.
Definition at line 119 of file TObject.cxx.
|
inline |
Checked and record whether for this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object.
The intent is for this routines to be call instead of directly calling the function Hash during "insert" operations. See TObject::HasInconsistenTObjectHash();
(*) The setup is consistent when all classes in the class hierarchy that overload TObject::Hash do call ROOT::CallRecursiveRemoveIfNeeded in their destructor. i.e. it is safe to call the Hash virtual function during the RecursiveRemove operation.
|
virtual |
Returns name of class to which the object belongs.
Definition at line 128 of file TObject.cxx.
Reimplemented in TGHtml, TGeoHMatrix, TGeoGenTrans, TGeoCombiTrans, ROOT::v5::TFormula, TLinearFitter, TGeoRotation, TStreamerInfo, TPad, TVectorT< Element >, TVectorT< Double_t >, TFormula, TCollection, TMatrixTBase< Element >, TVirtualStreamerInfo, TMultiDimFit, TBits, TCanvas, TDirectory, TMatrixT< Element >, TMatrixT< Double_t >, TMatrixT< AReal >, TGTextEntry, TMatrixTSparse< Element >, TMatrixTSparse< Double_t >, TGTextView, TGraph2D, TMatrixTSym< Element >, TMatrixTSym< Double_t >, TProofProgressLog, TProcessID, TGView, TGTextEdit, TFumili, JetEvent, TList, TListOfEnums, TBtree, TRefTable, RooLinkedList, TVirtualPad, TMVA::ResultsMulticlass, TRefArray, TProofProgressMemoryPlot, TTable, TMap, TListOfDataMembers, TMVA::ResultsRegression, TVirtualFitter, THashTable, TOrdCollection, TMVA::ResultsClassification, TObjArray, TBackCompFitter, TListOfFunctions, TListOfFunctionTemplates, TPrincipal, TTask, TMVA::MinuitWrapper, TViewPubDataMembers, TViewPubFunctions, ROOT::TSchemaRule, TClonesArray, TMrbSubevent_Caen, TFolder, THashList, TEventList, TListOfEnumsWithLock, TFitter, TBranchRef, TNamed, TDictAttributeMap, TPaveText, TLegend, and TUsrHitBuffer.
|
virtual |
Make a clone of an object using the Streamer facility.
If the object derives from TNamed, this function is called by TNamed::Clone. TNamed::Clone uses the optional argument to set a new name to the newly created object.
If the object class has a DirectoryAutoAdd function, it will be called at the end of the function with the parameter gDirectory. This usually means that the object will be appended to the current ROOT directory.
Reimplemented in TClass, TH1, TStreamerInfo, TMinuit, TCollection, TImage, TDataSet, TASImage, TMethodCall, TH2Poly, RooAbsArg, RooDataSet, TMVA::MinuitWrapper, RooDataHist, TMethod, RooStats::ModelConfig, RooCmdArg, TFunction, RooFitResult, TNamed, RooLinkedList, RooCatType, RooAbsStudy, RooStudyPackage, TFunctionTemplate, RooAbsCollection, RooCategoryProxy, RooAbsBinning, RooFormula, RooRealProxy, RooNameSet, RooMapCatEntry, and RooThreshEntry.
Definition at line 144 of file TObject.cxx.
Compare abstract method.
Must be overridden if a class wants to be able to compare itself with other objects. Must return -1 if this is smaller than obj, 0 if objects are equal and 1 if this is larger than obj.
Reimplemented in RooAbsArg, TSlaveInfo, TCollection, TDSetElement, TSlave, TEnvRec, TGeoBranchArray, TFileInfo, TParameter< AParamType >, TParameter< Long64_t >, TUrl, TClassDocInfo, TGeoOverlap, TPerfEvent, TStructNode, RooDouble, TNamed, TObjString, RooInt, TStructNodeProperty, and RooThreshEntry.
Definition at line 159 of file TObject.cxx.
Copy this to obj.
Reimplemented in TH1D, TH1F, TH1I, TH1S, TH1C, TF1, TH3D, TH2D, TH3F, TH2F, TH3I, TH2I, ROOT::v5::TFormula, TH3S, TH1, TH2S, TFile, TH3C, TFormula, TStyle, TH2C, TDirectory, TLatex, TProfile3D, TAxis, TProfile2D, TProfile, TF2, TF3, TF1NormSum, TF1Convolution, TH3, TGTextEdit, TSystemDirectory, THelix, TH2, TDirectoryFile, TGTextView, TSystemFile, TPolyMarker3D, TPolyLine3D, TFolder, TPolyMarker, TPolyLine, TArrow, TBox, TPoints3D, TNamed, TAxis3D, TEllipse, TLine, TMathText, TPave, TPaletteAxis, TPointsArray3D, TColor, TText, TH1K, TMarker, TLegend, TF12, TArc, TWbox, TLegendEntry, TPaveLabel, TXTRU, TPaveClass, TF1AbsComposition, TCrown, and TFrame.
Definition at line 61 of file TObject.cxx.
Delete this object.
Typically called as a command via the interpreter. Normally use "delete" operator when object has been allocated on the heap.
Reimplemented in TTree, TGFrame, TTreeViewer, TFile, TCollection, TDirectory, TCanvas, TThread, TProtoClass, TGTextEdit, TAxis, TDataSet, TQCommand, TMVA::Results, TList, TListOfEnums, TBtree, RooLinkedList, TDirectoryFile, TSystemDirectory, TExMap, TKey, TMap, TRefArray, TTable, TListOfDataMembers, THashTable, TObjArray, TOrdCollection, TListOfFunctions, TListOfFunctionTemplates, TSystemFile, TObjectTable, TViewPubDataMembers, TViewPubFunctions, TClonesArray, TKeySQL, THashList, TPoints3D, TListOfEnumsWithLock, TGItemContext, TObjectSet, and TKeyXML.
Definition at line 169 of file TObject.cxx.
Computes distance from point (px,py) to the object.
This member function must be implemented for each graphics primitive. This default function returns a big number (999999).
Reimplemented in TF1, TGLViewer, TH1, TParticle, TGenerator, TStyle, TGeoConeSeg, TGeoTubeSeg, TPad, TGeoVolume, TASImage, TGeoShape, TAxis, TEfficiency, TGraph, TSpider, TGraph2D, TF2, TGeoXtru, TGraphPolargram, TF3, TGLScenePad, TParallelCoord, TGLParametricEquation, TGeoNode, TGeoPgon, TVolume, THistPainter, TGeoOverlap, TTreePerfStats, TGeoPcon, TMarker3DBox, TGLHistPainter, TParallelCoordVar, TGeoTrack, TNode, TPCON, TTUBE, TVolumePosition, TSPHE, TGeoHype, TGeoTorus, TPie, TAxis3D, THStack, TGeoCompositeShape, TColorWheel, TPrimary, TMultiGraph, TGeoTube, TFileDrawMap, TGeoVGShape, TPolyMarker3D, TPolyLine3D, TVolumeView, TParallelCoordRange, TPolyMarker, TSpline, TPoints3D, TGeoCone, TPolyLine, TBox, TGraphEdge, TPaletteAxis, TPolyLineShape, TGeoSphere, TPave, TGraphNode, TGeoBBox, TEllipse, TLine, TTUBS, TPointsArray3D, TCurlyLine, TText, TGeoScaledShape, TMarker, TGLTH3Composition, TGeoParaboloid, TGeoShapeAssembly, TCurlyArc, TBRIK, TGL5DDataSet, TVirtualHistPainter, TGeoHalfSpace, TPoints3DABC, TXTRU, TGeoEltu, TTablePoints, TPieSlice, TCrown, and TDiamond.
Definition at line 186 of file TObject.cxx.
|
protectedvirtual |
Interface to ErrorHandler (protected).
Reimplemented in TTreeViewer, TXSocket, TThread, TXSlave, and TSlaveLite.
Definition at line 841 of file TObject.cxx.
Default Draw method for all objects.
Reimplemented in TF1, TClass, TTree, TGeoBatemanSol, TGListTree, TDSet, TH1, TPad, TFile, TMatrixTBase< Element >, TVectorT< Element >, TVectorT< Double_t >, TRatioPlot, TCollection, TGenerator, TMultiDimFit, TFITSHDU, TDirectory, TCanvas, TGeoVolume, TEveGeoTopNode, TGeoShape, TMultiLayerPerceptron, TTable, TASImage, RooTreeDataStore, TStructViewerGUI, TGeoPainter, TEfficiency, TGraph, TGraphPolargram, TGraph2D, TSpider, TF2, TF3, TChain, TEveGeoNode, TParallelCoord, TVirtualPad, TGeoNode, TVirtualGeoPainter, TVolume, TGeoParallelWorld, TGeoOverlap, TGeometry, THelix, TGeoPhysicalNode, RooStats::HypoTestInverterPlot, TTreePerfStats, RooAbsData, TParallelCoordVar, TGeoTrack, TNode, TGeoVGShape, TVolumePosition, TClassTree, TPie, RooPlot, THStack, TColorWheel, TGPicture, TProofChain, TMultiGraph, RooStats::SamplingDistPlot, TChair, TPolyMarker3D, RooStats::HybridPlot, TPolyLine3D, TParallelCoordRange, TGeoPolygon, TStructViewer, TGraphTime, TPolyMarker, TSpline, TVolumeView, TPolyLine, TArrow, TBox, TPolyLineShape, TPave, TEllipse, TGItemContext, TPaveText, TGraphStruct, TMarker, TGraphPolar, TLegend, TNodeDiv, TButton, TWbox, TPaveLabel, TDiamond, TPavesText, and TFrame.
Definition at line 195 of file TObject.cxx.
|
virtual |
Draw class inheritance tree of the class to which this object belongs.
If a class B inherits from a class A, description of B is drawn on the right side of description of A. Member functions overridden by B are shown in class A with a blue line crossing-out the corresponding member function. The following picture is the class inheritance tree of class TPaveLabel:
Reimplemented in TGFrame, TSystemDirectory, and TSystemFile.
Definition at line 210 of file TObject.cxx.
Draw a clone of this object in the current selected pad for instance with: gROOT->SetSelectedPad(gPad)
.
Reimplemented in TGFrame, TCanvas, TAxis, TSystemDirectory, and TSystemFile.
Definition at line 219 of file TObject.cxx.
|
virtual |
Dump contents of object on stdout.
Using the information in the object dictionary (class TClass) each data member is interpreted. If a data member is a pointer, the pointer value is printed
The following output is the Dump of a TArrow object:
Reimplemented in TClass, TGFrame, TCollection, TGPack, and TSystemFile.
Definition at line 266 of file TObject.cxx.
|
virtual |
Issue error message.
Use "location" to specify the method where the error occurred. Accepts standard printf formatting arguments.
Definition at line 880 of file TObject.cxx.
Execute method on this object with the given parameter string, e.g.
"3.14,1,\"text"".
Reimplemented in TInterpreter, TContextMenu, and TMethodCall.
Definition at line 277 of file TObject.cxx.
Execute method on this object with parameters stored in the TObjArray.
The TObjArray should contain an argv vector like:
Reimplemented in TContextMenu, TMethodCall, and TInterpreter.
Definition at line 295 of file TObject.cxx.
Execute action corresponding to an event at (px,py).
This method must be overridden if an object can react to graphics events.
Reimplemented in TGeoManager, TF1, TH1, TGLViewer, TParticle, TGenerator, TGeoVolume, TPad, TGeoShape, TASImage, TGraph, TAxis, TEfficiency, TF2, TSpider, TGraphPolargram, TGraph2D, TF3, TCanvas, TGLScenePad, TView3D, TParallelCoord, TGeoNode, TGLParametricEquation, TVolume, THistPainter, TGeoOverlap, TGLEventHandler, TTreePerfStats, TGLHistPainter, TParallelCoordVar, TMarker3DBox, TNode, TGeoTrack, TVolumePosition, TPie, TAxis3D, TPrimary, TFileDrawMap, TASPaletteEditor::LimitLine, TPolyMarker3D, TPolyLine3D, TParallelCoordRange, TPolyMarker, TPolyLine, TSpline, TBox, TPave, TPoints3D, TPolyLineShape, TEllipse, TLine, TGraphEdge, TPaletteAxis, TText, TGraphNode, TPointsArray3D, TCurlyLine, TMarker, TGLTH3Composition, TView, TCurlyArc, TGL5DDataSet, TVirtualHistPainter, TButton, TWbox, TSliderBox, TCrown, TGroupButton, TDiamond, TFrame, and TLink.
Definition at line 311 of file TObject.cxx.
|
virtual |
Issue fatal error message.
Use "location" to specify the method where the fatal error occurred. Accepts standard printf formatting arguments.
Definition at line 908 of file TObject.cxx.
|
virtual |
Must be redefined in derived classes.
This function is typically used with TCollections, but can also be used to find an object by name inside this object.
Reimplemented in TH1, TROOT, TPad, TCollection, TDirectory, TGraph, TDataSet, TGraph2D, TList, TDataSetIter, TObjArray, TBtree, RooLinkedList, TMap, TGeometry, TListOfDataMembers, THashTable, TListOfFunctions, TListOfFunctionTemplates, THbookFile, TFolder, THashList, TListOfEnumsWithLock, TViewPubDataMembers, TViewPubFunctions, and TListOfTypes.
Definition at line 321 of file TObject.cxx.
Must be redefined in derived classes.
This function is typically used with TCollections, but can also be used to find an object inside this object.
Reimplemented in TH1, TROOT, TPad, TCollection, TDirectory, TGraph, TDataSet, TGraph2D, TList, TDataSetIter, TObjArray, TBtree, RooLinkedList, TMap, TGeometry, THashTable, TListOfFunctions, THbookFile, TFolder, THashList, TListOfEnumsWithLock, TViewPubDataMembers, and TViewPubFunctions.
Definition at line 331 of file TObject.cxx.
|
virtual |
Get option used by the graphics system to draw this object.
Note that before calling object.GetDrawOption(), you must have called object.Draw(..) before in the current pad.
Reimplemented in TFitEditor, TRootBrowser, TRootBrowserLite, TBrowser, TGFileBrowser, and TGedFrame.
Definition at line 341 of file TObject.cxx.
|
static |
Return destructor only flag.
Definition at line 969 of file TObject.cxx.
|
virtual |
Returns mime type name of object.
Used by the TBrowser (via TGMimeTypes class). Override for class of which you would like to have different icons for objects of the same class.
Reimplemented in TGMainFrame, TBranchElement, TGeoVolume, TBranch, TMethodBrowsable, TASImage, TKey, TSystemFile, and TVirtualBranchBrowsable.
Definition at line 367 of file TObject.cxx.
|
virtual |
Returns name of object.
This default method returns the class name. Classes that give objects a name should override this method.
Reimplemented in TMVA::MethodBase, TGMenuTitle, TGeoDecayChannel, TPad, TSlaveInfo, TSessionServerFrame, TCollection, TParticle, TPackageDescription, TVirtualPacketizer::TVirtualSlaveStat, TSessionDescription, RooAbsCollection, TProofBenchRunDataRead, TVirtualPad, TProofBenchRunCPU, TGeoShape, TGWindow, TSlave, TQueryDescription, TPair, TMVA::PDF, TMVA::Reader, THtml::TFileSysEntry, TEnvRec, TGLSAViewer, TPBHandleDSType, TGMenuEntry, TMVA::Factory, TQCommand, TMCParticle, TMVA::VariableTransformBase, TQConnection, TMapFile, RooLinkedList, TArchiveMember, TGaxis, TTVSession, TGeoVGShape, TPBHistType, TTreePerfStats, TStructNode, TMVA::FitterBase, TParameter< AParamType >, TParameter< Long64_t >, TMVA::DataSetInfo, TVolumePosition, TGPicture, TMVA::OptionBase, TPackMgr, TProofNodeInfo, TClassDocInfo, TPrimary, TPolyMarker3D, TSQLColumnData, TPave, TRealData, TVirtualGeoTrack, TEveGeoNode, TPaletteAxis, TStatistic, TPolyLineShape, TPBReadType, TTVRecord, TSQLClassInfo, TDrawFeedback, TDocDirective, TNamed, TGLEmbeddedViewer, RooCatType, TStatsFeedback, TObjString, TOutputListSelectorDataMap, TLockPath, TGLPShapeObj, TXMLAttr, and TSQLClassColumnInfo.
Definition at line 357 of file TObject.cxx.
Returns string containing info about the object at position (px,py).
This method is typically overridden by classes of which the objects can report peculiarities for different positions. Returned string will be re-used (lock in MT environment).
Reimplemented in TF1, TH1, TGeoVolume, TASImage, TF2, TGeoNode, TParallelCoordVar, TAxis3D, TGLParametricEquation, TVolume, THistPainter, TNode, TGLHistPainter, TGeoTrack, TVolumePosition, TColorWheel, TFileDrawMap, TVolumeView, TPaletteAxis, TPolyLineShape, TGLTH3Composition, TVirtualHistPainter, and TGL5DDataSet.
Definition at line 386 of file TObject.cxx.
|
static |
Get status of object stat flag.
Definition at line 954 of file TObject.cxx.
|
inlinevirtual |
Reimplemented in TH1, TFile, TGeoVolume, TSocket, TDataSetIter, TMapFile, TGaxis, TUDPSocket, TAxis3D, TVolume, THelix, TNode, TVolumePosition, TPolyMarker3D, TPoints3D, TSelector, TPolyLine3D, TPolyLine, TPolyMarker, TPointsArray3D, TPave, TArrow, TPSocket, TPoints3DABC, TTablePoints, and TLegendEntry.
|
virtual |
Returns title of object.
This default method returns the class title (i.e. description). Classes that give objects a title should override this method.
Reimplemented in TGGroupFrame, TPad, TGTextButton, TParticle, TGTextEntry, TVirtualPad, TAxis, TPair, TGTextLBEntry, TGLVEntry, TASImage, TQCommand, TParallelCoordSelect, TMapFile, TGaxis, TGLabel, TKey, TEvePointSet, TPackMgr, TClassMenuItem, TBaseClass, TPrimary, TPolyLineShape, TEveGeoNode, TNamed, and TPaveLabel.
Definition at line 401 of file TObject.cxx.
|
virtual |
Return the unique object id.
Definition at line 375 of file TObject.cxx.
Execute action in response of a timer timing out.
This method must be overridden if an object has to react to timers.
Reimplemented in TGHtml, TSessionViewer, TProofPlayerSuperMaster, TProofPlayerSlave, TProofPlayerRemote, TGPopupMenu, TTreeViewer, TGuiBldDragManager, TGTextEntry, TGFileContainer, TGDNDManager, TGTextView, TGScrollBar, TGTextEdit, TVirtualPacketizer, TGWindow, TGShutter, TGTextEditor, TGLEventHandler, TGToolTip, TGCommandPlugin, and TProofPlayerLite.
Definition at line 411 of file TObject.cxx.
|
virtual |
Return hash value for this object.
Note: If this routine is overloaded in a derived class, this derived class should also add
Otherwise, when RecursiveRemove is called (by ~TObject or example) for this type of object, the transversal of THashList and THashTable containers will will have to be done without call Hash (and hence be linear rather than logarithmic complexity). You will also see warnings like
Reimplemented in TPad, TCollection, TPair, THtml::TFileSysEntry, TEnvRec, RooLinkedList, TParameter< AParamType >, TParameter< Long64_t >, TVolume, TClassDocInfo, TGPicture, TPave, TStatistic, TDrawFeedback, TNamed, TGObject, TStatsFeedback, TObjString, RooSetPair, and TImagePlugin.
Definition at line 433 of file TObject.cxx.
|
inline |
Return true is the type of this object is known to have an inconsistent setup for Hash and RecursiveRemove (i.e.
missing call to RecursiveRemove in destructor).
Note: Since the consistency is only tested for during inserts, this routine will return true for object that have never been inserted whether or not they have a consistent setup. This has no negative side-effect as searching for the object with the right or wrong Hash will always yield a not-found answer (Since anyway no hash can be guaranteed unique, there is always a check)
|
virtual |
Issue info message.
Use "location" to specify the method where the warning occurred. Accepts standard printf formatting arguments.
Definition at line 854 of file TObject.cxx.
|
virtual |
Returns kTRUE if object inherits from class "classname".
Reimplemented in TClass.
Definition at line 443 of file TObject.cxx.
Returns kTRUE if object inherits from TClass cl.
Reimplemented in TClass.
Definition at line 451 of file TObject.cxx.
|
virtual |
Dump contents of this object in a graphics canvas.
Same action as Dump but in a graphical form. In addition pointers to other objects can be followed.
The following picture is the Inspect of a histogram object:
Reimplemented in TGFrame, and TSystemFile.
Definition at line 464 of file TObject.cxx.
Default equal comparison (objects are equal if they have the same address in memory).
More complicated classes might want to override this function.
Reimplemented in TSlaveInfo, TPair, TQCommand, TBonjourRecord, TGObject, and TObjString.
Definition at line 483 of file TObject.cxx.
|
virtual |
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects).
Reimplemented in TProof, TClass, TTree, TROOT, ROOT::Internal::THnBaseBrowsable, TPad, THnBase, TBranchElement, TBranch, TMultiDimFit, TCollection, TGeoManager, TCanvas, TGeoNodeMatrix, TDirectory, TDataSet, TTable, TGeoVolume, TPair, TGeoNode, TApplicationRemote, TMapFile, TGeometry, TKey, TAxis3D, TGeoOverlap, TVolumePosition, TNode, TDatabasePDG, TChair, TGeoTrack, THbookFile, TPrincipal, TTask, TBaseClass, TParticleClassPDG, TBranchObject, TFolder, TSPlot, TAlienDirectory, TAlienJobStatus, TBranchClones, TRemoteObject, TSystemDirectory, TAlienMasterJobStatus, TTableMap, TVirtualBranchBrowsable, TAlienDirectoryEntry, THbookKey, TFileSet, TBranchSTL, and TColumnView.
Definition at line 473 of file TObject.cxx.
|
inline |
|
inlinevirtual |
Reimplemented in RooAbsArg, TSlaveInfo, TCollection, TDSetElement, TSlave, TUri, TGeoBranchArray, TFileInfo, TParameter< AParamType >, TParameter< Long64_t >, TUrl, TStructNode, TClassDocInfo, TGeoOverlap, TPerfEvent, TPave, TNamed, RooDouble, TObjString, RooInt, TStructNodeProperty, and RooThreshEntry.
|
inline |
The ls function lists the contents of a class on stdout.
Ls output is typically much less verbose then Dump().
Reimplemented in TClass, TStreamerSTL, TROOT, TPad, TStreamerInfo, TFile, TCollection, TStreamerBase, TCanvas, TDirectory, TVirtualStreamerInfo, TVirtualPad, TStreamerElement, TGeoNode, TApplication, TDataSet, TQUndoManager, TGFrameElement, TChain, TFTP, TQConnection, TMCParticle, TParameter< AParamType >, TParameter< Long64_t >, TGLayoutHints, TMapFile, TDirectoryFile, TGeometry, ROOT::TSchemaRule, TDataSetIter, TKey, TQCommand, TNode, TChair, TStatistic, THStack, THbookFile, TTask, TColor, TClassTree, TChainElement, TFunction, TPolyMarker3D, TPave, TText, ROOT::Detail::TSchemaRuleSet, TPoints3D, TFriendElement, TPolyLine3D, TFolder, TBox, TPolyMarker, TEllipse, TPolyLine, TPointsArray3D, TLine, TNamed, TMarker, TFree, and TProofOutputList.
Definition at line 492 of file TObject.cxx.
void TObject::MayNotUse | ( | const char * | method | ) | const |
Use this method to signal that a method (defined in a base class) may not be called in a derived class (in principle against good design since a child class should not provide less functionality than its parent, however, sometimes it is necessary).
Definition at line 933 of file TObject.cxx.
|
virtual |
This method must be overridden to handle object notification.
Reimplemented in TTree, TIdleTOTimer, TReaperTimer, TShutdownTimer, TGLRedrawTimer, TProofServLogHandler, h1analysis, TProcessEventTimer, TBranchElement, TProofInputHandler, TThreadTimer, TTreeFormula, TProofInterruptHandler, TCollection, TStdExceptionHandler, TViewTimer, TSignalHandler, TARInterruptHandler, TASLogHandler, TDataSetIter, TSelEvent, TSelectorDraw, TProofDraw, TTimer, TRefTable, TFileHandler, TSelVerifyDataSet, TTreeFormulaManager, h1analysisTreeReader, TLeafObject, TSelEventGen, TMessageHandler, TSelector, TSelectorEntries, TSelHandleDataSet, TXSocketHandler, TPySelector, TSysEvtHandler, TBranchRef, RooProofDriverSelector, and TVolumeViewIter.
Definition at line 506 of file TObject.cxx.
void TObject::Obsolete | ( | const char * | method, |
const char * | asOfVers, | ||
const char * | removedFromVers | ||
) | const |
Use this method to declare a method obsolete.
Specify as of which version the method is obsolete and as from which version it will be removed.
Definition at line 942 of file TObject.cxx.
Operator delete.
Definition at line 985 of file TObject.cxx.
Operator delete [].
Definition at line 996 of file TObject.cxx.
This method must be overridden if a class wants to paint itself.
The difference between Paint() and Draw() is that when a object draws itself it is added to the display list of the pad in which it is drawn (and automatically redrawn whenever the pad is redrawn). While paint just draws the object without adding it to the pad display list.
Reimplemented in TF1, TH1, TPad, TStyle, TFile, TSQLFile, TGeoSubtraction, TCollection, TCanvas, TGenerator, TRatioPlot, TParticle, TDirectory, TGeoIntersection, TGraph, TVirtualPad, TGeoShape, TBits, TGeoPainter, TEveDigitSet, TGraph2D, TGeoNode, TGeoVolume, TGeoUnion, TEfficiency, TEveGeoTopNode, TF2, TLatex, TEveStraightLineSet, TSpider, TVirtualGeoPainter, TF3, TASImage, TParallelCoord, TGaxis, TParallelCoordVar, TGeoVGShape, TGeoPhysicalNode, TVolume, TTreePerfStats, TPie, TEvePointSet, TAxis3D, TGeoBoolNode, TNode, TVolumePosition, TGeoOverlap, THistPainter, TGraph2DPainter, TXMLFile, TEveCaloViz, TGLParametricEquation, TEveArrow, TMultiGraph, TEveShape, TPrimary, TEveText, TEveTriangleSet, THStack, TGLHistPainter, TGeoTrack, TMarker3DBox, TVolumeView, TEveProjectionAxes, TVirtualGeoTrack, TClassTree, TPolyMarker3D, TEveScene, TPave, TPolyLineShape, TText, TColorWheel, TPolyLine3D, TPolyMarker, TFileDrawMap, TASPaletteEditor::LimitLine, TBox, TPolyLine, TShape, TParallelCoordRange, TEllipse, TSpline, TLegend, TLine, TPaveText, TPaletteAxis, TArrow, TGraphEdge, TEveGeoShape, TEvePlot3D, TMacro, TGraphNode, TGraphTime, TGraphPolargram, TMathText, TSpectrum2Painter, TASPaletteEditor::PaintPalette, TMarker, TVirtualHistPainter, TGLTH3Composition, TWbox, TGL5DDataSet, TPaveStats, TButton, TNodeDiv, TSlider, TExec, TPaveLabel, TCrown, TDiamond, TPavesText, and TFrame.
Definition at line 519 of file TObject.cxx.
|
virtual |
Pop on object drawn in a pad to the top of the display list.
I.e. it will be drawn last and on top of all other primitives.
Reimplemented in TPad, TVirtualPad, and TFrame.
Definition at line 528 of file TObject.cxx.
This method must be overridden when a class wants to print itself.
Reimplemented in TProof, TF1, TTree, TGCompositeFrame, TGeoElementTable, TH1, TGeoBatemanSol, TPad, TGFrame, TProofServ, TGeoDecayChannel, TGFontPool, RooStats::ModelConfig, TLorentzVector, THnBase, ROOT::v5::TFormula, TFile, TSlaveInfo, TSQLFile, RooAbsArg, TDSet, TBranchElement, TGFont, TBranch, TPluginManager, TStreamerInfoActions::TActionSequence, TFormula, TGeoElementRN, TCollection, TMultiDimFit, TRolke, TZIPMember, TMatrixTBase< Element >, TQpVar, TVector3, TVirtualPad, TVectorT< Element >, TVectorT< Double_t >, TPluginHandler, TProofDesc, TParticle, TDecompSparse, TDirectory, TSQLStructure, TEnv, TGraph, RooMsgService, TEveTrans, RooAbsData, TFileInfoMeta, TSlave, TQueryResult, RooWorkspace, TBits, TZIPFile, TGGCPool, TMonaLisaWriter, TTable, TTreeCacheUnzip, TGeoVolume, TChain, TGFrameElement, TDSetElement, RooPlot, TGeoIsotope, TGPicturePool, TGWindow, TMVA::TNeuron, TProofOutputFile, TUri, TProofBenchRunDataRead, RooAbsCollection, TQpDataDens, TQpDataSparse, TXNetFile, TGeoBranchArray, TParameter< AParamType >, TApplicationRemote, TParameter< Long64_t >, TQuaternion, TParticlePDG, TProofLite, TGeoVoxelFinder, TProofLogElem, TGGC, TVector2, TFileCacheRead, TMVA::PDEFoamCell, THostAuth, TProofBenchRunCPU, TFileInfo, TGLayoutHints, TGTextEdit, TMapFile, TUrl, TParallelCoordVar, TAlienCollection, TGeoMatrix, RooCatType, TTreeCache, TKey, TGeoElement, TDecompBase, TAliEnFind, TTreePerfStats, TClassTable, TSecContext, TFTP, TGraphBentErrors, TGeoPhysicalNode, TDecompSVD, TVolumePosition, RooLinkedList, TGeoOverlap, RooAbsDataStore, TChair, TFileCollection, TXMLFile, TMultiGraph, TFoamCell, TInetAddress, TGraphAsymmErrors, TDecompQRH, TGridCollection, TGeoTrack, TPrimary, TMemFile, TDatabasePDG, THStack, TGPicture, TPrincipal, TStatistic, TSelEventGen, THelix, TDecompLU, TCondor, TProofProgressStatus, TGMimeTypes, TGraphErrors, RooNumIntConfig, TPave, TText, RooCustomizer, TBonjourRecord, RooAbsBinning, TPolyMarker3D, TDecompBK, RooFitResult, TTreeIndex, TColor, TAttParticle, RooFormula, TPerfEvent, TPolyLine, TPolyLine3D, TPolyMarker, TDecompChol, TPoints3D, TMVA::PDEFoamVect, TObjectTable, TBox, RooHist, TEventList, TGeoRegion, TEllipse, TSpectrum, TProofLog, TParallelCoordRange, TLine, TPointsArray3D, RooCurve, TBranchObject, TMessageHandler, TFunction, TLegend, TParticleClassPDG, TProofBenchRun, TStatus, TPaveText, TStopwatch, TBranchClones, TNamed, TProofNodes, RooAbsNumGenerator, TNetFile, RooStats::HistFactory::EstimateSummary, TMacro, TGLiteResult, TSQLColumnInfo, TFitResult, TMarker, TXTRU, TAlienJobStatus, TSlaveLite, Roo1DTable, RooGenFitStudy, THbookTree, TLDAPEntry, TXNetFileStager, RooAbsGenContext, RooNumGenConfig, TBenchmark, TRootSecContext, TSpectrum3, TSpectrum2, TAlienMasterJobStatus, TAlienResult, TNetFileStager, TBranchRef, RooNameSet, TCondorSlave, TObjString, TLDAPAttribute, TLDAPResult, TFoamVect, TFileCacheWrite, TProofOutputList, TBranchSTL, TSQLTableInfo, TAlienMasterJob, RooGrid, TLegendEntry, RooEllipse, and RooSharedProperties.
Definition at line 550 of file TObject.cxx.
|
virtual |
Read contents of object with specified name from the current directory.
First the key with the given name is searched in the current directory, next the key buffer is deserialized into the object. The object must have been created before via the default constructor. See TObject::Write().
Reimplemented in TKeyXML, TBuffer, TKey, and TKeySQL.
Definition at line 562 of file TObject.cxx.
Recursively remove this object from a list.
Typically implemented by classes that can contain multiple references to a same object.
Reimplemented in TTree, TH1, TPad, TROOT, RooAbsData, TFitEditor, TH2Editor, TCollection, TVirtualPad, TDirectory, TH1Editor, TGraph, TRootBrowser, RooAbsCollection, RooMCStudy, TRootBrowserLite, RooWorkspace, TChain, THistPainter, TFileMerger, TTreePlayer, TGedEditor, TList, TGeometry, TBrowser, TProcessID, TListOfFunctions, TListOfDataMembers, TListOfEnums, TObjArray, TNode, TGFileBrowser, RooLinkedList, TMultiGraph, TListOfFunctionTemplates, TListOfEnumsWithLock, ROOT::Internal::TCheckHashRecursiveRemoveConsistency, TViewPubDataMembers, TViewPubFunctions, THStack, TObjectRefSpy, THashList, TFolder, TLegend, TRootContextMenu, TObjectSpy, TInspectCanvas, TDialogCanvas, and PyROOT::TMemoryRegulator.
Definition at line 572 of file TObject.cxx.
Save this object in the file specified by filename.
otherwise the object is written to filename as a CINT/C++ script. The C++ code to rebuild this object is generated via SavePrimitive(). The "option" parameter is passed to SavePrimitive. By default it is an empty string. It can be used to specify the Draw option in the code generated by SavePrimitive.
The function is available via the object context menu.
Reimplemented in TPad, TSpline5, TSpline3, TGeoVolume, TVirtualPad, TTreePerfStats, TClassTree, TFolder, TSpline, TGObject, and TPaveClass.
Definition at line 599 of file TObject.cxx.
Save a primitive as a C++ statement(s) on output stream "out".
Reimplemented in TGHtml, TGGroupFrame, TF1, TGTransientFrame, TGMainFrame, TGeoPatternSphPhi, TGeoPatternSphTheta, TGeoHMatrix, TGListTree, TGeoPatternSphR, TGHorizontalFrame, TGVerticalFrame, TGCompositeFrame, TGeoPatternCylPhi, TGeoIdentity, TStyle, TGeoPatternCylR, TGRadioButton, TGListBox, TGMenuBar, TGeoPatternTrapZ, TH1, TGeoCombiTrans, TGListDetailsLayout, TGCheckButton, TGeoPatternParaZ, TGListLayout, TGFrame, TSpline5, TGTileLayout, TGMenuTitle, TGNumberEntry, TGeoPatternParaY, TGeoDecayChannel, TGMatrixLayout, TGPictureButton, TGLVContainer, TGCanvas, TGeoPatternParaX, TSpline3, TGMdiMainFrame, TGColumnLayout, TGPopupMenu, TGTextButton, TGeoRotation, TGRowLayout, TGFont, TGeoCtub, TGeoVolume, TGeoElementRN, TGeoPatternZ, TASImage, TGeoSubtraction, TGDoubleHSlider, TGVScrollBar, TCanvas, TGFileContainer, TGHorizontalLayout, TGLineWidthComboBox, TGVerticalLayout, TGeoMixture, TGListView, TGHScrollBar, TGHSlider, TGTextEntry, TGDoubleVSlider, TGeoPatternY, TGeoGtra, TGeoConeSeg, TGLineStyleComboBox, TGraph, TGedPatternSelect, TGeoIntersection, TGColorSelect, TGeoTubeSeg, TGXYLayout, TGeoTranslation, TGVProgressBar, TGNumberEntryField, TGDockableFrame, TGVSlider, TGComboBox, TGVFileSplitter, TTable, TGTextEdit, TGraph2D, TGeoPatternX, TGeoTrap, TGContainer, TGSplitFrame, TGTripleHSlider, TProfile2D, TGHButtonGroup, TGTableLayout, TProfile3D, TPad, TGButton, TGHProgressBar, TGXYLayoutHints, TEfficiency, TGTextLBEntry, TGHSplitter, TProfile, TGeoUnion, TLatex, TF2, TGLabel, TH2Poly, TGTab, TGVButtonGroup, TGTextView, TGeoMaterial, TGeoXtru, TF3, TParallelCoord, TGShutter, TGGC, TGLayoutHints, TGaxis, TTreePerfStats, TGProgressBar, TGButtonGroup, TParallelCoordVar, TGeoPcon, TGTripleVSlider, TGeoPgon, TGVSplitter, TChair, TAxis3D, TGeoBoolNode, TVolumePosition, TPie, TGraphBentErrors, TGeoCone, TGFSComboBox, TGMdiFrame, TGeoBBox, TMultiGraph, TGeoHype, TGeoSphere, TGeoCompositeShape, TGeoTorus, TGeoArb8, TGraphAsymmErrors, TGeoTube, TGToolBar, THStack, TGeoPara, TGMdiMenuBar, TVolumeView, THelix, TMarker3DBox, TGStatusBar, TGedMarkerSelect, TGraphErrors, TGeoTrd2, TPave, TText, TGeoTrd1, TPolyMarker3D, TRootEmbeddedCanvas, TGIcon, TGeoParaboloid, TGeoScaledShape, TGTableLayoutHints, TPolyLine, TPolyLine3D, TPolyMarker, TBox, TGShutterItem, TEllipse, TLegend, TLine, TPaveText, TGVertical3DLine, TCurlyLine, TGeoShapeAssembly, TArrow, TMacro, TPaletteAxis, TGeoEltu, TGeoHalfSpace, TMathText, TGraphEdge, TGTabLayout, TH1K, TGeoMedium, TGraphNode, TMarker, TCurlyArc, TWbox, TGraphStruct, TF12, TCutG, TPaveStats, TButton, TGHorizontal3DLine, TGShapedFrame, TPaveLabel, TSlider, TArc, TExec, TSliderBox, TPieSlice, TPaveClass, TCrown, TDiamond, TFrame, TPavesText, and TGroupButton.
Definition at line 664 of file TObject.cxx.
Set or unset the user status bits as specified in f.
Definition at line 694 of file TObject.cxx.
Set drawing option for object.
This option only affects the drawing style and is stored in the option field of the TObjOptLink supporting a TPad's primitive list (TList). Note that it does not make sense to call object.SetDrawOption(option) before having called object.Draw().
Reimplemented in TPad, TGFrame, TRootBrowserLite, TAxis, TBrowser, TGedFrame, RooPlot, TSystemDirectory, and TSystemFile.
Definition at line 677 of file TObject.cxx.
Set destructor only flag.
Definition at line 977 of file TObject.cxx.
Turn on/off tracking of objects in the TObjectTable.
Definition at line 961 of file TObject.cxx.
Set the unique object id.
Definition at line 705 of file TObject.cxx.
|
virtual |
Issue system error message.
Use "location" to specify the method where the system error occurred. Accepts standard printf formatting arguments.
Definition at line 894 of file TObject.cxx.
|
inline |
|
virtual |
Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked.
Reimplemented in TTree, TH1, TPad, TGraph, TCanvas, TAxis3D, TPaveText, TPaveStats, and TFrame.
Definition at line 715 of file TObject.cxx.
|
virtual |
Issue warning message.
Use "location" to specify the method where the warning occurred. Accepts standard printf formatting arguments.
Definition at line 866 of file TObject.cxx.
Write this object to the current directory.
For more see the const version of this method.
Reimplemented in TTree, TFile, TSQLFile, TCollection, TDirectory, ROOT::Experimental::TBufferMergerFile, TDataSet, TDirectoryFile, TXMLFile, TMap, TBuffer, and TParallelMergingFile.
Definition at line 785 of file TObject.cxx.
Write this object to the current directory.
The data structure corresponding to this object is serialized. The corresponding buffer is written to the current directory with an associated key with name "name".
Writing an object to a file involves the following steps:
Bufsize can be given to force a given buffer size to write this object. By default, the buffersize will be taken from the average buffer size of all objects written to the current file so far.
If a name is specified, it will be the name of the key. If name is not given, the name of the key will be the name as returned by GetName().
The option can be a combination of: kSingleKey, kOverwrite or kWriteDelete Using the kOverwrite option a previous key with the same name is overwritten. The previous key is deleted before writing the new object. Using the kWriteDelete option a previous key with the same name is deleted only after the new object has been written. This option is safer than kOverwrite but it is slower. The kSingleKey option is only used by TCollection::Write() to write a container with a single key instead of each object in the container with its own key.
An object is read from the file into memory via TKey::Read() or via TObject::Read().
The function returns the total number of bytes written to the file. It returns 0 if the object cannot be written.
Reimplemented in TTree, TFile, TSQLFile, TCollection, TDirectory, TDataSet, TDirectoryFile, TXMLFile, TMap, TBuffer, and TParallelMergingFile.
Definition at line 764 of file TObject.cxx.
|
friend |
|
staticprivate |
if true keep track of objects in TObjectTable