Logo ROOT   6.16/01
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 "RooFit.h"
28#include "RooExtendedTerm.h"
29
30using namespace std;
31
33;
34
35
36////////////////////////////////////////////////////////////////////////////////
37/// Constructor
38
40{
41}
42
43
44
45////////////////////////////////////////////////////////////////////////////////
46/// Constructor. An ExtendedTerm has no observables, it only introduces an extended
47/// ML term with the given number of expected events when an extended ML is constructed
48/// from this p.d.f.
49
50RooExtendedTerm::RooExtendedTerm(const char *name, const char *title, const RooAbsReal& n) :
51 RooAbsPdf(name,title),
52 _n("n","Nexpected",this,(RooAbsReal&)n)
53{
54}
55
56
57
58////////////////////////////////////////////////////////////////////////////////
59/// Copy constructor
60
62 RooAbsPdf(other,name),
63 _n("n",this,other._n)
64{
65}
66
67
68
69////////////////////////////////////////////////////////////////////////////////
70/// Destructor
71
73{
74}
75
76
77////////////////////////////////////////////////////////////////////////////////
78/// Return number of expected events from associated event count variable
79
81{
82 return _n ;
83}
84
85
86
double Double_t
Definition: RtypesCore.h:55
#define ClassImp(name)
Definition: Rtypes.h:363
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
Definition: RooAbsPdf.h:41
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Definition: RooAbsReal.h:53
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition: RooArgSet.h:28
RooExtendedTerm is a p.d.f with no observables that only introduces an extended ML term for a given n...
virtual ~RooExtendedTerm()
Destructor.
RooRealProxy _n
RooExtendedTerm()
Constructor.
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
STL namespace.