ROOT
6.30.04
Reference Guide
All
Namespaces
Files
Pages
RooAbsProxy.h
Go to the documentation of this file.
1
/*****************************************************************************
2
* Project: RooFit *
3
* Package: RooFitCore *
4
* File: $Id: RooAbsProxy.h,v 1.15 2007/07/12 20:30:28 wouter 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_ABS_PROXY
17
#define ROO_ABS_PROXY
18
19
#include "
TObject.h
"
20
#include "
RooAbsArg.h
"
21
22
#ifdef _WIN32
23
// Turn off 'warning C4355: 'this' : used in base member initializer list'
24
//
25
// This message will pop up for any class that initializes member proxy objects
26
// Including the pragma here will automatically disable that warning message
27
// for all such cases
28
#pragma warning ( disable:4355 )
29
#endif
30
31
class
RooAbsProxy {
32
public
:
33
34
// Constructors, assignment etc.
35
RooAbsProxy() ;
36
RooAbsProxy(
const
char
* name,
const
RooAbsProxy& other) ;
37
virtual
~RooAbsProxy() {
38
// Destructor
39
} ;
40
41
virtual
const
char
* name()
const
{
42
// Return name of proxy
43
return
"dummy"
;
44
} ;
45
46
inline
const
RooArgSet* nset()
const
{
47
// Return normalization set to be used for evaluation of contents
48
return
_nset ;
49
}
50
virtual
void
print(std::ostream& os, Bool_t addContents=kFALSE)
const
;
51
52
protected
:
53
54
RooArgSet* _nset ;
//! Normalization set to be used for evaluation of RooAbsPdf contents
55
56
friend
class
RooAbsArg ;
57
friend
class
RooObjectFactory ;
58
virtual
Bool_t changePointer(
const
RooAbsCollection& newServerSet, Bool_t nameChange=kFALSE, Bool_t factoryInitMode=kFALSE) = 0 ;
59
60
friend
class
RooAbsPdf ;
61
virtual
void
changeNormSet(
const
RooArgSet* newNormSet) ;
62
63
ClassDef(RooAbsProxy,1)
// Abstract proxy interface
64
} ;
65
66
#endif
67
TObject.h
RooAbsArg.h
roofit
roofitcore
inc
RooAbsProxy.h
Generated on Tue May 5 2020 14:03:20 for ROOT by
1.8.5