ROOT  6.06/09
Reference Guide
RooExtendedTerm.cxx
Go to the documentation of this file.
1 /*****************************************************************************
2  * Project: RooFit *
3  * Package: RooFitCore *
4  * @(#)root/roofitcore:$Name: $:$Id$
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 
17 //////////////////////////////////////////////////////////////////////////////
18 //
19 // BEGIN_HTML
20 // RooExtendedTerm is a p.d.f with no observables that only introduces
21 // an extended ML term for a given number of expected events term when an extended ML
22 // is constructed.
23 // END_HTML
24 //
25 
26 #include "RooFit.h"
27 #include "RooExtendedTerm.h"
28 
29 using namespace std;
30 
32 ;
33 
34 
35 ////////////////////////////////////////////////////////////////////////////////
36 /// Constructor
37 
39 {
40 }
41 
42 
43 
44 ////////////////////////////////////////////////////////////////////////////////
45 /// Constructor. An ExtendedTerm has no observables, it only introduces an extended
46 /// ML term with the given number of expected events when an extended ML is constructed
47 /// from this p.d.f.
48 
49 RooExtendedTerm::RooExtendedTerm(const char *name, const char *title, const RooAbsReal& n) :
50  RooAbsPdf(name,title),
51  _n("n","Nexpected",this,(RooAbsReal&)n)
52 {
53 }
54 
55 
56 
57 ////////////////////////////////////////////////////////////////////////////////
58 /// Copy constructor
59 
61  RooAbsPdf(other,name),
62  _n("n",this,other._n)
63 {
64 }
65 
66 
67 
68 ////////////////////////////////////////////////////////////////////////////////
69 /// Destructor
70 
72 {
73 }
74 
75 
76 ////////////////////////////////////////////////////////////////////////////////
77 /// Return number of expected events from associated event count variable
78 
80 {
81  return _n ;
82 }
83 
84 
85 
STL namespace.
virtual ~RooExtendedTerm()
Destructor.
RooExtendedTerm()
Constructor.
ClassImp(RooExtendedTerm)
double Double_t
Definition: RtypesCore.h:55
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Definition: RooAbsReal.h:53
#define name(a, b)
Definition: linkTestLib0.cpp:5
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
Definition: RooAbsPdf.h:41
virtual Double_t expectedEvents(const RooArgSet *nset) const
Return number of expected events from associated event count variable.
const Int_t n
Definition: legend1.C:16
RooRealProxy _n