/***************************************************************************** * Project: RooFit * * * * 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] -- // Your description goes here... #include "Riostream.h" #include "RooMyPdf.h" #include "RooAbsReal.h" #include "RooAbsCategory.h" ClassImp(RooMyPdf) RooMyPdf::RooMyPdf(const char *name, const char *title, RooAbsReal& _x, RooAbsReal& _alpha) : RooAbsPdf(name,title), x("x","x",this,_x), alpha("alpha","alpha",this,_alpha) { } RooMyPdf::RooMyPdf(const RooMyPdf& other, const char* name) : RooAbsPdf(other,name), x("x",this,other.x), alpha("alpha",this,other.alpha) { } Double_t RooMyPdf::evaluate() const { // ENTER EXPRESSION IN TERMS OF VARIABLE ARGUMENTS HERE return x == 0 ? 1 : pow(sin(-alpha*x)/x,2); }