/***************************************************************************** * Project: RooFit * * Package: RooFitCore * * @(#)root/roofitcore:$Name: $:$Id: RooAbsMCStudyModule.cxx,v 1.3 2007/05/14 14:37:31 wouter Exp $ * 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) * *****************************************************************************/ // -- CLASS DESCRIPTION [MISC] -- // RooAbsMCStudyModule is a base class for add-on modules to RooMCStudy that // can perform additional calculations on each generate+fit cycle managed // by RooMCStudy // // This class can insert code to be executed before each generation step, // between the generation and fitting step and after the fitting step. // Any summary output variables declared in the RooDataSet exported through // summaryData() is merged with the 'master' summary dataset in RooMCStudy // // Look at RooDLLSignificanceMCStudyModule for an example of an implementation // #include "RooFit.h" #include "RooAbsMCStudyModule.h" ClassImp(RooAbsMCStudyModule) ; RooAbsMCStudyModule::RooAbsMCStudyModule(const char* name, const char* title) : TNamed(name,title), _mcs(0) { } RooAbsMCStudyModule::RooAbsMCStudyModule(const RooAbsMCStudyModule& other) : TNamed(other), _mcs(other._mcs) { } Bool_t RooAbsMCStudyModule::doInitializeInstance(RooMCStudy& study) { _mcs = &study ; return initializeInstance() ; }