ROOT
6.07/01
Reference Guide
ROOT Home Page
Main Page
Tutorials
User's Classes
Namespaces
All Classes
Files
Release Notes
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
roofit
histfactory
src
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
12
#include "
TH1.h
"
13
#include "
RooStats/HistFactory/HistRef.h
"
14
15
namespace
RooStats{
16
namespace
HistFactory {
17
18
TH1
*
HistRef::CopyObject
(
TH1
*
h
) {
19
// implementation of method copying the contained pointer
20
// (just use Clone)
21
if
(!h)
return
0;
22
return
(
TH1
*) h->
Clone
();
23
}
24
25
void
HistRef::DeleteObject
(
TH1
*
h
) {
26
if
(h)
delete
h
;
27
}
28
29
}
30
}
31
32
h
TH1 * h
Definition:
legend2.C:5
TH1::Clone
TObject * Clone(const char *newname=0) const
Make a complete copy of the underlying object.
Definition:
TH1.cxx:2565
HistRef.h
RooStats::HistFactory::HistRef::CopyObject
static TH1 * CopyObject(TH1 *h)
Definition:
HistRef.cxx:18
TH1
The TH1 histogram class.
Definition:
TH1.h:80
TH1.h
RooStats::HistFactory::HistRef::DeleteObject
static void DeleteObject(TH1 *h)
Definition:
HistRef.cxx:25