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. | |
TObject (const TObject &object) | |
TObject copy ctor. | |
virtual | ~TObject () |
TObject destructor. | |
void | AbstractMethod (const char *method) const |
Use this method to implement an "abstract" method that you don't want to leave purely abstract. | |
virtual void | AppendPad (Option_t *option="") |
Append graphics object to current pad. | |
virtual void | Browse (TBrowser *b) |
Browse object. May be overridden for another default action. | |
ULong_t | CheckedHash () |
Check and record whether this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object. | |
virtual const char * | ClassName () const |
Returns name of class to which the object belongs. | |
virtual void | Clear (Option_t *="") |
virtual TObject * | Clone (const char *newname="") const |
Make a clone of an object using the Streamer facility. | |
virtual Int_t | Compare (const TObject *obj) const |
Compare abstract method. | |
virtual void | Copy (TObject &object) const |
Copy this to obj. | |
virtual void | Delete (Option_t *option="") |
Delete this object. | |
virtual Int_t | DistancetoPrimitive (Int_t px, Int_t py) |
Computes distance from point (px,py) to the object. | |
virtual void | Draw (Option_t *option="") |
Default Draw method for all objects. | |
virtual void | DrawClass () const |
Draw class inheritance tree of the class to which this object belongs. | |
virtual TObject * | DrawClone (Option_t *option="") const |
Draw a clone of this object in the current selected pad for instance with: gROOT->SetSelectedPad(gPad) . | |
virtual void | Dump () const |
Dump contents of object on stdout. | |
virtual void | Error (const char *method, const char *msgfmt,...) const |
Issue error message. | |
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. | |
virtual void | Execute (TMethod *method, TObjArray *params, Int_t *error=0) |
Execute method on this object with parameters stored in the TObjArray. | |
virtual void | ExecuteEvent (Int_t event, Int_t px, Int_t py) |
Execute action corresponding to an event at (px,py). | |
virtual void | Fatal (const char *method, const char *msgfmt,...) const |
Issue fatal error message. | |
virtual TObject * | FindObject (const char *name) const |
Must be redefined in derived classes. | |
virtual TObject * | FindObject (const TObject *obj) const |
Must be redefined in derived classes. | |
virtual Option_t * | GetDrawOption () const |
Get option used by the graphics system to draw this object. | |
virtual const char * | GetIconName () const |
Returns mime type name of object. | |
virtual const char * | GetName () const |
Returns name of object. | |
virtual char * | GetObjectInfo (Int_t px, Int_t py) const |
Returns string containing info about the object at position (px,py). | |
virtual Option_t * | GetOption () const |
virtual const char * | GetTitle () const |
Returns title of object. | |
virtual UInt_t | GetUniqueID () const |
Return the unique object id. | |
virtual Bool_t | HandleTimer (TTimer *timer) |
Execute action in response of a timer timing out. | |
virtual ULong_t | Hash () const |
Return hash value for this object. | |
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. | |
virtual void | Info (const char *method, const char *msgfmt,...) const |
Issue info message. | |
virtual Bool_t | InheritsFrom (const char *classname) const |
Returns kTRUE if object inherits from class "classname". | |
virtual Bool_t | InheritsFrom (const TClass *cl) const |
Returns kTRUE if object inherits from TClass cl. | |
virtual void | Inspect () const |
Dump contents of this object in a graphics canvas. | |
void | InvertBit (UInt_t f) |
Bool_t | IsDestructed () const |
IsDestructed. | |
virtual Bool_t | IsEqual (const TObject *obj) const |
Default equal comparison (objects are equal if they have the same address in memory). | |
virtual Bool_t | IsFolder () const |
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects). | |
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. | |
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). | |
virtual Bool_t | Notify () |
This method must be overridden to handle object notification. | |
void | Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const |
Use this method to declare a method obsolete. | |
void | operator delete (void *ptr) |
Operator delete. | |
void | operator delete[] (void *ptr) |
Operator delete []. | |
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. | |
virtual void | Paint (Option_t *option="") |
This method must be overridden if a class wants to paint itself. | |
virtual void | Pop () |
Pop on object drawn in a pad to the top of the display list. | |
virtual void | Print (Option_t *option="") const |
This method must be overridden when a class wants to print itself. | |
virtual Int_t | Read (const char *name) |
Read contents of object with specified name from the current directory. | |
virtual void | RecursiveRemove (TObject *obj) |
Recursively remove this object from a list. | |
void | ResetBit (UInt_t f) |
virtual void | SaveAs (const char *filename="", Option_t *option="") const |
Save this object in the file specified by filename. | |
virtual void | SavePrimitive (std::ostream &out, Option_t *option="") |
Save a primitive as a C++ statement(s) on output stream "out". | |
void | SetBit (UInt_t f) |
void | SetBit (UInt_t f, Bool_t set) |
Set or unset the user status bits as specified in f. | |
virtual void | SetDrawOption (Option_t *option="") |
Set drawing option for object. | |
virtual void | SetUniqueID (UInt_t uid) |
Set the unique object id. | |
virtual void | SysError (const char *method, const char *msgfmt,...) const |
Issue system error message. | |
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. | |
virtual void | Warning (const char *method, const char *msgfmt,...) const |
Issue warning message. | |
virtual Int_t | Write (const char *name=0, Int_t option=0, Int_t bufsize=0) |
Write this object to the current directory. | |
virtual Int_t | Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const |
Write this object to the current directory. | |
Static Public Member Functions | |
static Longptr_t | GetDtorOnly () |
Return destructor only flag. | |
static Bool_t | GetObjectStat () |
Get status of object stat flag. | |
static void | SetDtorOnly (void *obj) |
Set destructor only flag. | |
static void | SetObjectStat (Bool_t stat) |
Turn on/off tracking of objects in the TObjectTable. | |
Protected Types | |
enum | { kOnlyPrepStep = BIT(3) } |
Protected Member Functions | |
virtual void | DoError (int level, const char *location, const char *fmt, va_list va) const |
Interface to ErrorHandler (protected). | |
void | MakeZombie () |
Static Private Member Functions | |
static void | AddToTObjectTable (TObject *) |
Private helper function which will dispatch to TObjectTable::AddObj. | |
Private Attributes | |
UInt_t | fBits |
bit field status word | |
UInt_t | fUniqueID |
object unique identifier | |
Static Private Attributes | |
static Longptr_t | fgDtorOnly = 0 |
object for which to call dtor only (i.e. no delete) | |
static Bool_t | fgObjectStat = kTRUE |
if true keep track of objects in TObjectTable | |
Friends | |
bool | ROOT::Internal::DeleteChangesMemoryImpl () |
class | TClonesArray |
#include <TObject.h>
Inherited by TEveRecTrackT< Float_t >, TMatrixTBase< Double_t >, TMatrixTBase< AReal >, TParameter< Long64_t >, TVectorT< Double_t >, Hit, Jet, JetEvent, MonitoredTFileInfo, PyROOT::TMemoryRegulator, RCaloTower, RCanvasCleanup, ROOT::Detail::TSchemaRuleSet, ROOT::Experimental::REveTrans, ROOT::Experimental::REveVSD, ROOT::Experimental::TTreeReaderFast, ROOT::Internal::TCheckHashRecursiveRemoveConsistency, ROOT::Internal::TTreeReaderDescriptor, ROOT::R::TRDataFrame, ROOT::R::TRFunctionExport, ROOT::R::TRFunctionImport, ROOT::R::TRInterface, ROOT::R::TRObject, ROOT::TSchemaRule, RecHit, RooAbsCollection, RooAbsIntegrator, RooCFunction1Ref< VO, VI >, RooCFunction2Ref< VO, VI1, VI2 >, RooCFunction3Ref< VO, VI1, VI2, VI3 >, RooCFunction4Ref< VO, VI1, VI2, VI3, VI4 >, RooCatType, RooCmdConfig, RooExpensiveObjectCache, RooGrid, RooHashTable, RooHelpers::WrapIntoTObject< T >, RooLinkedList, RooMinimizer, RooMinuit, RooMsgService, RooNameSet, RooNumGenConfig, RooNumGenFactory, RooNumIntConfig, RooNumIntFactory, RooSetPair, RooSharedProperties, RooSimPdfBuilder, RooStats::AcceptanceRegion, RooStats::HistFactory::EstimateSummary, RooStats::HistFactory::HistoToWorkspaceFactory, RooStats::HistFactory::HistoToWorkspaceFactoryFast, RooStats::MetropolisHastings, RooStats::ProposalFunction, RooStats::ProposalHelper, RooStats::SamplingSummary, RooStats::SamplingSummaryLookup, RooWorkspace::CodeRepo, TASPaletteEditor::PaintPalette, TAliEnFind, TApplication, TArchiveFile, TArchiveMember, TAuthenticate, TAxisModLab, TBinomialEfficiencyFitter, TBits, TBox, TBuffer, TBuffer3D, TClassDocInfo, TClassGenerator, TClassMenuItem, TClassTable, TCollection, TCondition, TConditionImp, TCondor, TCondorSlave, TConfidenceLevel, TDNDData, TDataSetManager, TDecayChannel, TDecompBase, TDictAttributeMap, TDimensionInfo, TDocMethodWrapper, TDocOutput, TDocParser, TDrawFeedback, TEllipse, TEntryListBlock, TEnv, TEnvRec, TEveCluster, TEveFrameBox, TEveGeoNode, TEveGridStepper, TEveHit, TEveMCRecCrossRef, TEveRGBAPalette, TEveRecCascade, TEveRecKink, TEveRecTrackT< TT >, TEveRecV0, TEveTrans, TEveVSD, TEventIter, TExMap, TF1AbsComposition, TFPBlock, TFTP, TFeldmanCousins, TFileCacheRead, TFileCacheWrite, TFileMerger, TFilePrefetch, TFoam, TFoamCell, TFoamIntegrand, TFoamMaxwt, TFoamVect, TFormLeafInfo, TFractionFitter, TFree, TGClient, TGDMLParse, TGDMLRefl, TGDMLWrite, TGDNDManager, TGFrameElement, TGGC, TGHtmlElement, TGHtmlImage, TGHtmlLayoutContext, TGHtmlUri, TGIdleHandler, TGItemContext, TGLAutoRotator, TGLCamera, TGLLightSet, TGLPShapeObj, TGLayoutHints, TGLayoutManager, TGMainFrame::TGMapKey, TGMenuEntry, TGMime, TGMimeTypes, TGObject, TGPicture, TGPicturePool, TGRectMap, TGRegion, TGTextEditCommand, TGTextLayout, TGUnknownWindowHandler, TGWin32CallBackObject, TGedFrame::TGedSubFrame, TGedTabInfo, TGenPhaseSpace, TGeoBatemanSol, TGeoBoolNode, TGeoBranchArray, TGeoBuilder, TGeoCacheState, TGeoChecker, TGeoDecayChannel, TGeoElementTable, TGeoExtension, TGeoGlobalMagField, TGeoHelix, TGeoIteratorPlugin, TGeoNavigator, TGeoNodeCache, TGeoPatternFinder, TGeoPolygon, TGeoTabManager, TGeoVoxelFinder, TGraph2DPainter, TGraphEdge, TGraphStruct, TGrid, TGridCollection, TGridJDL, TGridJob, TH2PolyBin, THLimitsFinder, THnChain, THnIter, THnSparseArrayChunk, THostAuth, THtml, THtml::TFileSysEntry, THtml::THelperBase, THttpCallArg, TIconBoxThumb, TImagePalette, TImagePlugin, TInetAddress, TInspectorObject, TJSONStackObj, TKDTree< Index, Value >, TKDTreeBinning, TLegendEntry, TLimitDataSource, TLine, TLockFile, TLockPath, TLorentzRotation, TLorentzVector, TMCParticle, TMLPAnalyzer, TMVA::DataInputHandler, TMVA::DataSetFactory, TMVA::DataSetInfo, TMVA::DataSetManager, TMVA::Event, TMVA::Experimental::ClassificationResult, TMVA::Experimental::SOFIE::RModel, TMVA::MsgLogger, TMVA::OptionBase, TMVA::PDEFoam, TMVA::PDEFoamCell, TMVA::PDEFoamDensityBase, TMVA::PDEFoamKernelBase, TMVA::PDEFoamVect, TMVA::Results, TMVA::RootFinder, TMVA::TNeuron, TMVA::TSynapse, TMVA::TreeInfo, TMVA::VariableTransformBase, TMapFile, TMarker, TMarker3DBox, TMatrixTBase< Element >, TMatrixTLazy< Element >, TMatrixTSymLazy< Element >, TMergerInfo, TMethodCall, TMonitor, TMrbSubevent_Caen, TMultiLayerPerceptron, TMutexImp, TNDArray, TNamed, TNotifyLinkBase, TObjString, TObjectRefSpy, TObjectSpy, TObjectTable, TOptionListItem, TOutputListSelectorDataMap, TPBHandleDSType, TPBHistType, TPBReadType, TPackageDescription, TPacketizer::TFileNode, TPacketizer::TFileStat, TPacketizerAdaptive::TFileNode, TPacketizerAdaptive::TFileStat, TPacketizerFile::TIterObj, TPair, TParameter< AParamType >, TParticle, TPerfEvent, TPluginHandler, TPluginManager, TPoints3DABC, TPolyLine, TPolyLine3D, TPolyMarker, TPolyMarker3D, TPrimary, TProofBench, TProofBenchDataSet, TProofBenchRun, TProofNodeInfo, TProofNodes, TProofPerfAnalysis::TWrkEntry, TProofProgressInfo, TProofProgressStatus, TProofResources, TPyDispatcher, TQSlot, TQpDataBase, TQpLinSolverBase, TQpProbBase, TQpResidual, TQpSolverBase, TQpVar, TQuaternion, TQueryDescription, TQueryResultManager, TRWLock, TRatioPlot, TRealData, TRecEvent, TRecWinPair, TRecorder, TRef, TRefTable, TRobustEstimator, TRolke, TRootBrowserHistoryCursor, TRootSnifferStore, TRotation, TS3HTTPRequest, TSPlot, TSQLClassColumnInfo, TSQLClassInfo, TSQLColumnData, TSQLObjectData, TSQLObjectDataPool, TSQLObjectInfo, TSQLResult, TSQLRow, TSQLServer, TSQLStatement, TSQLStructure, TSQLTableData, TSVDUnfold, TSecContext, TSecContextCleanup, TSelector, TSemaphore, TSessionDescription, TSlave, TSlaveInfo, TSpectrum2Transform, TSpider, TSplinePoly, TSqlCmdsBuffer, TSqlRawBuffer, TSqlRegistry, TStatistic, TStatsFeedback, TStopwatch, TStreamerInfoActions::TActionSequence, TStreamerInfoActions::TConfiguredAction, TStructNode, TStructViewer, TSynapse, TSysEvtHandler, TTVRecord, TTVSession, TThreadImp, TTreeDrawArgsParser, TTreeFormulaManager, TTreeReader, TUnfold, TUri, TUrl, TUsrHit, TUsrHitBuffer, TVector2, TVector3, TVectorT< Element >, TView, TVirtualFFT, TVirtualGeoConverter, TVirtualGeoPainter, TVirtualGeoTrack, TVirtualGraphPainter, TVirtualHistPainter, TVirtualMCDecayer, TVirtualPacketizer, TVirtualPacketizer::TVirtualSlaveStat, TVirtualPad, TVirtualPerfStats, TVirtualProofPlayer, TVirtualTreePlayer, TVirtualViewer3D, TWebPainting, TWebSnapshot, TXMLAttr, TXMLDocument, TXMLEngine, TXMLNode, TXMLParser, TXMLPlayer, and Track.
anonymous enum |
anonymous enum |
|
protected |
Enumerator | |
---|---|
kOnlyPrepStep | Used to request that the class specific implementation of This is just for example by TBufferMerger to request that the TTree inside the file calls |
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.ObjStat" (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 151 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 1005 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 168 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 177 of file TObject.cxx.
Browse object. May be overridden for another default action.
Reimplemented in TASImage, TRecorder, TEfficiency, TGraph2D, TChain, TTree, TFolder, TMacro, TRemoteObject, TROOT, TStyle, TSystemDirectory, TSystemFile, TTask, TCollection, TPair, TBrowserObject, TBaseClass, TClass, TGeoManager, TGeoNode, TGeoVolume, TGeoOverlap, TGeoTrack, TRatioPlot, TAxis3D, TGeometry, TNode, TRootIconList, THbookBranch, THbookFile, THbookKey, TF1, TGraph, TH1, THnBase, ROOT::Internal::THnBaseBrowsable, THStack, TMultiDimFit, TMultiGraph, TPrincipal, TKey, TKeyMapFile, TMapFile, TSPlot, TDatabasePDG, TGenerator, TParticleClassPDG, TAlienDirectoryEntry, TAlienDirectory, TAlienJobStatus, TAlienMasterJob, TAlienMasterJobStatus, TApplicationRemote, TProof, TProofChain, RooPlot, TBranch, TBranchClones, TBranchElement, TBranchObject, TBranchSTL, TLeaf, TNtuple, TNtupleD, TTreePerfStats, TDirectory, TCanvas, TPad, TDirectoryFile, TVirtualBranchBrowsable, TCollectionPropertyBrowsable, and TQueryResult.
Definition at line 191 of file TObject.cxx.
|
inline |
Check and record whether this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object.
The intent is for this routine to be called 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 200 of file TObject.cxx.
Reimplemented in TStreamerInfo, TMVA::ResultsClassification, TMVA::ResultsMulticlass, TMVA::ResultsRegression, TVirtualStreamerInfo, TNotifyLinkBase, TRefTable, ROOT::TSchemaRule, TGTextEdit, TGTextView, TGView, TGHtml, TMatrixT< Element >, TMatrixT< AReal >, TMatrixT< Double_t >, TMatrixTSparse< Element >, TMatrixTSparse< Double_t >, TMatrixTSym< Element >, TMatrixTSym< Double_t >, TVectorT< Element >, TVectorT< Double_t >, TMVA::ResultsClassification, TMVA::ResultsMulticlass, TMVA::ResultsRegression, TMrbSubevent_Caen, TProofProgressLog, TProofProgressMemoryPlot, TMVA::MinuitWrapper, RooLinkedList, TFumili, TUsrHitBuffer, TListOfDataMembers, TListOfFunctions, TListOfFunctionTemplates, TListOfEnums, TListOfEnumsWithLock, TFolder, TNamed, TProcessID, TTask, TBits, TBtree, TClonesArray, THashList, THashTable, TList, TMap, TObjArray, TOrdCollection, TRefArray, TDictAttributeMap, TViewPubDataMembers, TViewPubFunctions, TGeoRotation, TGeoCombiTrans, TGeoGenTrans, TGeoHMatrix, TLegend, TPaveText, TGTextEntry, TBackCompFitter, TFormula, TGraph2D, TMultiDimFit, TPrincipal, ROOT::v5::TFormula, TFitter, TLinearFitter, TBranchRef, TEventList, JetEvent, TDirectory, TCanvas, TPad, TVirtualPad, TCollection, TVirtualFitter, TMatrixTBase< Element >, TMatrixTBase< AReal >, and TMatrixTBase< Double_t >.
|
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 TMVA::MinuitWrapper, TImage, RooCatType, RooNameSet, RooStudyPackage, RooLinkedList, RooStats::ModelConfig, TASImage, TNamed, TCollection, TClass, TFunction, TFunctionTemplate, TMethod, TMethodCall, TH2Poly, TStreamerInfo, TMinuit, RooAbsStudy, RooDataHist, RooDataSet, TF1, TH1, RooAbsArg, RooAbsBinning, RooAbsCollection, RooCmdArg, RooFitResult, RooTemplateProxy< T >, RooTemplateProxy< const RooHistFunc >, RooTemplateProxy< RooAbsCategory >, RooTemplateProxy< RooAbsPdf >, RooTemplateProxy< RooAbsReal >, RooTemplateProxy< RooAbsRealLValue >, RooTemplateProxy< RooMultiCategory >, RooTemplateProxy< RooRealVar >, and RooFormula.
Definition at line 216 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 fileDesc, TProofPerfAnalysis::TWrkInfo, TProofPerfAnalysis::TFileInfo, TEnvRec, TFileInfo, TNamed, TObjString, TParameter< AParamType >, TParameter< Long64_t >, TUrl, TCollection, TGeoBranchArray, TGeoOverlap, TStructNode, TStructNodeProperty, TGFSFrameElement, TGLBFrameElement, TClassDocInfo, TDSetElement, TSlaveInfo, TSlave, TPerfEvent, TPacketizerAdaptive::TFileStat, TPacketizer::TFileNode, TPacketizerAdaptive::TFileNode, RooAbsArg, RooDouble, and RooInt.
Definition at line 231 of file TObject.cxx.
Copy this to obj.
Reimplemented in TFolder, TSystemDirectory, TSystemFile, TGTextEdit, TGTextView, TDirectory, TDirectoryFile, TFile, TArc, TArrow, TAxis, TBox, TColor, TCrown, TEllipse, TF1, TFormula, TF12, TF2, TF3, ROOT::v5::TFormula, TFrame, THelix, TAxis3D, TH1, TH1C, TH1S, TH1I, TH1F, TH1D, TH2, TH2C, TH2S, TH2I, TH2F, TH2D, TH3, TH3C, TH3S, TH3I, TH3F, TH3D, TProfile, TProfile2D, TProfile3D, TLine, TMarker, TNamed, TLegend, TLegendEntry, TF1Convolution, TF1NormSum, TH1K, TF1AbsComposition, TPaletteAxis, TPave, TPaveLabel, TPaveClass, TPolyLine, TPolyLine3D, TPolyMarker3D, TPolyMarker, TStyle, TLatex, TMathText, TText, TWbox, and TXTRU.
Definition at line 133 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 TDirectory, TDirectoryFile, TFile, TSystemDirectory, TSystemFile, TTreeViewer, TGItemContext, TGFrame, TGTextEdit, TAxis, TCanvas, RooLinkedList, TExMap, TObjectTable, TProtoClass, TQCommand, TBtree, TClonesArray, THashList, THashTable, TList, TMap, TObjArray, TOrdCollection, TRefArray, TListOfDataMembers, TListOfFunctions, TListOfFunctionTemplates, TViewPubDataMembers, TViewPubFunctions, TThread, TKey, TMVA::Results, TTree, TKeySQL, TKeyXML, TListOfEnums, TListOfEnumsWithLock, and TCollection.
Definition at line 241 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 TGeoTessellated, TStyle, TGeoBBox, TGeoCompositeShape, TGeoCone, TGeoConeSeg, TGeoEltu, TGeoHalfSpace, TGeoHype, TGeoNode, TGeoParaboloid, TGeoPcon, TGeoPgon, TGeoScaledShape, TGeoShapeAssembly, TGeoSphere, TGeoTorus, TGeoTube, TGeoTubeSeg, TGeoVolume, TGeoXtru, TGeoOverlap, TGeoTrack, TGeoVGShape, TASImage, TColorWheel, TBox, TCrown, TCurlyArc, TCurlyLine, TDiamond, TEllipse, TGraphPolargram, TLine, TMarker, TPave, TPie, TPolyLine, TText, TGraphEdge, TGraphNode, TAxis3D, TBRIK, TMarker3DBox, TNode, TPCON, TPolyLine3D, TPolyMarker3D, TSPHE, TTUBE, TTUBS, TXTRU, TGL5DDataSet, TGLHistPainter, TGLParametricEquation, TGLTH3Composition, TGLViewer, TAxis, TEfficiency, TF1, TF2, TF3, TGraph, TGraph2D, TH1, THStack, TMultiGraph, TPolyMarker, TSpline, THistPainter, TPaletteAxis, TGenerator, TParticle, TPrimary, TFileDrawMap, TTreePerfStats, TParallelCoord, TParallelCoordRange, TParallelCoordVar, TSpider, TPad, TGeoShape, TPoints3DABC, TVirtualHistPainter, TPieSlice, and TGLScenePad.
Definition at line 258 of file TObject.cxx.
|
protectedvirtual |
Interface to ErrorHandler (protected).
Reimplemented in TSlaveLite, TXSlave, TXSocket, TTreeViewer, and TThread.
Definition at line 924 of file TObject.cxx.
Default Draw method for all objects.
Reimplemented in TClassTree, RooStats::HybridPlot, TGListTree, TGPicture, ROOT::Experimental::REveGeoPainter, TMultiDimFit, TRatioPlot, TGraph, TGraphTime, THStack, TMultiGraph, TDSet, TProofChain, TChain, TTree, TFITSHDU, TEfficiency, RooStats::HypoTestInverterPlot, TGeoParallelWorld, TCollection, TClass, TGeoBatemanSol, TGeoNode, TGeoPhysicalNode, TGeoPolygon, TGeoShape, TGeoVolume, TGeoOverlap, TGeoTrack, TGeoVGShape, TASImage, TButton, TColorWheel, TArrow, TBox, TDiamond, TEllipse, TFrame, TLegend, TMarker, TPave, TPaveLabel, TPavesText, TPaveText, TPolyLine, TWbox, TGraphStruct, TEveGeoNode, TEveGeoTopNode, TGeometry, THelix, TNode, TNodeDiv, TPolyLine3D, TPolyMarker3D, TStructViewer, TStructViewerGUI, TF1, TF2, TF3, TH1, TPolyMarker, TSpline, TMatrixTBase< Element >, TMatrixTBase< AReal >, TMatrixTBase< Double_t >, TVectorT< Element >, TVectorT< Double_t >, TMultiLayerPerceptron, TGenerator, RooAbsData, RooTreeDataStore, TTreePerfStats, TParallelCoordVar, TGItemContext, TDirectory, TGeoPainter, TCanvas, TPad, TFile, TVirtualPad, TPie, TGraph2D, TGraphPolar, TGraphPolargram, TParallelCoord, TParallelCoordRange, TSpider, RooPlot, and RooStats::SamplingDistPlot.
Definition at line 267 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 TSystemDirectory, TSystemFile, and TGFrame.
Definition at line 282 of file TObject.cxx.
Draw a clone of this object in the current selected pad for instance with: gROOT->SetSelectedPad(gPad)
.
Reimplemented in TSystemDirectory, TSystemFile, TGFrame, TAxis, and TCanvas.
Definition at line 291 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 TSystemFile, TCollection, TClass, TGFrame, and TGPack.
Definition at line 338 of file TObject.cxx.
|
virtual |
Issue error message.
Use "location" to specify the method where the error occurred. Accepts standard printf formatting arguments.
Reimplemented in TFitResult.
Definition at line 963 of file TObject.cxx.
Execute method on this object with the given parameter string, e.g.
"3.14,1,\"text\"".
Reimplemented in TMethodCall, TCling, TInterpreter, ROOT::R::TRInterface, and TContextMenu.
Definition at line 349 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 TMethodCall, TCling, TInterpreter, ROOT::R::TRInterface, and TContextMenu.
Definition at line 367 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 TParallelCoord, TParallelCoordRange, TParallelCoordVar, TGeoManager, TGeoNode, TGeoShape, TGeoVolume, TGeoOverlap, TGeoTrack, TASImage, TASPaletteEditor::LimitLine, TButton, TGroupButton, TSliderBox, TBox, TCrown, TCurlyArc, TCurlyLine, TDiamond, TEllipse, TFrame, TGraphPolargram, TLine, TLink, TMarker, TPave, TPolyLine, TText, TWbox, TGraphEdge, TGraphNode, TAxis3D, TMarker3DBox, TNode, TPolyLine3D, TPolyMarker3D, TView3D, TGL5DDataSet, TGLEventHandler, TGLHistPainter, TGLParametricEquation, TGLTH3Composition, TGLViewer, TAxis, TEfficiency, TF1, TF2, TF3, TGraph, TGraph2D, TH1, TPolyMarker, TSpline, THistPainter, TPaletteAxis, TGenerator, TParticle, TPrimary, TFileDrawMap, TTreePerfStats, TSpider, TCanvas, TPad, TView, TVirtualHistPainter, TPie, and TGLScenePad.
Definition at line 383 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 991 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 TListOfEnums, TMap, TFolder, TROOT, TListOfTypes, TListOfTypes, TBtree, TCollection, THashList, THashTable, TList, TObjArray, TListOfDataMembers, TListOfDataMembers, TListOfEnums, TListOfFunctions, TListOfFunctionTemplates, TListOfFunctionTemplates, TViewPubDataMembers, TViewPubFunctions, TGeometry, THbookFile, TGraph, TGraph2D, TH1, RooAbsCollection, RooLinkedList, TDirectory, TListOfEnumsWithLock, and TPad.
Definition at line 393 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 TMap, TFolder, TROOT, TListOfTypes, TBtree, TCollection, THashList, THashTable, TList, TObjArray, TListOfDataMembers, TListOfEnums, TListOfFunctions, TListOfFunctionTemplates, TViewPubDataMembers, TViewPubFunctions, TGeometry, THbookFile, TGraph, TGraph2D, TH1, RooAbsCollection, RooLinkedList, TDirectory, TListOfEnumsWithLock, and TPad.
Definition at line 403 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 TBrowser, TFitEditor, TGedFrame, TGFileBrowser, TRootBrowser, and TRootBrowserLite.
Definition at line 413 of file TObject.cxx.
|
static |
Return destructor only flag.
Definition at line 1052 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 TSystemFile, TGeoVolume, TASImage, TGMainFrame, TKey, TBranch, TBranchElement, TVirtualBranchBrowsable, and TMethodBrowsable.
Definition at line 439 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 TEnvRec, TNamed, TObjString, TParameter< AParamType >, TParameter< Long64_t >, TQCommand, TQSlot, TCollection, TPair, TRealData, TGeoDecayChannel, TGeoShape, TVirtualGeoTrack, TGeoVGShape, TGaxis, TPave, TEveGeoNode, TPolyMarker3D, TGLEmbeddedViewer, TGLPShapeObj, TGLSAViewer, TStructNode, TGMenuEntry, TGMenuTitle, TGPicture, TGWindow, TIconBoxThumb, TQueryDescription, TSessionDescription, TPackageDescription, TSessionServerFrame, TDocDirective, TClassDocInfo, THtml::TFileSysEntry, TArchiveMember, TMapFile, TXMLAttr, TStatistic, TParticle, TPrimary, TMCParticle, TLockPath, TPackMgr, TSlaveInfo, TProofNodeInfo, TSlave, TVirtualPacketizer::TVirtualSlaveStat, TProofBenchRunCPU, TProofBenchRunDataRead, TPBReadType, TPBHistType, TPBHandleDSType, TDrawFeedback, TOutputListSelectorDataMap, TStatsFeedback, TPacketizer::TFileNode, TPacketizerAdaptive::TFileNode, TPacketizerFile::TIterObj, RooAbsCollection, RooCatType, RooLinkedList, TMVA::DataSetInfo, TMVA::FitterBase, TMVA::MethodBase, TMVA::OptionBase, TMVA::PDF, TMVA::Reader, TMVA::VariableTransformBase, TTreePerfStats, TTVRecord, TTVSession, TSQLClassColumnInfo, TSQLClassInfo, TSQLColumnData, TQConnection, TPad, and TVirtualPad.
Definition at line 429 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 TGeoNode, TGeoVolume, TGeoTrack, TASImage, TColorWheel, TAxis3D, TNode, TGL5DDataSet, TGLHistPainter, TGLParametricEquation, TGLTH3Composition, TF1, TF2, TGraph, TH1, THistPainter, TPaletteAxis, TFileDrawMap, TParallelCoordVar, and TVirtualHistPainter.
Definition at line 458 of file TObject.cxx.
|
static |
Get status of object stat flag.
Definition at line 1037 of file TObject.cxx.
|
inlinevirtual |
Reimplemented in TGeoVolume, TArrow, TGaxis, TLegendEntry, TPave, TPolyLine, TAxis3D, THelix, TNode, TPolyLine3D, TPolyMarker3D, TH1, TPolyMarker, TMapFile, TPSocket, TSocket, TUDPSocket, TSelector, TPoints3DABC, and TFile.
|
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 TNamed, TQCommand, TPair, TClassMenuItem, TBaseClass, TASImage, TGaxis, TPaveLabel, TEveGeoNode, TEvePointSet, TGTextButton, TGGroupFrame, TGLabel, TGTextLBEntry, TGLVEntry, TGTextEntry, TRootIconList, TAxis, TKey, TMapFile, TParticle, TPrimary, TPackMgr, TParallelCoordSelect, TPad, and TVirtualPad.
Definition at line 473 of file TObject.cxx.
|
virtual |
Return the unique object id.
Definition at line 447 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 TGWindow, TGuiBldDragManager, TSessionViewer, TUserHandler, TGLEventHandler, TGCommandPlugin, TGDNDManager, TGFileContainer, TGPopupMenu, TGScrollBar, TGShutter, TGTextEdit, TGTextEditor, TGTextEntry, TGTextView, TGToolTip, TGHtml, TVirtualPacketizer, TProofPlayerRemote, TProofPlayerSlave, TProofPlayerSuperMaster, TProofPlayerLite, and TTreeViewer.
Definition at line 483 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 TEnvRec, TNamed, TObjString, TParameter< AParamType >, TParameter< Long64_t >, TCollection, TPair, TImagePlugin, TPave, TGObject, TGPicture, TIconBoxThumb, TClassDocInfo, THtml::TFileSysEntry, TStatistic, TDrawFeedback, TStatsFeedback, RooSetPair, RooLinkedList, and TPad.
Definition at line 505 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 937 of file TObject.cxx.
|
virtual |
Returns kTRUE if object inherits from class "classname".
Reimplemented in TClass.
Definition at line 515 of file TObject.cxx.
Returns kTRUE if object inherits from TClass cl.
Reimplemented in TClass.
Definition at line 523 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 TSystemFile, TInspectorObject, and TGFrame.
Definition at line 536 of file TObject.cxx.
|
inline |
IsDestructed.
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 TObjString, TQCommand, TPair, TGObject, and TSlaveInfo.
Definition at line 555 of file TObject.cxx.
|
virtual |
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects).
Reimplemented in TFolder, TRemoteObject, TROOT, TSystemDirectory, TTask, TCollection, TPair, TBrowserObject, TBaseClass, TClass, TGeoManager, TGeoNode, TGeoNodeMatrix, TGeoVolume, TGeoOverlap, TGeoTrack, TAxis3D, TGeometry, TNode, TRootIconList, THbookFile, THbookKey, THnBase, ROOT::Internal::THnBaseBrowsable, TMultiDimFit, TPrincipal, TKey, TMapFile, TSPlot, TDatabasePDG, TParticleClassPDG, TAlienDirectoryEntry, TAlienDirectory, TAlienJobStatus, TAlienMasterJobStatus, TApplicationRemote, TProof, TBranch, TBranchClones, TBranchElement, TBranchObject, TBranchSTL, TTree, TDirectory, TCanvas, TPad, and TVirtualBranchBrowsable.
Definition at line 545 of file TObject.cxx.
|
inline |
|
inlinevirtual |
Reimplemented in TFileInfo, TNamed, TObjString, TParameter< AParamType >, TParameter< Long64_t >, TUri, TUrl, TCollection, TGeoBranchArray, TGeoOverlap, TPave, TStructNode, TStructNodeProperty, TGFSFrameElement, TGLBFrameElement, TClassDocInfo, TDSetElement, TSlaveInfo, TSlave, TPerfEvent, TPacketizer::TFileNode, TPacketizerAdaptive::TFileStat, TPacketizerAdaptive::TFileNode, RooAbsArg, RooDouble, and RooInt.
|
inline |
The ls function lists the contents of a class on stdout.
Ls output is typically much less verbose then Dump().
Reimplemented in THbookFile, TParameter< AParamType >, TParameter< Long64_t >, TFree, TFTP, TQSlot, TClass, TStatistic, TMCParticle, TApplication, TColor, TFolder, TNamed, TQCommand, TQUndoManager, TROOT, TQConnectionList, TCollection, TFunction, ROOT::TSchemaRule, ROOT::Detail::TSchemaRuleSet, TStreamerElement, TStreamerBase, TStreamerSTL, TGeoNode, TClassTree, TBox, TEllipse, TImage, TLine, TMarker, TPave, TPolyLine, TText, TPolyLine3D, TPolyMarker3D, TGLayoutHints, TGFrameElement, THStack, TPolyMarker, TKey, TMapFile, TStreamerInfo, TProofOutputList, TChain, TChainElement, TFriendElement, TVirtualStreamerInfo, TDirectory, TQConnection, TCanvas, TPad, TDirectoryFile, TFile, TVirtualPad, TTask, TNode, and TGeometry.
Definition at line 564 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 1016 of file TObject.cxx.
|
virtual |
This method must be overridden to handle object notification.
Reimplemented in TMessageHandler, TFileHandler, TSignalHandler, TStdExceptionHandler, TProcessEventTimer, TTimer, TIdleTimer, TSingleShotCleaner, TCollection, TRefTable, TBrowserTimer, TInterruptHandler, TTermInputHandler, TThreadTimer, TGLRedrawTimer, TViewTimer, TGContainerKeyboardTimer, TGContainerScrollTimer, TGInputHandler, TViewUpdateTimer, TPopupDelayTimer, TRepeatTimer, TSBRepeatTimer, TGTextEditHist, TInsCharCom, TDelCharCom, TBreakLineCom, TInsTextCom, TDelTextCom, TBlinkTimer, TTipDelayTimer, TGuiBldDragManagerRepeatTimer, TARInterruptHandler, TASLogHandler, TASInterruptHandler, TASSigPipeHandler, TASInputHandler, TSocketHandler, TTimeOutTimer, TProofInterruptHandler, TProofInputHandler, TProofServLogHandler, TShutdownTimer, TReaperTimer, TIdleTOTimer, TSelVerifyDataSet, TProofServTerminationHandler, TProofServInterruptHandler, TProofServSigPipeHandler, TProofServInputHandler, TProofServLiteInterruptHandler, TProofServLiteSigPipeHandler, TProofServLiteTerminationHandler, TProofServLiteSegViolationHandler, TProofServLiteInputHandler, TSelEvent, TSelEventGen, TSelHandleDataSet, TProofDraw, TDispatchTimer, TProctimeTimer, TStopTimer, TXSocketHandler, TProofMgrInterruptHandler, TXProofServSigPipeHandler, TXProofServTerminationHandler, TXProofServSegViolationHandler, TXProofServInputHandler, TXSlaveInterruptHandler, TXSocketPingHandler, RooProofDriverSelector, TBranchElement, TBranchRef, TLeafObject, TSelector, TTree, TSelectorDraw, TSelectorEntries, TTreeFormula, TTreeFormulaManager, TTreeReader, h1analysis, h1analysisTreeReader, TNotifyLink< Type >, TNotifyLink< ROOT::Detail::TBranchProxy >, TNotifyLink< TTreeReader >, and TSysEvtHandler.
Definition at line 578 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 1025 of file TObject.cxx.
Operator delete.
Definition at line 1068 of file TObject.cxx.
Operator delete [].
Definition at line 1079 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 TPie, TSQLFile, TXMLFile, ROOT::Experimental::REveGeoPainter, TGaxis, TGraph, TGraphTime, THStack, TMultiGraph, TTreePerfStats, TEfficiency, TRatioPlot, TASPaletteEditor::PaintPalette, TASPaletteEditor::LimitLine, TMarker3DBox, TGL5DDataSet, TGLHistPainter, TGLParametricEquation, TGLTH3Composition, TGraph2DPainter, TSpectrum2Painter, TFileDrawMap, TGeoBoolNode, TGeoUnion, TGeoIntersection, TGeoSubtraction, TExec, TMacro, TStyle, TBits, TCollection, TGeoNode, TGeoPhysicalNode, TGeoShape, TGeoVolume, TGeoOverlap, TGeoTrack, TGeoVGShape, TASImage, TButton, TClassTree, TColorWheel, TSlider, TArrow, TBox, TCrown, TDiamond, TEllipse, TFrame, TLatex, TLegend, TLine, TMarker, TMathText, TPave, TPaveLabel, TPaveStats, TPavesText, TPaveText, TPolyLine, TText, TWbox, TGraphEdge, TGraphNode, TEveArrow, TEveCaloViz, TEveDigitSet, TEveGeoTopNode, TEveGeoShape, TEvePlot3D, TEvePointSet, TEveProjectionAxes, TEveScene, TEveShape, TEveStraightLineSet, TEveText, TEveTriangleSet, TAxis3D, TNode, TNodeDiv, TPolyLine3D, TPolyMarker3D, TShape, TF1, TF2, TF3, TGraph2D, TH1, TPolyMarker, TSpline, THistPainter, TPaletteAxis, TGenerator, TParticle, TPrimary, TParallelCoordVar, TDirectory, TGeoPainter, TCanvas, TPad, TFile, TVirtualPad, TVirtualGeoPainter, TVirtualGeoTrack, TVirtualHistPainter, TParallelCoordRange, TSpider, TGraphPolargram, and TParallelCoord.
Definition at line 591 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 TFrame, TPad, and TVirtualPad.
Definition at line 600 of file TObject.cxx.
This method must be overridden when a class wants to print itself.
Reimplemented in RooCmdArg, TPad, TVirtualPad, RooLinkedList, RooStats::HistFactory::EstimateSummary, TObjString, TParameter< AParamType >, TParameter< Long64_t >, TRootBrowserHistoryCursor, TRolke, TAlienJobStatus, TAlienMasterJob, TAlienMasterJobStatus, TGridCollection, TPacketizer::TFileNode, TBranchSTL, TGTextEdit, TStreamerInfoActions::TActionSequence, TStatistic, TProofPerfAnalysis::TWrkInfo, TProofPerfAnalysis::TWrkEntry, TMVA::TNeuron, TSQLFile, TXMLFile, TPacketizerAdaptive::TFileStat, TPacketizerAdaptive::TFileNode, TGraph, TGraph2D, TGraph2DErrors, TGraphAsymmErrors, TGraphBentErrors, TGraphErrors, TGraphMultiErrors, THStack, TMultiGraph, TBenchmark, TMatrixTBase< Element >, TMatrixTBase< AReal >, TMatrixTBase< Double_t >, TAlienCollection, TGeoDecayChannel, TPluginHandler, TPluginManager, TQSlot, TDecompBase, TDecompBK, TDecompChol, TDecompLU, TDecompQRH, TDecompSparse, TDecompSVD, TQpDataDens, TQpDataSparse, TDatabasePDG, TParticleClassPDG, TParticlePDG, TFTP, TAliEnFind, TProofDesc, TProofPerfAnalysis::TPackInfo, TProofPerfAnalysis::TWrkInfoFile, TProofPerfAnalysis::TFileInfo, TQueryResult, TPrincipal, TProofLog, TProofLogElem, TFoamCell, TFoamVect, TNetFile, TMVA::PDEFoamCell, TMVA::PDEFoamVect, TColor, TEnv, TFileCollection, TInetAddress, TMacro, TMessageHandler, TNamed, TStopwatch, TUri, TUrl, TBits, TClassTable, TCollection, THashTable, TObjectTable, TFunction, TGDMLMatrix, TGeoBranchArray, TGeoElement, TGeoIsotope, TGeoElementRN, TGeoBatemanSol, TGeoElementTable, TGeoMatrix, TGeoOpticalSurface, TGeoSkinSurface, TGeoBorderSurface, TGeoPhysicalNode, TGeoRegion, TGeoTessellated, TGeoVolume, TGeoVoxelFinder, TGeoOverlap, TGeoTrack, TBox, TEllipse, TLegend, TLegendEntry, TLine, TMarker, TPave, TPaveText, TPolyLine, TText, TEveTrans, ROOT::Experimental::REveTrans, THelix, TPolyLine3D, TPolyMarker3D, TXTRU, TGFont, TGFontPool, TGFrame, TGCompositeFrame, TGGC, TGGCPool, TGLayoutHints, TGFrameElement, TGMimeTypes, TGPicture, TGPicturePool, TGWindow, THbookTree, TF1, TFitResult, TFormula, TH1, THnBase, TPolyMarker, ROOT::v5::TFormula, TSpectrum, TSpectrum2, TSpectrum3, TFileCacheRead, TFileCacheWrite, TKey, TMapFile, TZIPFile, TZIPMember, TSQLStructure, TVectorT< Element >, TVectorT< Double_t >, TLorentzVector, TQuaternion, TVector2, TVector3, TQpVar, TAttParticle, TParticle, TPrimary, TAlienResult, TAlienResult, THostAuth, TMonaLisaWriter, TApplicationRemote, TNetFileStager, TSQLColumnInfo, TSQLTableInfo, TXNetFile, TXNetFileStager, TCondorSlave, TCondor, TDSet, TSlaveInfo, TProof, TProofLite, TProofOutputFile, TProofOutputList, TProofProgressStatus, TProofServ, TSlave, TSlaveLite, TProofBenchRunCPU, TProofBenchRunDataRead, TProofNodes, TSelEventGen, TPerfEvent, TStatus, TPacketizerFile::TIterObj, TMVA::Event, TMVA::OptionBase, TMVA::Option< T >, TBranch, TBranchClones, TBranchElement, TBranchObject, TBranchRef, TChain, TEventList, TTree, TTreeCache, TTreeCacheUnzip, TTreeIndex, TTreePerfStats, TParallelCoordVar, TProofBenchRun, TDirectory, TFile, TMemFile, RooStats::ModelConfig, TRootSecContext, TSecContext, TMultiDimFit, TParallelCoordRange, TFileInfo, TFileInfoMeta, TDSetElement, Roo1DTable, RooAbsArg, RooAbsBinning, RooAbsCollection, RooAbsData, RooAbsGenContext, RooAbsNumGenerator, RooCurve, RooCustomizer, RooEllipse, RooCatType, RooNameSet, RooFitResult, RooFormula, RooGenFitStudy, RooGrid, RooHist, RooMsgService, RooNumGenConfig, RooNumIntConfig, RooPlot, RooAbsDataStore, RooSharedProperties, and RooWorkspace.
Definition at line 622 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 TBuffer, TKey, TKeySQL, and TKeyXML.
Definition at line 634 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 PyROOT::TMemoryRegulator, THistPainter, TFolder, TProcessID, TROOT, TCollection, THashList, TList, TObjArray, TBrowser, TObjectSpy, TObjectRefSpy, TListOfDataMembers, TListOfFunctions, TListOfFunctionTemplates, ROOT::Internal::TCheckHashRecursiveRemoveConsistency, TViewPubDataMembers, TViewPubFunctions, TCling, TDialogCanvas, TInspectCanvas, TLegend, TGeometry, TNode, TFitEditor, TGedEditor, TH1Editor, TH2Editor, TGFileBrowser, TRootContextMenu, TRootBrowserHistory, TGraph, TH1, THStack, TMultiGraph, TFileMerger, RooAbsCollection, RooAbsData, RooLinkedList, RooMCStudy, RooWorkspace, TChain, TFriendElement, TTree, TTreePlayer, TDirectory, TListOfEnums, TListOfEnumsWithLock, TPad, TRootBrowser, TRootBrowserLite, and TVirtualPad.
Definition at line 644 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 TSpline, TGeoVolume, TSpline3, TSpline5, TFolder, TClassTree, TPaveClass, TGObject, TTreePerfStats, TPad, and TVirtualPad.
Definition at line 671 of file TObject.cxx.
Save a primitive as a C++ statement(s) on output stream "out".
Reimplemented in TGeoTessellated, TGraphEdge, TGraphNode, TGeoIdentity, TStyle, TCurlyArc, TCurlyLine, TGedMarkerSelect, TGedPatternSelect, TGColorSelect, TGFont, TGVerticalLayout, TGHorizontalLayout, TGRowLayout, TGColumnLayout, TGMatrixLayout, TGTileLayout, TGListLayout, TGListDetailsLayout, TGTextLBEntry, TGNumberEntryField, TGNumberEntry, TGTableLayoutHints, TGTableLayout, TGTextEdit, TGTextView, TGXYLayoutHints, TGXYLayout, TRootContainer, TGHtml, TEfficiency, TExec, TMacro, TGeoArb8, TGeoTrap, TGeoGtra, TGeoBBox, TGeoCompositeShape, TGeoCone, TGeoConeSeg, TGeoElementRN, TGeoDecayChannel, TGeoEltu, TGeoHalfSpace, TGeoHype, TGeoMaterial, TGeoMixture, TGeoTranslation, TGeoRotation, TGeoCombiTrans, TGeoHMatrix, TGeoMedium, TGeoPara, TGeoParaboloid, TGeoPatternX, TGeoPatternY, TGeoPatternZ, TGeoPatternParaX, TGeoPatternParaY, TGeoPatternParaZ, TGeoPatternTrapZ, TGeoPatternCylR, TGeoPatternCylPhi, TGeoPatternSphR, TGeoPatternSphTheta, TGeoPatternSphPhi, TGeoPcon, TGeoPgon, TGeoScaledShape, TGeoShapeAssembly, TGeoSphere, TGeoTorus, TGeoTrd1, TGeoTrd2, TGeoTube, TGeoTubeSeg, TGeoCtub, TGeoVolume, TGeoXtru, TASImage, TButton, TGroupButton, TPaveClass, TSlider, TSliderBox, TArc, TArrow, TBox, TCrown, TCutG, TDiamond, TEllipse, TFrame, TGaxis, TLatex, TLegend, TLine, TMarker, TMathText, TPave, TPaveLabel, TPaveStats, TPavesText, TPaveText, TPolyLine, TText, TWbox, TGraphStruct, TAxis3D, THelix, TMarker3DBox, TPolyLine3D, TPolyMarker3D, TGHorizontal3DLine, TGVertical3DLine, TGButton, TGTextButton, TGPictureButton, TGCheckButton, TGRadioButton, TGButtonGroup, TGVButtonGroup, TGHButtonGroup, TGContainer, TGCanvas, TGComboBox, TGLineStyleComboBox, TGLineWidthComboBox, TGDockableFrame, TGDoubleVSlider, TGDoubleHSlider, TGFrame, TGCompositeFrame, TGVerticalFrame, TGHorizontalFrame, TGMainFrame, TGTransientFrame, TGGroupFrame, TGFSComboBox, TGFileContainer, TGGC, TGIcon, TGLabel, TGLayoutHints, TGListBox, TGListTree, TGListView, TGLVContainer, TGMdiFrame, TGMdiMainFrame, TGMdiMenuBar, TGPopupMenu, TGMenuTitle, TGMenuBar, TGProgressBar, TGHProgressBar, TGVProgressBar, TGHScrollBar, TGVScrollBar, TGShapedFrame, TGShutterItem, TGShutter, TGVSlider, TGHSlider, TGSplitFrame, TGVSplitter, TGHSplitter, TGVFileSplitter, TGStatusBar, TGTabLayout, TGTab, TGTextEntry, TGToolBar, TGTripleVSlider, TGTripleHSlider, TRootEmbeddedCanvas, TF1, TF12, TF2, TF3, TGraph, TGraph2D, TGraphAsymmErrors, TGraphBentErrors, TGraphErrors, TGraphMultiErrors, TH1, TH1K, TH2Poly, THStack, TMultiGraph, TPolyMarker, TProfile, TProfile2D, TProfile3D, TSpline3, TSpline5, TPaletteAxis, TChain, TTreePerfStats, TGeoBoolNode, TGeoUnion, TGeoIntersection, TGeoSubtraction, TCanvas, TPad, TParallelCoord, TParallelCoordVar, TPie, and TPieSlice.
Definition at line 736 of file TObject.cxx.
Set or unset the user status bits as specified in f.
Definition at line 766 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 TSystemDirectory, TSystemFile, TGFrame, TAxis, TBrowser, TGedFrame, RooPlot, TPad, and TRootBrowserLite.
Definition at line 749 of file TObject.cxx.
Set destructor only flag.
Definition at line 1060 of file TObject.cxx.
Turn on/off tracking of objects in the TObjectTable.
Definition at line 1044 of file TObject.cxx.
Set the unique object id.
Definition at line 777 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 977 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 TFrame, TPaveStats, TPaveText, TAxis3D, TGraph, TH1, TTree, TCanvas, and TPad.
Definition at line 787 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 949 of file TObject.cxx.
Write this object to the current directory.
For more see the const version of this method.
Reimplemented in TSQLFile, TXMLFile, TDirectory, TBuffer, TParallelMergingFile, TCollection, TMap, TTree, TFile, ROOT::TBufferMergerFile, and TDirectoryFile.
Definition at line 868 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. NOTE: Neither kOverwrite nor kWriteDelete reduces the size of a TFile– the space is simply freed up to be overwritten; in the case of a TTree, it is more complicated. If one opens a TTree, appends some entries, then writes it out, the behaviour is effectively the same. If, however, one creates a new TTree and writes it out in this way, only the metadata is replaced, effectively making the old data invisible without deleting it. TTree::Delete() can be used to mark all disk space occupied by a TTree as free before overwriting its metadata this way. 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 TSQLFile, TXMLFile, TDirectory, TBuffer, TParallelMergingFile, TCollection, TMap, TTree, TFile, and TDirectoryFile.
Definition at line 844 of file TObject.cxx.
|
friend |
|
friend |
|
staticprivate |
if true keep track of objects in TObjectTable