00001 /***************************************************************************** 00002 * Project: RooFit * 00003 * Package: RooFitCore * 00004 * @(#)root/roofitcore:$Name: $:$Id: RooExtendedTerm.cxx 24269 2008-06-13 15:37:03Z wouter $ 00005 * Authors: * 00006 * WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu * 00007 * DK, David Kirkby, UC Irvine, dkirkby@uci.edu * 00008 * * 00009 * Copyright (c) 2000-2005, Regents of the University of California * 00010 * and Stanford University. All rights reserved. * 00011 * * 00012 * Redistribution and use in source and binary forms, * 00013 * with or without modification, are permitted according to the terms * 00014 * listed in LICENSE (http://roofit.sourceforge.net/license.txt) * 00015 *****************************************************************************/ 00016 00017 ////////////////////////////////////////////////////////////////////////////// 00018 // 00019 // BEGIN_HTML 00020 // RooExtendedTerm is a p.d.f with no observables that only introduces 00021 // an extended ML term for a given number of expected events term when an extended ML 00022 // is constructed. 00023 // END_HTML 00024 // 00025 00026 #include "RooFit.h" 00027 #include "RooExtendedTerm.h" 00028 00029 ClassImp(RooExtendedTerm) 00030 ; 00031 00032 00033 //_____________________________________________________________________________ 00034 RooExtendedTerm::RooExtendedTerm() 00035 { 00036 // Constructor 00037 } 00038 00039 00040 00041 //_____________________________________________________________________________ 00042 RooExtendedTerm::RooExtendedTerm(const char *name, const char *title, const RooAbsReal& n) : 00043 RooAbsPdf(name,title), 00044 _n("n","Nexpected",this,(RooAbsReal&)n) 00045 { 00046 // Constructor. An ExtendedTerm has no observables, it only introduces an extended 00047 // ML term with the given number of expected events when an extended ML is constructed 00048 // from this p.d.f. 00049 } 00050 00051 00052 00053 //_____________________________________________________________________________ 00054 RooExtendedTerm::RooExtendedTerm(const RooExtendedTerm& other, const char* name) : 00055 RooAbsPdf(other,name), 00056 _n("n",this,other._n) 00057 { 00058 // Copy constructor 00059 } 00060 00061 00062 00063 //_____________________________________________________________________________ 00064 RooExtendedTerm::~RooExtendedTerm() 00065 { 00066 // Destructor 00067 00068 } 00069 00070 00071 //_____________________________________________________________________________ 00072 Double_t RooExtendedTerm::expectedEvents(const RooArgSet* /*nset*/) const 00073 { 00074 // Return number of expected events from associated event count variable 00075 return _n ; 00076 } 00077 00078 00079