This file is indexed.

/usr/include/root/RooFunctor.h is in libroot-roofit-dev 5.34.00-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
/*****************************************************************************
 * Project: RooFit                                                           *
 * Package: RooFitCore                                                       *
 * @(#)root/roofitcore:$Id: RooFunctor.h 28259 2009-04-16 16:21:16Z wouter $
 * 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_FUNCTOR
#define ROO_FUNCTOR

#include "RooArgSet.h"
#include "RooAbsReal.h"

class RooAbsFunc ;
class RooAbsPdf ;

class RooFunctor {

public:
  RooFunctor(const RooAbsFunc& func) ;
  RooFunctor(const RooAbsReal& func, const RooArgList& observables, const RooArgList& parameters) ;
  RooFunctor(const RooAbsReal& func, const RooArgList& observables, const RooArgList& parameters, const RooArgSet& nset) ;
  RooFunctor(const RooFunctor&) ;
  virtual ~RooFunctor() ;

  Int_t nObs() const { 
    // Number of observables
    return _nobs ; 
  }
  Int_t nPar() const { 
    // Number of parameters;
    return _npar ;
  }

  //Int_t numCall() const { return _binding->numCall() ; }
  //void resetNumCall() const { _binding->resetNumCall() ; }

  
  Double_t operator()(Double_t x) const { return eval(x) ; }
  Double_t operator()(const Double_t* x, const Double_t* p) const { return eval(x,p) ; }
  Double_t operator()(const Double_t* x) const { return eval(x) ; }

  Double_t eval(const Double_t* /*x*/, const Double_t* /*p*/) const ;
  Double_t eval(const Double_t* /*x*/) const ;
  Double_t eval(Double_t  /*x*/) const ;
  
  RooAbsFunc& binding() { return *_binding ; }

protected:

  Bool_t          _ownBinding ; // Do we own the binding function 
  RooArgSet       _nset ; // Normalization observables
  RooAbsFunc*     _binding ; // Function binding
  Double_t*       _x ; //! Transfer array ;
  Int_t           _npar ; //! Number of parameters ;
  Int_t           _nobs ; //! Number of observables ;

  ClassDef(RooFunctor,0) // Export RooAbsReal as functor
};

#endif