/***************************************************************************** * 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] -- // This is the RooFit class written by Shirit Cohen for a sensitivity study of the LHCb experiment // This class is used to make the acceptance function simulating the acceptance of data from the detector. #include "RooTest.h" // ClassImp(RooTest) RooTest::RooTest(const char *name, const char *title, RooAbsReal& _test) : RooAbsPdf(name,title), test("test","Proper time",this,_test) { double test2 = test-0.5; if(test2) test2+=1; } RooTest::RooTest(const RooTest& other, const char* name) : RooAbsPdf(other,name), test("test","Proper time", this,other.test) { } Double_t RooTest::evaluate() const { return (test-0.5); }