00001 /***************************************************************************** 00002 * Project: RooFit * 00003 * Package: RooFitCore * 00004 * @(#)root/roofitcore:$Id: RooInvTransform.cxx 24278 2008-06-15 15:21:16Z 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 // Lightweight function binding that returns the inverse of an input function binding 00021 // Apply the change of variables transformation x -> 1/x to the input 00022 // function and its range. The function must be one dimensional and its 00023 // range cannot include zero. 00024 // END_HTML 00025 // 00026 00027 00028 #include "RooFit.h" 00029 00030 #include "RooInvTransform.h" 00031 #include "RooInvTransform.h" 00032 00033 #include "Riostream.h" 00034 #include <math.h> 00035 00036 ClassImp(RooInvTransform) 00037 ; 00038 00039 00040 //_____________________________________________________________________________ 00041 RooInvTransform::RooInvTransform(const RooAbsFunc &func) : 00042 RooAbsFunc(func.getDimension()), _func(&func) 00043 { 00044 // Constructor. 00045 00046 }