/***************************************************************************** * Project: RooFit * * Package: RooFitCore * * @(#)root/roofitcore:$Name: $:$Id: RooExtendedTerm.cxx 24269 2008-06-13 15:37:03Z wouter $ * Authors: * * WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu * * DK, David Kirkby, UC Irvine, dkirkby@uci.edu * * * * Copyright (c) 2000-2005, Regents of the University of California * * and Stanford University. All rights reserved. * * * * Redistribution and use in source and binary forms, * * with or without modification, are permitted according to the terms * * listed in LICENSE (http://roofit.sourceforge.net/license.txt) * *****************************************************************************/ ////////////////////////////////////////////////////////////////////////////// // // BEGIN_HTML // RooExtendedTerm is a p.d.f with no observables that only introduces // an extended ML term for a given number of expected events term when an extended ML // is constructed. // END_HTML // #include "RooFit.h" #include "RooExtendedTerm.h" ClassImp(RooExtendedTerm) ; //_____________________________________________________________________________ RooExtendedTerm::RooExtendedTerm() { // Constructor } //_____________________________________________________________________________ RooExtendedTerm::RooExtendedTerm(const char *name, const char *title, const RooAbsReal& n) : RooAbsPdf(name,title), _n("n","Nexpected",this,(RooAbsReal&)n) { // Constructor. An ExtendedTerm has no observables, it only introduces an extended // ML term with the given number of expected events when an extended ML is constructed // from this p.d.f. } //_____________________________________________________________________________ RooExtendedTerm::RooExtendedTerm(const RooExtendedTerm& other, const char* name) : RooAbsPdf(other,name), _n("n",this,other._n) { // Copy constructor } //_____________________________________________________________________________ RooExtendedTerm::~RooExtendedTerm() { // Destructor } //_____________________________________________________________________________ Double_t RooExtendedTerm::expectedEvents(const RooArgSet* /*nset*/) const { // Return number of expected events from associated event count variable return _n ; }