rarBallack.cc

Go to the documentation of this file.
00001 /*****************************************************************************
00002 * Project: BaBar detector at the SLAC PEP-II B-factory
00003 * Package: RooRarFit
00004  *    File: $Id: rarBallack.cc,v 1.4 2011/06/16 13:18:49 fwilson Exp $
00005  * Authors: Karsten Koeneke, Lei Zhang
00006  * History:
00007  * 
00008  * Copyright (C) 2005-2012, Massachusetts Institute of Technology, Cambridge
00009  *  and          2005 University of California, Riverside
00010  *****************************************************************************/
00011 
00012 // -- CLASS DESCRIPTION [RooRarFit] --
00013 // This class provides Ballack Pdf class for RooRarFit
00014 // It is a Novosibirsk core with a polynomial attached
00016 //
00017 // BEGIN_HTML
00018 // This class provides Ballack Pdf class for RooRarFit
00019 // It is a Novosibirsk core with a polynomial attached
00020 // END_HTML
00021 //
00022 
00023 #include "RooRarFit/rarVersion.hh"
00024 
00025 #include "Riostream.h"
00026 
00027 #include "RooFitCore/RooArgList.hh"
00028 #include "RooFitCore/RooDataSet.hh"
00029 #include "RooFitCore/RooProdPdf.hh"
00030 #include "RooFitCore/RooRealVar.hh"
00031 #include "RooFitCore/RooStringVar.hh"
00032 
00033 #include "RooRarFit/RooBallack.hh"
00034 
00035 #include "RooRarFit/rarBallack.hh"
00036 
00037 ClassImp(rarBallack)
00038   ;
00039 
00043 rarBallack::rarBallack()
00044   : rarBasePdf(),
00045     _x(0), _mean(0), _width(0), _tail(0), _alpha(0), _n(0)
00046 {
00047   init();
00048 }
00049 
00062 rarBallack::rarBallack(const char *configFile, const char *configSec,
00063                        const char *configStr,
00064                        rarDatasets *theDatasets, RooDataSet *theData,
00065                        const char *name, const char *title)
00066   : rarBasePdf(configFile, configSec, configStr,
00067                theDatasets, theData, name, title),
00068     _x(0), _mean(0), _width(0), _tail(0), _alpha(0), _n(0)
00069 {
00070   init();
00071 }
00072 
00073 rarBallack::~rarBallack()
00074 {
00075 }
00076 
00082 void rarBallack::init()
00083 {
00084   cout<<"init of rarBallack for "<<GetName()<<":"<<endl;
00085   
00086   // first get its obs
00087   _x=createAbsReal("x", "observable"); assert(_x);
00088   // Config pdf params
00089   _mean=createAbsReal("mean", "mean", 0, -10, 10);
00090   _width=createAbsReal("width", "width", 0, -10, 10);
00091   _tail=createAbsReal("tail", "tail", 0, -10, 10);
00092   _alpha=createAbsReal("alpha", "alpha", 0, -10, 10);
00093   _n=createAbsReal("n", "n", 0, -10, 10);
00094   _params.Print("v");
00095   
00096   // create pdf
00097   _thePdf=new RooBallack(Form("the_%s", GetName()),_pdfType+" "+GetTitle(),
00098                          *_x, *_mean, *_width, *_tail, *_alpha, *_n);
00099 }

Generated on 30 Oct 2013 for RooRarFit by  doxygen 1.4.7