Logo ROOT  
Reference Guide
RooDirItem.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Project: RooFit *
3 * Package: RooFitCore *
4 * File: $Id: RooDirItem.h,v 1.6 2007/05/11 09:11:30 verkerke Exp $
5 * Authors: *
6 * WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu *
7 * DK, David Kirkby, UC Irvine, dkirkby@uci.edu *
8 * *
9 * Copyright (c) 2000-2005, Regents of the University of California *
10 * and Stanford University. All rights reserved. *
11 * *
12 * Redistribution and use in source and binary forms, *
13 * with or without modification, are permitted according to the terms *
14 * listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
15 *****************************************************************************/
16#ifndef ROO_DIR_ITEM
17#define ROO_DIR_ITEM
18
19#include "Rtypes.h"
20class TDirectory ;
21
23public:
26 virtual ~RooDirItem() { }
27
28protected:
29
30 void appendToDir(TObject* obj, Bool_t forceMemoryResident=kFALSE) ;
31 void removeFromDir(TObject* obj) ;
32
33 TDirectory* _dir{nullptr}; //! Associated directory
34 ClassDef(RooDirItem,1) // Base class for RooFit objects that are listed TDirectories
35};
36
37#endif
const Bool_t kFALSE
Definition: RtypesCore.h:90
bool Bool_t
Definition: RtypesCore.h:61
#define ClassDef(name, id)
Definition: Rtypes.h:322
RooDirItem is a utility base class for RooFit objects that are to be attached to ROOT directories.
Definition: RooDirItem.h:22
void appendToDir(TObject *obj, Bool_t forceMemoryResident=kFALSE)
Append object to directory.
Definition: RooDirItem.cxx:57
virtual ~RooDirItem()
Definition: RooDirItem.h:26
void removeFromDir(TObject *obj)
Remove object from directory it was added to.
Definition: RooDirItem.cxx:44
TDirectory * _dir
Definition: RooDirItem.h:33
RooDirItem(const RooDirItem &)
Definition: RooDirItem.h:25
Describe directory structure in memory.
Definition: TDirectory.h:40
Mother of all ROOT objects.
Definition: TObject.h:37