Logo ROOT  
Reference Guide
HistRef.cxx
Go to the documentation of this file.
1// @(#)root/roostats:$Id$
2// Author: L. Moneta
3/*************************************************************************
4 * Copyright (C) 1995-2008, Rene Brun and Fons Rademakers. *
5 * All rights reserved. *
6 * *
7 * For the licensing terms see $ROOTSYS/LICENSE. *
8 * For the list of contributors see $ROOTSYS/README/CREDITS. *
9 *************************************************************************/
10
11/** \class RooStats::HistFactory::HistRef
12 * \ingroup HistFactory
13 * Internal class wrapping an histogram and managing its content.
14 * convenient for dealing with histogram pointers in the
15 * HistFactory class
16 */
17
18#include "TH1.h"
20
21namespace RooStats{
22namespace HistFactory {
23
25 // implementation of method copying the contained pointer
26 // (just use Clone)
27 if (!h) return 0;
28 return static_cast<TH1*>(h->Clone());
29 }
30}
31}
32
33
#define h(i)
Definition: RSha256.hxx:106
static TH1 * CopyObject(const TH1 *h)
Definition: HistRef.cxx:24
The TH1 histogram class.
Definition: TH1.h:56
@ HistFactory
Definition: RooGlobalFunc.h:69
Namespace for the RooStats classes.
Definition: Asimov.h:19