Logo ROOT  
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\file RooExtendedTerm.cxx
19\class RooExtendedTerm
20\ingroup Roofitcore
21
22RooExtendedTerm is a p.d.f with no observables that only introduces
23an extended ML term for a given number of expected events term when an extended ML
24is constructed.
25**/
26
27#include "RooExtendedTerm.h"
28
29using 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
49RooExtendedTerm::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
#define ClassImp(name)
Definition: Rtypes.h:375
char name[80]
Definition: TGX11.cxx:110
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Definition: RooAbsReal.h:63
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition: RooArgSet.h:57
RooExtendedTerm is a p.d.f with no observables that only introduces an extended ML term for a given n...
Double_t expectedEvents(const RooArgSet *nset) const override
Return number of expected events, in other words the value of the associated n parameter.
RooRealProxy _n
Number of expected events.
RooExtendedTerm()
Constructor.
~RooExtendedTerm() override
Destructor.
const Int_t n
Definition: legend1.C:16