ROOT logo
/*****************************************************************************
 * Project: RooFit                                                           *
 * Package: RooFitCore                                                       *
 *    File: $Id: RooTrace.h,v 1.16 2007/05/11 09:11:30 verkerke Exp $
 * Authors:                                                                  *
 *   WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu       *
 *   DK, David Kirkby,    UC Irvine,         dkirkby@uci.edu                 *
 *                                                                           *
 * Copyright (c) 2000-2005, Regents of the University of California          *
 *                          and Stanford University. All rights reserved.    *
 *                                                                           *
 * Redistribution and use in source and binary forms,                        *
 * with or without modification, are permitted according to the terms        *
 * listed in LICENSE (http://roofit.sourceforge.net/license.txt)             *
 *****************************************************************************/
#ifndef ROO_TRACE
#define ROO_TRACE

#include <assert.h>
#include "Riosfwd.h"
#include "RooLinkedList.h"

class RooTrace {
public:

  virtual ~RooTrace() {} ;

  static void create(const TObject* obj) ;
  static void destroy(const TObject* obj) ;
  
  static void active(Bool_t flag) ;
  static void verbose(Bool_t flag) ;

  static void dump() ;
  static void dump(ostream& os, Bool_t sinceMarked=kFALSE) ;
  static void mark() ;

protected:

  static void create2(const TObject* obj) ;
  static void destroy2(const TObject* obj) ;

  void addPad(const TObject* ref, Bool_t doPad) ;
  Bool_t removePad(const TObject* ref) ;

  static Bool_t _active ;
  static Bool_t _verbose ;
  
  static RooLinkedList _list ;
  static RooLinkedList _markList ;

  ClassDef(RooTrace,0) // Memory tracer utility for RooFit objects
};


#endif
 RooTrace.h:1
 RooTrace.h:2
 RooTrace.h:3
 RooTrace.h:4
 RooTrace.h:5
 RooTrace.h:6
 RooTrace.h:7
 RooTrace.h:8
 RooTrace.h:9
 RooTrace.h:10
 RooTrace.h:11
 RooTrace.h:12
 RooTrace.h:13
 RooTrace.h:14
 RooTrace.h:15
 RooTrace.h:16
 RooTrace.h:17
 RooTrace.h:18
 RooTrace.h:19
 RooTrace.h:20
 RooTrace.h:21
 RooTrace.h:22
 RooTrace.h:23
 RooTrace.h:24
 RooTrace.h:25
 RooTrace.h:26
 RooTrace.h:27
 RooTrace.h:28
 RooTrace.h:29
 RooTrace.h:30
 RooTrace.h:31
 RooTrace.h:32
 RooTrace.h:33
 RooTrace.h:34
 RooTrace.h:35
 RooTrace.h:36
 RooTrace.h:37
 RooTrace.h:38
 RooTrace.h:39
 RooTrace.h:40
 RooTrace.h:41
 RooTrace.h:42
 RooTrace.h:43
 RooTrace.h:44
 RooTrace.h:45
 RooTrace.h:46
 RooTrace.h:47
 RooTrace.h:48
 RooTrace.h:49
 RooTrace.h:50
 RooTrace.h:51
 RooTrace.h:52
 RooTrace.h:53
 RooTrace.h:54
 RooTrace.h:55
 RooTrace.h:56