• Main Page
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

BCRooInterface.h

Go to the documentation of this file.
00001 #ifndef __BCROOINTERFACE__H
00002 #define __BCROOINTERFACE__H
00003 
00004 #include <BAT/BCModel.h>
00005 
00006 class RooAbsReal;
00007 class RooAbsData;
00008 class RooAbsPdf;
00009 class RooArgSet;
00010 class RooArgList;
00011 
00012 /* ---------------------------------------------------------
00013  * interface allowing to run BAT on a problem/data defined in a
00014  * standard RooFit workspace format
00015  * --------------------------------------------------------- */
00016 
00017 class BCRooInterface : public BCModel
00018 {
00019 
00020    public:
00021 
00022       // Constructors and destructor
00023       BCRooInterface( );
00024 
00025       BCRooInterface( const char* name );
00026 
00027       ~BCRooInterface();
00028 
00029       // Overloaded methods
00030       void DefineParameters();
00031       double LogAPrioriProbability(std::vector <double> parameters);
00032       double LogLikelihood(std::vector <double> parameters);
00033 
00034       // Other method of this class
00035       void Initialize( RooAbsData& data,
00036              RooAbsPdf& model,
00037              RooAbsPdf& prior,
00038              const RooArgSet* params,
00039              const RooArgSet& listPOI );
00040 
00041       void Initialize( const char* rootFile,
00042             const char* wsName = "batWS",
00043             const char* dataName = "data",
00044             const char* modelName = "model",
00045             const char* priorName = "priorPOI",
00046             const char* priorNuisanceName= "priorNuisance",
00047             const char* paramsName = "parameters",
00048             const char* listPOIName = "POI" );
00049 
00050    private:
00051 
00052       RooAbsData* fData;        // data to test
00053       RooAbsPdf*  fModel;       // likelihood model describing the observables
00054       RooAbsReal*  fNll;         // pointer to negative log-likelihood function
00055       RooArgSet*  fObservables; // list of observables measured for each event
00056       RooArgList* fParams;      // list of parameters of interest
00057       RooAbsPdf*  fPrior;       // function describing the prior probability of the parameters
00058 
00059 };
00060 
00061 #endif

Generated on Mon Aug 30 2010 22:14:54 for Bayesian Analysis Toolkit by  doxygen 1.7.1