RooRealMPFE Class Reference

#include <RooRealMPFE.h>

Inheritance diagram for RooRealMPFE:

RooAbsReal RooAbsReal RooAbsArg RooAbsArg RooAbsArg RooAbsArg RooPrintable TNamed RooPrintable TNamed RooPrintable TNamed RooPrintable TNamed RooPrintable TNamed RooPrintable TNamed RooPrintable TNamed RooPrintable TNamed List of all members.

Public Member Functions

 RooRealMPFE (const char *name, const char *title, RooAbsReal &arg, Bool_t calcInline=kFALSE)
 RooRealMPFE (const RooRealMPFE &other, const char *name=0)
virtual TObjectclone (const char *newname) const
virtual ~RooRealMPFE ()
void calculate () const
virtual Double_t getVal (const RooArgSet *nset=0) const
void standby ()
void setVerbose (Bool_t clientFlag=kTRUE, Bool_t serverFlag=kTRUE)
 RooRealMPFE (const char *name, const char *title, RooAbsReal &arg, Bool_t calcInline=kFALSE)
 RooRealMPFE (const RooRealMPFE &other, const char *name=0)
virtual TObjectclone (const char *newname) const
virtual ~RooRealMPFE ()
void calculate () const
virtual Double_t getVal (const RooArgSet *nset=0) const
void standby ()
void setVerbose (Bool_t clientFlag=kTRUE, Bool_t serverFlag=kTRUE)

Protected Types

enum  State
enum  Message
enum  State
enum  Message

Protected Member Functions

virtual Double_t evaluate () const
virtual void constOptimizeTestStatistic (ConstOpCode opcode)
void initialize ()
void initVars ()
void serverLoop ()
virtual Double_t evaluate () const
virtual void constOptimizeTestStatistic (ConstOpCode opcode)
void initialize ()
void initVars ()
void serverLoop ()

Protected Attributes

State _state
RooRealProxy _arg
RooListProxy _vars
RooArgList _saveVars
Bool_t _calcInProgress
Bool_t _verboseClient
Bool_t _verboseServer
Bool_t _inlineMode
Bool_t _forceCalc
RooAbsReal::ErrorLoggingMode _remoteEvalErrorLoggingState
Int_t _pid
Int_t _pipeToClient [2]
Int_t _pipeToServer [2]

Static Protected Attributes

static RooMPSentinel _sentinel

Friends

class RooAbsTestStatistic

Detailed Description

Definition at line 27 of file RooRealMPFE.h.


Member Enumeration Documentation

enum RooRealMPFE::State [protected]

Definition at line 48 of file RooRealMPFE.h.

enum RooRealMPFE::Message [protected]

Definition at line 51 of file RooRealMPFE.h.

enum RooRealMPFE::State [protected]

Definition at line 48 of file RooRealMPFE.h.

enum RooRealMPFE::Message [protected]

Definition at line 51 of file RooRealMPFE.h.


Constructor & Destructor Documentation

RooRealMPFE::RooRealMPFE ( const char *  name,
const char *  title,
RooAbsReal arg,
Bool_t  calcInline = kFALSE 
)

Definition at line 72 of file RooRealMPFE.cxx.

References _inlineMode, _sentinel, RooMPSentinel::add(), initVars(), and kTRUE.

Referenced by clone().

RooRealMPFE::RooRealMPFE ( const RooRealMPFE other,
const char *  name = 0 
)

Definition at line 97 of file RooRealMPFE.cxx.

References _sentinel, RooMPSentinel::add(), and initVars().

RooRealMPFE::~RooRealMPFE (  )  [virtual]

Definition at line 120 of file RooRealMPFE.cxx.

References _sentinel, _state, Client, RooMPSentinel::remove(), and standby().

RooRealMPFE::RooRealMPFE ( const char *  name,
const char *  title,
RooAbsReal arg,
Bool_t  calcInline = kFALSE 
)

RooRealMPFE::RooRealMPFE ( const RooRealMPFE other,
const char *  name = 0 
)

virtual RooRealMPFE::~RooRealMPFE (  )  [virtual]


Member Function Documentation

virtual TObject* RooRealMPFE::clone ( const char *  newname  )  const [inline, virtual]

Implements RooAbsArg.

Definition at line 32 of file RooRealMPFE.h.

References RooRealMPFE().

void RooRealMPFE::calculate (  )  const

Definition at line 384 of file RooRealMPFE.cxx.

References _arg, _calcInProgress, _forceCalc, _pipeToServer, _saveVars, _state, RooAbsReal::_value, _vars, _verboseClient, _verboseServer, RooArgList::at(), Calculate, RooAbsArg::clearValueDirty(), Client, RooAbsArg::copyCache(), TNamed::GetName(), RooAbsCollection::getSize(), i, Initialize, initialize(), Inline, RooAbsArg::isConstant(), kFALSE, kTRUE, SendCat, SendReal, val, and write.

Referenced by getVal().

Double_t RooRealMPFE::getVal ( const RooArgSet nset = 0  )  const [virtual]

Reimplemented from RooAbsReal.

Definition at line 466 of file RooRealMPFE.cxx.

References _calcInProgress, RooAbsReal::_value, calculate(), evaluate(), and RooAbsArg::isValueDirty().

void RooRealMPFE::standby (  ) 

Definition at line 596 of file RooRealMPFE.cxx.

References _pid, _pipeToClient, _pipeToServer, _state, _verboseServer, Client, close, TNamed::GetName(), Initialize, Terminate, and write.

Referenced by RooMPSentinel::~RooMPSentinel(), and ~RooRealMPFE().

void RooRealMPFE::setVerbose ( Bool_t  clientFlag = kTRUE,
Bool_t  serverFlag = kTRUE 
)

Definition at line 656 of file RooRealMPFE.cxx.

References _pipeToServer, _state, _verboseClient, _verboseServer, Client, TNamed::GetName(), Verbose, and write.

Double_t RooRealMPFE::evaluate (  )  const [protected, virtual]

Implements RooAbsReal.

Definition at line 493 of file RooRealMPFE.cxx.

References _arg, _calcInProgress, _pipeToClient, _pipeToServer, _remoteEvalErrorLoggingState, _state, _verboseServer, Client, RooAbsReal::evalErrorLoggingMode(), flag, TNamed::GetName(), Inline, kFALSE, LogEvalError, RooAbsReal::logEvalError(), ptr, read, Retrieve, RetrieveErrors, return_value, ReturnValue, value, and write.

Referenced by getVal().

void RooRealMPFE::constOptimizeTestStatistic ( ConstOpCode  opcode  )  [protected, virtual]

Reimplemented from RooAbsArg.

Definition at line 630 of file RooRealMPFE.cxx.

References _arg, _pipeToServer, _state, _verboseServer, RooRealProxy::arg(), Client, ConstOpt, TNamed::GetName(), initVars(), Inline, and write.

Referenced by serverLoop().

void RooRealMPFE::initialize (  )  [protected]

Definition at line 160 of file RooRealMPFE.cxx.

References _calcInProgress, _inlineMode, _pid, _pipeToClient, _pipeToServer, _state, RooAbsReal::clearEvalErrorLog(), Client, coutE, coutI, fork(), TNamed::GetName(), Inline, kFALSE, RooFit::Minimization, pipe, Server, and serverLoop().

Referenced by calculate(), and RooAbsTestStatistic::initMPMode().

void RooRealMPFE::initVars (  )  [protected]

Definition at line 133 of file RooRealMPFE.cxx.

References _arg, _forceCalc, _saveVars, _vars, RooListProxy::add(), RooAbsCollection::addClone(), RooRealProxy::arg(), RooAbsArg::getParameters(), kFALSE, kTRUE, RooAbsCollection::removeAll(), RooListProxy::removeAll(), RooAbsArg::RooArgSet, and RooAbsCollection::selectByAttrib().

Referenced by constOptimizeTestStatistic(), and RooRealMPFE().

void RooRealMPFE::serverLoop (  )  [protected]

Definition at line 215 of file RooRealMPFE.cxx.

References _arg, _pipeToClient, _pipeToServer, RooAbsReal::_value, _vars, _verboseServer, RooRealProxy::arg(), RooArgList::at(), Calculate, RooAbsReal::clearEvalErrorLog(), ConstOpt, constOptimizeTestStatistic(), RooAbsReal::evalErrorIter(), flag, TNamed::GetName(), TSystem::GetPid(), gSystem, i, RooPrintable::kArgs, RooPrintable::kClassName, kFALSE, RooPrintable::kInline, RooPrintable::kName, kTRUE, LogEvalError, n, TMVA::null(), RooAbsReal::numEvalErrorItems(), RooAbsReal::numEvalErrors(), RooPrintable::printStream(), read, Retrieve, RetrieveErrors, ReturnValue, SendCat, SendError, SendReal, RooAbsReal::setEvalErrorLoggingMode(), ssize_t, Terminate, value, Verbose, and write.

Referenced by initialize().

virtual TObject* RooRealMPFE::clone ( const char *  newname  )  const [inline, virtual]

Implements RooAbsArg.

Definition at line 32 of file RooRealMPFE.h.

References RooRealMPFE().

void RooRealMPFE::calculate (  )  const

virtual Double_t RooRealMPFE::getVal ( const RooArgSet nset = 0  )  const [virtual]

Reimplemented from RooAbsReal.

void RooRealMPFE::standby (  ) 

void RooRealMPFE::setVerbose ( Bool_t  clientFlag = kTRUE,
Bool_t  serverFlag = kTRUE 
)

virtual Double_t RooRealMPFE::evaluate (  )  const [protected, virtual]

Implements RooAbsReal.

virtual void RooRealMPFE::constOptimizeTestStatistic ( ConstOpCode  opcode  )  [protected, virtual]

Reimplemented from RooAbsArg.

void RooRealMPFE::initialize (  )  [protected]

void RooRealMPFE::initVars (  )  [protected]

void RooRealMPFE::serverLoop (  )  [protected]


Friends And Related Function Documentation

RooAbsTestStatistic [friend]

Definition at line 45 of file RooRealMPFE.h.


Member Data Documentation

State RooRealMPFE::_state [protected]

Definition at line 49 of file RooRealMPFE.h.

Referenced by calculate(), constOptimizeTestStatistic(), evaluate(), initialize(), setVerbose(), standby(), and ~RooRealMPFE().

RooRealProxy RooRealMPFE::_arg [protected]

Definition at line 58 of file RooRealMPFE.h.

Referenced by calculate(), constOptimizeTestStatistic(), evaluate(), initVars(), and serverLoop().

RooListProxy RooRealMPFE::_vars [protected]

Definition at line 60 of file RooRealMPFE.h.

Referenced by calculate(), initVars(), and serverLoop().

RooArgList RooRealMPFE::_saveVars [protected]

Definition at line 61 of file RooRealMPFE.h.

Referenced by calculate(), and initVars().

Bool_t RooRealMPFE::_calcInProgress [mutable, protected]

Definition at line 62 of file RooRealMPFE.h.

Referenced by calculate(), evaluate(), getVal(), and initialize().

Bool_t RooRealMPFE::_verboseClient [protected]

Definition at line 63 of file RooRealMPFE.h.

Referenced by calculate(), and setVerbose().

Bool_t RooRealMPFE::_verboseServer [protected]

Definition at line 64 of file RooRealMPFE.h.

Referenced by calculate(), constOptimizeTestStatistic(), evaluate(), serverLoop(), setVerbose(), and standby().

Bool_t RooRealMPFE::_inlineMode [protected]

Definition at line 65 of file RooRealMPFE.h.

Referenced by initialize(), and RooRealMPFE().

Bool_t RooRealMPFE::_forceCalc [mutable, protected]

Definition at line 66 of file RooRealMPFE.h.

Referenced by calculate(), and initVars().

RooAbsReal::ErrorLoggingMode RooRealMPFE::_remoteEvalErrorLoggingState [mutable, protected]

Definition at line 67 of file RooRealMPFE.h.

Referenced by evaluate().

Int_t RooRealMPFE::_pid [protected]

Definition at line 68 of file RooRealMPFE.h.

Referenced by initialize(), and standby().

Int_t RooRealMPFE::_pipeToClient [protected]

Definition at line 70 of file RooRealMPFE.h.

Referenced by evaluate(), initialize(), serverLoop(), and standby().

Int_t RooRealMPFE::_pipeToServer [protected]

Definition at line 71 of file RooRealMPFE.h.

Referenced by calculate(), constOptimizeTestStatistic(), evaluate(), initialize(), serverLoop(), setVerbose(), and standby().

RooMPSentinel RooRealMPFE::_sentinel [static, protected]

Definition at line 73 of file RooRealMPFE.h.

Referenced by RooRealMPFE(), and ~RooRealMPFE().


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