53 SetName(
"DefaultMessageHandler");
84 if (
fSize <= 0)
return;
95 gROOT->GetListOfMessageHandlers()->Add(
this);
109 if (
fSize <= 0)
return 0;
121 if (
fSize <= 0)
return 0;
139 if (obj->IsA() !=
fClass)
return;
157 for (i = 0; i <
fSize; i++) {
167 for (i = 0; i < fSize-1; i++) {
168 newCnts[i] =
fCnts[i];
202 if (
fSize <= 0)
return;
218 if (!cl) cl =
gROOT->IsA();
237 gROOT->GetListOfMessageHandlers()->Remove(
this);
ClassImp(TMessageHandler) TMessageHandler
Create a new message handler for class cl and add it to the list of message handlers.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
ClassImp(TSeqCollection) Int_t TSeqCollection TIter next(this)
Return index of object in collection.
virtual Int_t GetTotalMessageCount() const
Return total number of messages.
TMatrixT< Element > & Add(TMatrixT< Element > &target, Element scalar, const TMatrixT< Element > &source)
Modify addition: target += scalar * source.
Handle messages that might be generated by the system.
virtual void Add()
Add this message handler to the list of messages handlers.
virtual void HandleMessage(Int_t id, const TObject *obj)
Store message origin, keep statistics and call Notify().
virtual void SetName(const char *name)
Change (i.e.
R__EXTERN TVirtualMutex * gROOTMutex
UChar_t mod R__LOCKGUARD2(gSrvAuthenticateMutex)
TClass * fClass
pointer to the foreign object
virtual Bool_t Notify()
This method must be overridden to handle object notification.
virtual const char * GetName() const
Returns name of object.
The ROOT global object gROOT contains a list of all defined classes.
virtual void Print(Option_t *option="") const
Print statistics for this message handler.
virtual Int_t GetMessageCount(Int_t messId) const
Return counter for message with ID=messid.
virtual ~TMessageHandler()
Clean up the message handler.
ClassImp(TMCParticle) void TMCParticle printf(": p=(%7.3f,%7.3f,%9.3f) ;", fPx, fPy, fPz)
static TClass * GetClass(const char *name, Bool_t load=kTRUE, Bool_t silent=kFALSE)
Static method returning pointer to TClass of the specified class name.
virtual UInt_t GetUniqueID() const
Return the unique object id.
virtual void Remove()
Remove this message handler from the list of messages handlers.
Mother of all ROOT objects.
TMessageHandler(const TClass *cl, Bool_t derived=kTRUE)