Docs | All | Real | Category | PDF | DataSet | Plot | Container | Misc | Aux | User

RooFit Toolkit for Data Modeling
#include "RooRealMPFE.hh"


class description - source file - inheritance tree (.pdf)

class RooRealMPFE : public RooAbsReal

Inheritance Chart:

virtual void constOptimize(RooAbsArg::ConstOpCode opcode) virtual Double_t evaluate() const void initialize() void initVars() void serverLoop() public:
RooRealMPFE(const char* name, const char* title, RooAbsReal& arg, Bool_t calcInline = kFALSE) RooRealMPFE(const RooRealMPFE& other, const char* name = "0") virtual ~RooRealMPFE() void calculate() const static TClass* Class() virtual TObject* clone(const char* newname) const virtual Double_t getVal(const RooArgSet* nset = 0) const virtual TClass* IsA() const void setVerbose(Bool_t clientFlag = kTRUE, Bool_t serverFlag = kTRUE) virtual void ShowMembers(TMemberInspector& insp, char* parent) void standby() virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

RooRealMPFE::State _state RooRealProxy _arg Function to calculate in parallel process RooListProxy _vars Variables RooArgList _saveVars Copy of variables Bool_t _calcInProgress Bool_t _verboseClient Bool_t _verboseServer Bool_t _inlineMode Bool_t _forceCalc Int_t _pipeToClient[2] Pipe to client process Int_t _pipeToServer[2] Pipe to server process static RooMPSentinel _sentinel public:
static const RooRealMPFE::State Initialize static const RooRealMPFE::State Client static const RooRealMPFE::State Server static const RooRealMPFE::State Inline static const RooRealMPFE::Message SendReal static const RooRealMPFE::Message SendCat static const RooRealMPFE::Message Calculate static const RooRealMPFE::Message Retrieve static const RooRealMPFE::Message ReturnValue static const RooRealMPFE::Message Terminate static const RooRealMPFE::Message ConstOpt static const RooRealMPFE::Message Verbose

Class Description

 RooRealMPFE is the multi-processor front-end for parallel calculation
 of RooAbsReal objects. Each RooRealMPFE forks a process that calculates
 the value of the proxies RooAbsReal object. The (re)calculation of
 the proxied object is started asynchronously with the calculate() option.
 A subsequent call to getVal() will return the calculated value when available
 If the calculation is still in progress when getVal() is called it blocks
 the calling process until the calculation is done.
 The forked calculation process is terminated when the front-end object
 is deleted

RooRealMPFE(const char *name, const char *title, RooAbsReal& arg, Bool_t calcInline) : RooAbsReal(name,title), _state(Initialize), _arg("arg","arg",this,arg), _vars("vars","vars",this), _verboseClient(kFALSE), _verboseServer(kFALSE), _inlineMode(calcInline)

RooRealMPFE(const RooRealMPFE& other, const char* name) : RooAbsReal(other, name), _state(other._state), _arg("arg",this,other._arg), _vars("vars",this,other._vars), _verboseClient(other._verboseClient), _verboseServer(other._verboseServer), _inlineMode(other._inlineMode), _forceCalc(other._forceCalc)
 Copy constructor


void initVars()
 Initialize variable list

void initialize()

void serverLoop()

void calculate() const
 Start asynchronous calculation of arg value

Double_t getVal(const RooArgSet* /*nset*/) const

Double_t evaluate() const
 Retrieve value of arg

void standby()

void constOptimize(ConstOpCode opcode)

void setVerbose(Bool_t clientFlag, Bool_t serverFlag)

Inline Functions

           TObject* clone(const char* newname) const
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
               void StreamerNVirtual(TBuffer& b)
Last CVS Update: v 1.13 2005/06/20 15:44:56 wverkerke Top
Copyright © 2000-2005 University of California, Stanford University

Page maintained by Wouter Verkerke and David Kirkby Logo