ROOT logo
/*****************************************************************************
 * Project: RooFit                                                           *
 * Package: RooFitCore                                                       *
 *    File: $Id: RooGenFitStudy.h 30333 2009-09-21 15:39:17Z wouter $
 * Authors:                                                                  *
 *   WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu       *
 *   DK, David Kirkby,    UC Irvine,         dkirkby@uci.edu                 *
 *                                                                           *
 * 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)             *
 *****************************************************************************/
#ifndef ROO_GEN_FIT_STUDY
#define ROO_GEN_FIT_STUDY

#include "RooAbsStudy.h"

class RooAbsPdf;
class RooDataSet ;
class RooAbsData ;
class RooFitResult ;
class RooPlot ;
class RooRealVar ;
class RooWorkspace ;
class RooAbsGenContext ;

#include "RooArgSet.h"
#include "RooLinkedList.h"
#include "RooAbsPdf.h"


class RooGenFitStudy : public RooAbsStudy {
public:

  RooGenFitStudy(const char* name=0, const char* title=0) ;
  RooGenFitStudy(const RooGenFitStudy& other) ;
  virtual ~RooGenFitStudy() ;

  void setGenConfig(const char* pdfName, const char* obsName, const RooCmdArg& arg1=RooCmdArg(),const RooCmdArg& arg2=RooCmdArg(),const RooCmdArg& arg3=RooCmdArg()) ;
  void setFitConfig(const char* pdfName, const char* obsName, const RooCmdArg& arg1=RooCmdArg(),const RooCmdArg& arg2=RooCmdArg(),const RooCmdArg& arg3=RooCmdArg()) ;
 
  virtual Bool_t attach(RooWorkspace& w) ;
  virtual Bool_t initialize() ;
  virtual Bool_t execute() ;
  virtual Bool_t finalize() ;

  void Print(Option_t *options= 0) const;

 protected:


  std::string _genPdfName ;
  std::string _genObsName ;
  std::string _fitPdfName ;
  std::string _fitObsName ;
  RooLinkedList _genOpts ; 
  RooLinkedList _fitOpts ;

  RooAbsPdf* _genPdf ; //!
  RooArgSet _genObs ;  //!
  RooAbsPdf* _fitPdf ; //!
  RooArgSet _fitObs ; //!

  RooAbsPdf::GenSpec* _genSpec ; //!
  RooRealVar* _nllVar ; //!
  RooRealVar* _ngenVar ; //!
  RooArgSet* _params ; //!
  RooArgSet* _initParams; //!
  
  ClassDef(RooGenFitStudy,1) // Generate-and-Fit study module
} ;


#endif

 RooGenFitStudy.h:1
 RooGenFitStudy.h:2
 RooGenFitStudy.h:3
 RooGenFitStudy.h:4
 RooGenFitStudy.h:5
 RooGenFitStudy.h:6
 RooGenFitStudy.h:7
 RooGenFitStudy.h:8
 RooGenFitStudy.h:9
 RooGenFitStudy.h:10
 RooGenFitStudy.h:11
 RooGenFitStudy.h:12
 RooGenFitStudy.h:13
 RooGenFitStudy.h:14
 RooGenFitStudy.h:15
 RooGenFitStudy.h:16
 RooGenFitStudy.h:17
 RooGenFitStudy.h:18
 RooGenFitStudy.h:19
 RooGenFitStudy.h:20
 RooGenFitStudy.h:21
 RooGenFitStudy.h:22
 RooGenFitStudy.h:23
 RooGenFitStudy.h:24
 RooGenFitStudy.h:25
 RooGenFitStudy.h:26
 RooGenFitStudy.h:27
 RooGenFitStudy.h:28
 RooGenFitStudy.h:29
 RooGenFitStudy.h:30
 RooGenFitStudy.h:31
 RooGenFitStudy.h:32
 RooGenFitStudy.h:33
 RooGenFitStudy.h:34
 RooGenFitStudy.h:35
 RooGenFitStudy.h:36
 RooGenFitStudy.h:37
 RooGenFitStudy.h:38
 RooGenFitStudy.h:39
 RooGenFitStudy.h:40
 RooGenFitStudy.h:41
 RooGenFitStudy.h:42
 RooGenFitStudy.h:43
 RooGenFitStudy.h:44
 RooGenFitStudy.h:45
 RooGenFitStudy.h:46
 RooGenFitStudy.h:47
 RooGenFitStudy.h:48
 RooGenFitStudy.h:49
 RooGenFitStudy.h:50
 RooGenFitStudy.h:51
 RooGenFitStudy.h:52
 RooGenFitStudy.h:53
 RooGenFitStudy.h:54
 RooGenFitStudy.h:55
 RooGenFitStudy.h:56
 RooGenFitStudy.h:57
 RooGenFitStudy.h:58
 RooGenFitStudy.h:59
 RooGenFitStudy.h:60
 RooGenFitStudy.h:61
 RooGenFitStudy.h:62
 RooGenFitStudy.h:63
 RooGenFitStudy.h:64
 RooGenFitStudy.h:65
 RooGenFitStudy.h:66
 RooGenFitStudy.h:67
 RooGenFitStudy.h:68
 RooGenFitStudy.h:69
 RooGenFitStudy.h:70
 RooGenFitStudy.h:71
 RooGenFitStudy.h:72
 RooGenFitStudy.h:73
 RooGenFitStudy.h:74
 RooGenFitStudy.h:75
 RooGenFitStudy.h:76
 RooGenFitStudy.h:77
 RooGenFitStudy.h:78