RooAbsGenContext Class Reference

#include <RooAbsGenContext.h>

Inheritance diagram for RooAbsGenContext:

TNamed RooPrintable TNamed RooPrintable TObject TObject TObject TObject RooAddGenContext RooAddGenContext RooConvGenContext RooConvGenContext RooEffGenContext RooEffGenContext RooGenContext RooGenContext RooProdGenContext RooProdGenContext RooSimGenContext RooSimGenContext List of all members.

Public Member Functions

 RooAbsGenContext (const RooAbsPdf &model, const RooArgSet &vars, const RooDataSet *prototype=0, const RooArgSet *auxProto=0, Bool_t _verbose=kFALSE)
virtual ~RooAbsGenContext ()
RooDataSetgenerate (Int_t nEvents=0)
Bool_t isValid () const
void setVerbose (Bool_t verbose=kTRUE)
Bool_t isVerbose () const
virtual void setProtoDataOrder (Int_t *lut)
virtual void Print (Option_t *options=0) const
virtual void attach (const RooArgSet &params)
virtual void printName (ostream &os) const
virtual void printTitle (ostream &os) const
virtual void printClassName (ostream &os) const
virtual void printArgs (ostream &os) const
virtual void printMultiline (ostream &os, Int_t contents, Bool_t verbose=kFALSE, TString indent="") const
virtual Int_t defaultPrintContents (Option_t *opt) const
virtual StyleOption defaultPrintStyle (Option_t *opt) const
 RooAbsGenContext (const RooAbsPdf &model, const RooArgSet &vars, const RooDataSet *prototype=0, const RooArgSet *auxProto=0, Bool_t _verbose=kFALSE)
virtual ~RooAbsGenContext ()
RooDataSetgenerate (Int_t nEvents=0)
Bool_t isValid () const
void setVerbose (Bool_t verbose=kTRUE)
Bool_t isVerbose () const
virtual void setProtoDataOrder (Int_t *lut)
virtual void Print (Option_t *options=0) const
virtual void attach (const RooArgSet &params)
virtual void printName (ostream &os) const
virtual void printTitle (ostream &os) const
virtual void printClassName (ostream &os) const
virtual void printArgs (ostream &os) const
virtual void printMultiline (ostream &os, Int_t contents, Bool_t verbose=kFALSE, TString indent="") const
virtual Int_t defaultPrintContents (Option_t *opt) const
virtual StyleOption defaultPrintStyle (Option_t *opt) const

Protected Member Functions

virtual void initGenerator (const RooArgSet &theEvent)
virtual void generateEvent (RooArgSet &theEvent, Int_t remaining)=0
void resampleData (Double_t &ratio)
virtual void initGenerator (const RooArgSet &theEvent)
virtual void generateEvent (RooArgSet &theEvent, Int_t remaining)=0
void resampleData (Double_t &ratio)

Protected Attributes

const RooDataSet_prototype
RooArgSet_theEvent
Bool_t _isValid
Bool_t _verbose
UInt_t _expectedEvents
RooArgSet _protoVars
Int_t _nextProtoIndex
RooAbsPdf::ExtendMode _extendMode
Int_t_protoOrder
TString _normRange
RooDataSet_genData
const RooDataSet_prototype
RooArgSet_theEvent
Int_t_protoOrder
RooDataSet_genData

Friends

class RooConvGenContext
class RooProdGenContext
class RooAddGenContext
class RooSimGenContext
class RooEffGenContext

Detailed Description

Definition at line 26 of file RooAbsGenContext.h.


Constructor & Destructor Documentation

RooAbsGenContext::RooAbsGenContext ( const RooAbsPdf model,
const RooArgSet vars,
const RooDataSet prototype = 0,
const RooArgSet auxProto = 0,
Bool_t  _verbose = kFALSE 
)

Definition at line 49 of file RooAbsGenContext.cxx.

References _expectedEvents, _extendMode, _isValid, _nextProtoIndex, _normRange, _prototype, _protoVars, _theEvent, RooArgSet::add(), RooArgSet::addClone(), RooAbsCollection::contains(), coutE, RooAbsCollection::createIterator(), RooFit::Generation, RooDataSet::get(), kFALSE, model, TIterator::Next(), and RooAbsCollection::snapshot().

RooAbsGenContext::~RooAbsGenContext (  )  [virtual]

Definition at line 109 of file RooAbsGenContext.cxx.

References _protoOrder, and _theEvent.

RooAbsGenContext::RooAbsGenContext ( const RooAbsPdf model,
const RooArgSet vars,
const RooDataSet prototype = 0,
const RooArgSet auxProto = 0,
Bool_t  _verbose = kFALSE 
)

virtual RooAbsGenContext::~RooAbsGenContext (  )  [virtual]


Member Function Documentation

RooDataSet * RooAbsGenContext::generate ( Int_t  nEvents = 0  ) 

Definition at line 128 of file RooAbsGenContext.cxx.

References _expectedEvents, _extendMode, _genData, _nextProtoIndex, _normRange, _protoOrder, _prototype, _protoVars, _theEvent, _verbose, RooDataSet::addFast(), RooAbsPdf::CanNotBeExtended, TObject::ClassName(), RooAbsCollection::contains(), coutE, coutI, RooAbsCollection::createIterator(), TString::Data(), generateEvent(), RooFit::Generation, RooDataSet::get(), TNamed::GetName(), TNamed::GetTitle(), initGenerator(), RooFit::InputArguments, RooArgSet::isInRange(), isValid(), kTRUE, TString::Length(), name, TIterator::Next(), RooAbsData::numEntries(), ok, output(), Print(), and title.

Referenced by RooAbsPdf::generate(), and RooMCStudy::run().

Bool_t RooAbsGenContext::isValid (  )  const [inline]

Definition at line 34 of file RooAbsGenContext.h.

References _isValid.

Referenced by RooAbsPdf::generate(), generate(), and RooGenContext::RooGenContext().

void RooAbsGenContext::setVerbose ( Bool_t  verbose = kTRUE  )  [inline]

Definition at line 39 of file RooAbsGenContext.h.

References _verbose, and verbose.

Bool_t RooAbsGenContext::isVerbose (  )  const [inline]

Definition at line 43 of file RooAbsGenContext.h.

References _verbose.

void RooAbsGenContext::setProtoDataOrder ( Int_t lut  )  [virtual]

Definition at line 313 of file RooAbsGenContext.cxx.

References _protoOrder, _prototype, i, n, and RooAbsData::numEntries().

Referenced by RooAbsPdf::generate(), RooMCStudy::run(), RooSimGenContext::setProtoDataOrder(), RooProdGenContext::setProtoDataOrder(), RooConvGenContext::setProtoDataOrder(), and RooAddGenContext::setProtoDataOrder().

virtual void RooAbsGenContext::Print ( Option_t options = 0  )  const [inline, virtual]

Reimplemented from TNamed.

Definition at line 50 of file RooAbsGenContext.h.

References defaultPrintContents(), RooPrintable::defaultPrintStream(), defaultPrintStyle(), and RooPrintable::printStream().

Referenced by generate().

void RooAbsGenContext::attach ( const RooArgSet params  )  [virtual]

Definition at line 120 of file RooAbsGenContext.cxx.

Referenced by RooSimGenContext::attach(), RooAddGenContext::attach(), RooConvGenContext::attach(), RooProdGenContext::attach(), and RooMCStudy::RooMCStudy().

void RooAbsGenContext::printName ( ostream &  os  )  const [virtual]

Reimplemented from RooPrintable.

Definition at line 251 of file RooAbsGenContext.cxx.

References TNamed::GetName().

void RooAbsGenContext::printTitle ( ostream &  os  )  const [virtual]

Reimplemented from RooPrintable.

Definition at line 261 of file RooAbsGenContext.cxx.

References TNamed::GetTitle().

void RooAbsGenContext::printClassName ( ostream &  os  )  const [virtual]

Reimplemented from RooPrintable.

Definition at line 271 of file RooAbsGenContext.cxx.

void RooAbsGenContext::printArgs ( ostream &  os  )  const [virtual]

Reimplemented from RooPrintable.

Definition at line 281 of file RooAbsGenContext.cxx.

References _theEvent, RooAbsCollection::createIterator(), TNamed::GetName(), kFALSE, kTRUE, and TIterator::Next().

void RooAbsGenContext::printMultiline ( ostream &  os,
Int_t  contents,
Bool_t  verbose = kFALSE,
TString  indent = "" 
) const [virtual]

Reimplemented from RooPrintable.

Definition at line 304 of file RooAbsGenContext.cxx.

Referenced by RooGenContext::printMultiline(), RooConvGenContext::printMultiline(), RooAddGenContext::printMultiline(), RooSimGenContext::printMultiline(), and RooProdGenContext::printMultiline().

Int_t RooAbsGenContext::defaultPrintContents ( Option_t opt  )  const [virtual]

Reimplemented from RooPrintable.

Definition at line 370 of file RooAbsGenContext.cxx.

References RooPrintable::kClassName, RooPrintable::kName, and RooPrintable::kValue.

Referenced by Print().

RooPrintable::StyleOption RooAbsGenContext::defaultPrintStyle ( Option_t opt  )  const [virtual]

Reimplemented from RooPrintable.

Definition at line 379 of file RooAbsGenContext.cxx.

References RooPrintable::kStandard, and RooPrintable::kVerbose.

Referenced by Print().

void RooAbsGenContext::initGenerator ( const RooArgSet theEvent  )  [protected, virtual]

Definition at line 242 of file RooAbsGenContext.cxx.

Referenced by generate(), RooEffGenContext::initGenerator(), RooSimGenContext::initGenerator(), RooConvGenContext::initGenerator(), RooProdGenContext::initGenerator(), and RooAddGenContext::initGenerator().

virtual void RooAbsGenContext::generateEvent ( RooArgSet theEvent,
Int_t  remaining 
) [protected, pure virtual]

Referenced by generate(), RooConvGenContext::generateEvent(), RooProdGenContext::generateEvent(), and RooEffGenContext::generateEvent().

void RooAbsGenContext::resampleData ( Double_t ratio  )  [protected]

Definition at line 341 of file RooAbsGenContext.cxx.

References _genData, _nextProtoIndex, _prototype, cxcoutD, RooFit::EventRange(), RooFit::Generation, RooAbsData::numEntries(), and RooAbsData::reduce().

Referenced by RooGenContext::generateEvent().

RooDataSet* RooAbsGenContext::generate ( Int_t  nEvents = 0  ) 

Bool_t RooAbsGenContext::isValid (  )  const [inline]

Definition at line 34 of file RooAbsGenContext.h.

References _isValid.

void RooAbsGenContext::setVerbose ( Bool_t  verbose = kTRUE  )  [inline]

Definition at line 39 of file RooAbsGenContext.h.

References _verbose, and verbose.

Bool_t RooAbsGenContext::isVerbose (  )  const [inline]

Definition at line 43 of file RooAbsGenContext.h.

References _verbose.

virtual void RooAbsGenContext::setProtoDataOrder ( Int_t lut  )  [virtual]

virtual void RooAbsGenContext::Print ( Option_t options = 0  )  const [inline, virtual]

Reimplemented from TNamed.

Definition at line 50 of file RooAbsGenContext.h.

References defaultPrintContents(), RooPrintable::defaultPrintStream(), defaultPrintStyle(), and RooPrintable::printStream().

virtual void RooAbsGenContext::attach ( const RooArgSet params  )  [virtual]

virtual void RooAbsGenContext::printName ( ostream &  os  )  const [virtual]

Reimplemented from RooPrintable.

virtual void RooAbsGenContext::printTitle ( ostream &  os  )  const [virtual]

Reimplemented from RooPrintable.

virtual void RooAbsGenContext::printClassName ( ostream &  os  )  const [virtual]

Reimplemented from RooPrintable.

virtual void RooAbsGenContext::printArgs ( ostream &  os  )  const [virtual]

Reimplemented from RooPrintable.

virtual void RooAbsGenContext::printMultiline ( ostream &  os,
Int_t  contents,
Bool_t  verbose = kFALSE,
TString  indent = "" 
) const [virtual]

Reimplemented from RooPrintable.

virtual Int_t RooAbsGenContext::defaultPrintContents ( Option_t opt  )  const [virtual]

Reimplemented from RooPrintable.

virtual StyleOption RooAbsGenContext::defaultPrintStyle ( Option_t opt  )  const [virtual]

Reimplemented from RooPrintable.

virtual void RooAbsGenContext::initGenerator ( const RooArgSet theEvent  )  [protected, virtual]

virtual void RooAbsGenContext::generateEvent ( RooArgSet theEvent,
Int_t  remaining 
) [protected, pure virtual]

void RooAbsGenContext::resampleData ( Double_t ratio  )  [protected]


Friends And Related Function Documentation

RooConvGenContext [friend]

Definition at line 68 of file RooAbsGenContext.h.

RooProdGenContext [friend]

Definition at line 69 of file RooAbsGenContext.h.

RooAddGenContext [friend]

Definition at line 70 of file RooAbsGenContext.h.

RooSimGenContext [friend]

Definition at line 71 of file RooAbsGenContext.h.

RooEffGenContext [friend]

Definition at line 72 of file RooAbsGenContext.h.


Member Data Documentation

const RooDataSet* RooAbsGenContext::_prototype [protected]

Definition at line 79 of file RooAbsGenContext.h.

Referenced by generate(), resampleData(), RooAbsGenContext(), and setProtoDataOrder().

RooArgSet* RooAbsGenContext::_theEvent [protected]

Definition at line 80 of file RooAbsGenContext.h.

Referenced by generate(), printArgs(), RooAbsGenContext(), RooAddGenContext::RooAddGenContext(), RooGenContext::RooGenContext(), and ~RooAbsGenContext().

Bool_t RooAbsGenContext::_isValid [protected]

Definition at line 81 of file RooAbsGenContext.h.

Referenced by isValid(), RooAbsGenContext(), RooGenContext::RooGenContext(), and RooSimGenContext::RooSimGenContext().

Bool_t RooAbsGenContext::_verbose [protected]

Definition at line 82 of file RooAbsGenContext.h.

Referenced by generate(), isVerbose(), RooGenContext::RooGenContext(), and setVerbose().

UInt_t RooAbsGenContext::_expectedEvents [protected]

Definition at line 83 of file RooAbsGenContext.h.

Referenced by generate(), and RooAbsGenContext().

RooArgSet RooAbsGenContext::_protoVars [protected]

Definition at line 84 of file RooAbsGenContext.h.

Referenced by generate(), RooGenContext::printMultiline(), RooAbsGenContext(), and RooGenContext::RooGenContext().

Int_t RooAbsGenContext::_nextProtoIndex [protected]

Definition at line 85 of file RooAbsGenContext.h.

Referenced by generate(), resampleData(), and RooAbsGenContext().

RooAbsPdf::ExtendMode RooAbsGenContext::_extendMode [protected]

Definition at line 86 of file RooAbsGenContext.h.

Referenced by generate(), and RooAbsGenContext().

Int_t* RooAbsGenContext::_protoOrder [protected]

Definition at line 87 of file RooAbsGenContext.h.

Referenced by generate(), setProtoDataOrder(), and ~RooAbsGenContext().

TString RooAbsGenContext::_normRange [protected]

Definition at line 88 of file RooAbsGenContext.h.

Referenced by generate(), and RooAbsGenContext().

RooDataSet* RooAbsGenContext::_genData [protected]

Definition at line 90 of file RooAbsGenContext.h.

Referenced by generate(), and resampleData().

const RooDataSet* RooAbsGenContext::_prototype [protected]

Definition at line 79 of file RooAbsGenContext.h.

RooArgSet* RooAbsGenContext::_theEvent [protected]

Definition at line 80 of file RooAbsGenContext.h.

Int_t* RooAbsGenContext::_protoOrder [protected]

Definition at line 87 of file RooAbsGenContext.h.

RooDataSet* RooAbsGenContext::_genData [protected]

Definition at line 90 of file RooAbsGenContext.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:32:29 2011 for ROOT_528-00b_version by  doxygen 1.5.1