/usr/include/root/RooRealProxy.h is in libroot-roofit-dev 5.34.19+dfsg-1.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | /*****************************************************************************
* Project: RooFit *
* Package: RooFitCore *
* File: $Id: RooRealProxy.h,v 1.23 2007/07/12 20:30:28 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) *
*****************************************************************************/
#ifndef ROO_REAL_PROXY
#define ROO_REAL_PROXY
#include "RooAbsReal.h"
#include "RooArgProxy.h"
#include "RooAbsRealLValue.h"
class RooRealProxy : public RooArgProxy {
public:
// Constructors, assignment etc.
RooRealProxy() {} ;
RooRealProxy(const char* name, const char* desc, RooAbsArg* owner,
Bool_t valueServer=kTRUE, Bool_t shapeServer=kFALSE, Bool_t proxyOwnsArg=kFALSE) ;
RooRealProxy(const char* name, const char* desc, RooAbsArg* owner, RooAbsReal& ref,
Bool_t valueServer=kTRUE, Bool_t shapeServer=kFALSE, Bool_t proxyOwnsArg=kFALSE) ;
RooRealProxy(const char* name, RooAbsArg* owner, const RooRealProxy& other) ;
virtual TObject* Clone(const char* newName=0) const { return new RooRealProxy(newName,_owner,*this); }
virtual ~RooRealProxy();
// Accessors
#ifndef _WIN32
inline operator Double_t() const { return (_arg->_fast && !_arg->_inhibitDirty) ? ((RooAbsReal*)_arg)->_value : ((RooAbsReal*)_arg)->getVal(_nset) ; }
#else
inline operator Double_t() const { return (_arg->_fast && !_arg->inhibitDirty()) ? ((RooAbsReal*)_arg)->_value : ((RooAbsReal*)_arg)->getVal(_nset) ; }
#endif
inline const RooAbsReal& arg() const { return (RooAbsReal&)*_arg ; }
// Modifier
virtual Bool_t setArg(RooAbsReal& newRef) ;
protected:
RooAbsRealLValue* lvptr() const ;
public:
// LValue operations
RooRealProxy& operator=(const Double_t& value) { lvptr()->setVal(value) ; return *this ; }
Double_t min(const char* rname=0) const { return lvptr()->getMin(rname) ; }
Double_t max(const char* rname=0) const { return lvptr()->getMax(rname) ; }
Bool_t hasMin(const char* rname=0) const { return lvptr()->hasMin(rname) ; }
Bool_t hasMax(const char* rname=0) const { return lvptr()->hasMax(rname) ; }
ClassDef(RooRealProxy,1) // Proxy for a RooAbsReal object
};
#endif
|