Logo ROOT  
Reference Guide
RooAbsStudy.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_ABS_STUDY
17#define ROO_ABS_STUDY
18
19#include "TNamed.h"
20#include "RooLinkedList.h"
21#include "RooArgSet.h"
22
23class RooAbsPdf;
24class RooDataSet ;
25class RooAbsData ;
26class RooFitResult ;
27class RooPlot ;
28class RooRealVar ;
29class RooWorkspace ;
30class RooStudyManager ;
31class RooStudyPackage ;
32
33class RooAbsStudy : public TNamed {
34public:
35
37 RooAbsStudy(const char* name, const char* title) ;
38 RooAbsStudy(const RooAbsStudy& other) ;
39 virtual RooAbsStudy* clone(const char* newname="") const = 0 ;
40 TObject* Clone(const char* newname="") const override { return clone(newname) ; }
41 ~RooAbsStudy() override ;
42
43 virtual bool attach(RooWorkspace& /*w*/) { return false ; } ;
44 virtual bool initialize() { return false ; } ;
45 virtual bool execute() { return false ; } ;
46 virtual bool finalize() { return 0 ; } ;
47 void storeDetailedOutput(bool flag) { _storeDetails = flag ; }
48
51
52 void releaseDetailData() { _ownDetailData = false ; }
53
54 virtual void dump() {} ;
55
56 protected:
57
58 friend class RooStudyManager ;
59 friend class RooStudyPackage ;
60 void registerSummaryOutput(const RooArgSet& allVars, const RooArgSet& varsWithError=RooArgSet(), const RooArgSet& varsWithAsymError=RooArgSet()) ;
61 void storeSummaryOutput(const RooArgSet& vars) ;
62 void storeDetailedOutput(TNamed& object) ;
63 void aggregateSummaryOutput(TList* chunkList) ;
64
65 private:
66
71
72 ClassDefOverride(RooAbsStudy,1) // Abstract base class for RooStudyManager modules
73} ;
74
75
76#endif
77
#define ClassDefOverride(name, id)
Definition: Rtypes.h:339
char name[80]
Definition: TGX11.cxx:110
RooAbsData is the common abstract base class for binned and unbinned datasets.
Definition: RooAbsData.h:62
RooAbsStudy is an abstract base class for RooStudyManager modules.
Definition: RooAbsStudy.h:33
virtual bool execute()
Definition: RooAbsStudy.h:45
void storeDetailedOutput(bool flag)
Definition: RooAbsStudy.h:47
~RooAbsStudy() override
Destructor.
Definition: RooAbsStudy.cxx:62
void storeSummaryOutput(const RooArgSet &vars)
Definition: RooAbsStudy.cxx:91
virtual bool finalize()
Definition: RooAbsStudy.h:46
RooLinkedList * detailedData()
Definition: RooAbsStudy.h:50
bool _ownDetailData
Definition: RooAbsStudy.h:70
virtual void dump()
Definition: RooAbsStudy.h:54
void releaseDetailData()
Definition: RooAbsStudy.h:52
void aggregateSummaryOutput(TList *chunkList)
virtual bool initialize()
Definition: RooAbsStudy.h:44
RooDataSet * _summaryData
!
Definition: RooAbsStudy.h:68
TObject * Clone(const char *newname="") const override
Make a clone of an object using the Streamer facility.
Definition: RooAbsStudy.h:40
void registerSummaryOutput(const RooArgSet &allVars, const RooArgSet &varsWithError=RooArgSet(), const RooArgSet &varsWithAsymError=RooArgSet())
Definition: RooAbsStudy.cxx:76
bool _storeDetails
Definition: RooAbsStudy.h:67
RooDataSet * summaryData()
Definition: RooAbsStudy.h:49
virtual bool attach(RooWorkspace &)
Definition: RooAbsStudy.h:43
virtual RooAbsStudy * clone(const char *newname="") const =0
RooLinkedList * _detailData
!
Definition: RooAbsStudy.h:69
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition: RooArgSet.h:57
RooDataSet is a container class to hold unbinned data.
Definition: RooDataSet.h:55
RooFitResult is a container class to hold the input and output of a PDF fit to a dataset.
Definition: RooFitResult.h:40
RooLinkedList is an collection class for internal use, storing a collection of RooAbsArg pointers in ...
Definition: RooLinkedList.h:38
A RooPlot is a plot frame and a container for graphics objects within that frame.
Definition: RooPlot.h:43
RooRealVar represents a variable that can be changed from the outside.
Definition: RooRealVar.h:40
RooStudyManager is a utility class to manage studies that consist of repeated applications of generat...
RooStudyPackage is a utility class to manage studies that consist of repeated applications of generat...
The RooWorkspace is a persistable container for RooFit projects.
Definition: RooWorkspace.h:43
A doubly linked list.
Definition: TList.h:38
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:29
Mother of all ROOT objects.
Definition: TObject.h:37