/usr/include/root/RooArgProxy.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 66 67 68 69 70 71 72 73 74 75 76 | /*****************************************************************************
* Project: RooFit *
* Package: RooFitCore *
* File: $Id: RooArgProxy.h,v 1.21 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_ARG_PROXY
#define ROO_ARG_PROXY
#include "TNamed.h"
#include "RooAbsProxy.h"
#include "RooAbsArg.h"
class RooArgProxy : public TNamed, public RooAbsProxy {
public:
// Constructors, assignment etc.
RooArgProxy() : _owner(0), _arg(0), _valueServer(kFALSE), _shapeServer(kFALSE), _isFund(kTRUE), _ownArg(kFALSE) {
// Default constructor
} ;
RooArgProxy(const char* name, const char* desc, RooAbsArg* owner,
Bool_t valueServer, Bool_t shapeServer, Bool_t proxyOwnsArg=kFALSE) ;
RooArgProxy(const char* name, const char* desc, RooAbsArg* owner, RooAbsArg& arg,
Bool_t valueServer, Bool_t shapeServer, Bool_t proxyOwnsArg=kFALSE) ;
RooArgProxy(const char* name, RooAbsArg* owner, const RooArgProxy& other) ;
virtual ~RooArgProxy() ;
inline RooAbsArg* absArg() const {
// Return pointer to contained argument
return _arg ;
}
virtual const char* name() const {
// Return name of proxy
return GetName() ;
}
virtual void print(std::ostream& os, Bool_t addContents=kFALSE) const ;
protected:
friend class RooSimultaneous ;
RooAbsArg* _owner ; // Pointer to owner of proxy
RooAbsArg* _arg ; // Pointer to content of proxy
Bool_t _valueServer ; // If true contents is value server of owner
Bool_t _shapeServer ; // If true contents is shape server of owner
Bool_t _isFund ; // If true proxy contains an lvalue
Bool_t _ownArg ; // If true proxy owns contents
friend class RooAbsArg ;
inline Bool_t isValueServer() const {
// Returns true of contents is value server of owner
return _valueServer ;
}
inline Bool_t isShapeServer() const {
// Returns true if contents is shape server of owner
return _shapeServer ;
}
virtual Bool_t changePointer(const RooAbsCollection& newServerSet, Bool_t nameChange=kFALSE, Bool_t factoryInitMode=kFALSE) ;
virtual void changeDataSet(const RooArgSet* newNormSet) ;
ClassDef(RooArgProxy,1) // Abstract proxy for RooAbsArg objects
};
#endif
|