Logo ROOT  
Reference Guide
RooStudyPackage.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Project: RooFit *
3  * Package: RooFitCore *
4  * File: $Id$
5  * Authors: *
6  * WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu *
7  * DK, David Kirkby, UC Irvine, dkirkby@uci.edu *
8  * *
9  * Copyright (c) 2000-2005, Regents of the University of California *
10  * and Stanford University. All rights reserved. *
11  * *
12  * Redistribution and use in source and binary forms, *
13  * with or without modification, are permitted according to the terms *
14  * listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
15  *****************************************************************************/
16 #ifndef ROO_STUDY_PACKAGE
17 #define ROO_STUDY_PACKAGE
18 
19 #include "TNamed.h"
20 
21 class RooAbsPdf;
22 class RooDataSet ;
23 class RooAbsData ;
24 class RooFitResult ;
25 class RooPlot ;
26 class RooRealVar ;
27 class RooWorkspace ;
28 class RooAbsStudy ;
29 #include <list>
30 
31 class RooStudyPackage : public TNamed {
32 public:
33 
34  RooStudyPackage() ;
37  void addStudy(RooAbsStudy& study) ;
38  TObject* Clone(const char* /*newname*/="") const { return new RooStudyPackage(*this) ; }
39 
40  RooWorkspace& wspace() { return *_ws ; }
41  std::list<RooAbsStudy*>& studies() { return _studies ; }
42 
43  void driver(Int_t nExperiments) ;
44 
45  Int_t initRandom() ;
46  void initialize() ;
47  void runOne() ;
48  void run(Int_t nExperiments) ;
49  void finalize() ;
50 
51  void exportData(TList* olist, Int_t seqno) ;
52 
53  static void processFile(const char* infile, Int_t nexp) ;
54 
55 protected:
56 
58  std::list<RooAbsStudy*> _studies ;
59 
60 
61  ClassDef(RooStudyPackage,1) // A general purpose workspace oriented parallelizing study manager
62 } ;
63 
64 
65 #endif
66 
RooStudyPackage::studies
std::list< RooAbsStudy * > & studies()
Definition: RooStudyPackage.h:41
RooAbsData
RooAbsData is the common abstract base class for binned and unbinned datasets.
Definition: RooAbsData.h:49
RooStudyPackage::RooStudyPackage
RooStudyPackage()
Definition: RooStudyPackage.cxx:52
RooStudyPackage::addStudy
void addStudy(RooAbsStudy &study)
Definition: RooStudyPackage.cxx:80
RooStudyPackage::_ws
RooWorkspace * _ws
Definition: RooStudyPackage.h:57
RooStudyPackage
RooStudyPackage is a utility class to manage studies that consist of repeated applications of generat...
Definition: RooStudyPackage.h:31
RooStudyPackage::wspace
RooWorkspace & wspace()
Definition: RooStudyPackage.h:40
TNamed.h
Int_t
int Int_t
Definition: RtypesCore.h:45
RooStudyPackage::Clone
TObject * Clone(const char *="") const
Make a clone of an object using the Streamer facility.
Definition: RooStudyPackage.h:38
RooFitResult
RooFitResult is a container class to hold the input and output of a PDF fit to a dataset.
Definition: RooFitResult.h:40
RooStudyPackage::run
void run(Int_t nExperiments)
Definition: RooStudyPackage.cxx:113
RooStudyPackage::processFile
static void processFile(const char *infile, Int_t nexp)
Read in study package.
Definition: RooStudyPackage.cxx:220
RooStudyPackage::initialize
void initialize()
Make iterator over copy of studies attached to workspace.
Definition: RooStudyPackage.cxx:101
TNamed
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:29
RooPlot
A RooPlot is a plot frame and a container for graphics objects within that frame.
Definition: RooPlot.h:44
RooStudyPackage::finalize
void finalize()
Finalize all studies.
Definition: RooStudyPackage.cxx:142
RooStudyPackage::driver
void driver(Int_t nExperiments)
Definition: RooStudyPackage.cxx:89
RooStudyPackage::runOne
void runOne()
Definition: RooStudyPackage.cxx:129
RooWorkspace
The RooWorkspace is a persistable container for RooFit projects.
Definition: RooWorkspace.h:43
TObject
Mother of all ROOT objects.
Definition: TObject.h:37
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
RooStudyPackage::_studies
std::list< RooAbsStudy * > _studies
Definition: RooStudyPackage.h:58
RooDataSet
RooDataSet is a container class to hold unbinned data.
Definition: RooDataSet.h:33
RooAbsPdf
Definition: RooAbsPdf.h:43
RooStudyPackage::initRandom
Int_t initRandom()
Choose random seed for this process in case pass a definite seed to have it deterministic use also wo...
Definition: RooStudyPackage.cxx:192
RooStudyPackage::exportData
void exportData(TList *olist, Int_t seqno)
Definition: RooStudyPackage.cxx:154
RooRealVar
RooRealVar represents a variable that can be changed from the outside.
Definition: RooRealVar.h:39
TList
A doubly linked list.
Definition: TList.h:44
RooAbsStudy
RooAbsStudy is an abstract base class for RooStudyManager modules.
Definition: RooAbsStudy.h:33