/usr/include/root/RooScaledFunc.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 | /*****************************************************************************
* Project: RooFit *
* Package: RooFitCore *
* File: $Id: RooScaledFunc.h,v 1.6 2007/05/11 09:11:30 verkerke 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_SCALED_FUNC
#define ROO_SCALED_FUNC
#include "RooAbsFunc.h"
class RooScaledFunc : public RooAbsFunc {
public:
inline RooScaledFunc(const RooAbsFunc &func, Double_t scaleFactor) :
RooAbsFunc(func.getDimension()), _func(&func), _scaleFactor(scaleFactor) { }
inline virtual ~RooScaledFunc() { }
inline virtual Double_t operator()(const Double_t xvector[]) const {
return _scaleFactor*(*_func)(xvector);
}
inline virtual Double_t getMinLimit(UInt_t index) const { return _func->getMinLimit(index); }
inline virtual Double_t getMaxLimit(UInt_t index) const { return _func->getMaxLimit(index); }
virtual std::list<Double_t>* plotSamplingHint(RooAbsRealLValue& obs, Double_t xlo, Double_t xhi) const {
return _func->plotSamplingHint(obs,xlo,xhi) ;
}
protected:
const RooAbsFunc *_func;
Double_t _scaleFactor;
ClassDef(RooScaledFunc,0) // Function binding applying scaling to another function binding
};
#endif
|