/*****************************************************************************
 * Project: RooFit                                                           *
 * Package: RooFitCore                                                       *
 * @(#)root/roofitcore:$Name:  $:$Id: RooExtendedTerm.cxx 20879 2007-11-19 11:22:56Z rdm $
 * 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)             *
 *****************************************************************************/

// -- CLASS DESCRIPTION [PDF] --
//  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.

#include "RooFit.h"
#include "RooExtendedTerm.h"

ClassImp(RooExtendedTerm)
;


RooExtendedTerm::RooExtendedTerm()
{
}

RooExtendedTerm::RooExtendedTerm(const char *name, const char *title, const RooAbsReal& n) :
  RooAbsPdf(name,title),
  _n("n","Nexpected",this,(RooAbsReal&)n)
{
  // Constructor. The 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 _n ;
}




Last update: Thu Jan 17 08:44:40 2008

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.