ROOT logo
/*****************************************************************************
 * Project: RooFit                                                           *
 * Package: RooFitCore                                                       *
 *    File: $Id: RooAbsStudy.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_ABS_STUDY
#define ROO_ABS_STUDY

#include "TNamed.h"
#include "RooLinkedList.h"
#include "RooArgSet.h"

class RooAbsPdf;
class RooDataSet ;
class RooAbsData ;
class RooFitResult ;
class RooPlot ;
class RooRealVar ;
class RooWorkspace ;
class RooStudyManager ;
class RooStudyPackage ;

class RooAbsStudy : public TNamed {
public:

  RooAbsStudy() :  _storeDetails(kFALSE), _summaryData(0), _detailData(0), _ownDetailData(kTRUE) {} ;
  RooAbsStudy(const char* name, const char* title) ;
  RooAbsStudy(const RooAbsStudy& other) ;
  virtual ~RooAbsStudy() ;
 
  virtual Bool_t attach(RooWorkspace& /*w*/) { return kFALSE ; } ;
  virtual Bool_t initialize() { return kFALSE ; } ;
  virtual Bool_t execute() { return kFALSE ; } ;
  virtual Bool_t finalize() { return 0 ; } ;
  void storeDetailedOutput(Bool_t flag) { _storeDetails = flag ; }
  
  RooDataSet* summaryData() { return _summaryData ; }
  RooLinkedList* detailedData() { return _detailData ; }

  void releaseDetailData() { _ownDetailData = kFALSE ; }

 protected:

  friend class RooStudyManager ;
  friend class RooStudyPackage ;
  void registerSummaryOutput(const RooArgSet& allVars, const RooArgSet& varsWithError=RooArgSet(), const RooArgSet& varsWithAsymError=RooArgSet()) ;
  void storeSummaryOutput(const RooArgSet& vars) ;
  void storeDetailedOutput(TNamed& object) ;
  void aggregateSummaryOutput(TList* chunkList) ;
  
 private:

  Bool_t _storeDetails ;
  RooDataSet* _summaryData ; //!
  RooLinkedList*  _detailData ;  //!
  Bool_t      _ownDetailData ;

  ClassDef(RooAbsStudy,1) // Abstract base class for RooStudyManager modules
} ;


#endif

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