CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
root::RooFitFunction< X, Expr > Class Template Reference

#include <RooFitFunction.h>

Inheritance diagram for root::RooFitFunction< X, Expr >:

Public Member Functions

void add (RooAbsReal &rA, funct::Parameter &a)
 
TObject * clone (const char *newName) const override
 
 RooFitFunction (const RooFitFunction< X, Expr > &other, const char *name=nullptr)
 
 RooFitFunction (const char *name, const char *title, const Expr &e, RooAbsReal &x)
 
 RooFitFunction (const char *name, const char *title, const Expr &e, RooAbsReal &x, RooAbsReal &rA, funct::Parameter &a)
 
 RooFitFunction (const char *name, const char *title, const Expr &e, RooAbsReal &x, RooAbsReal &rA, funct::Parameter &a, RooAbsReal &rB, funct::Parameter &b)
 
 RooFitFunction (const char *name, const char *title, const Expr &e, RooAbsReal &x, RooAbsReal &rA, funct::Parameter &a, RooAbsReal &rB, funct::Parameter &b, RooAbsReal &rC, funct::Parameter &c)
 

Private Member Functions

Double_t evaluate () const override
 

Private Attributes

Expr e_
 
RooListProxy parsArgs_
 
std::vector< std::shared_ptr< double > > parsPtrs_
 
RooRealProxy x_
 

Detailed Description

template<typename X, typename Expr>
class root::RooFitFunction< X, Expr >

Definition at line 16 of file RooFitFunction.h.

Constructor & Destructor Documentation

◆ RooFitFunction() [1/5]

template<typename X, typename Expr>
root::RooFitFunction< X, Expr >::RooFitFunction ( const RooFitFunction< X, Expr > &  other,
const char *  name = nullptr 
)
inline

Definition at line 18 of file RooFitFunction.h.

References trackingPlots::other.

19  : RooAbsReal(other, name),
20  e_(other.e_),
21  x_(X::name(), this, other.x_),
22  parsPtrs_{other.parsPtrs_},
23  parsArgs_{"!pars", this, other.parsArgs_} {}
RooListProxy parsArgs_
std::vector< std::shared_ptr< double > > parsPtrs_

◆ RooFitFunction() [2/5]

template<typename X, typename Expr>
root::RooFitFunction< X, Expr >::RooFitFunction ( const char *  name,
const char *  title,
const Expr &  e,
RooAbsReal &  x 
)
inline

Definition at line 24 of file RooFitFunction.h.

References x.

25  : RooAbsReal(name, title),
26  e_(e),
27  x_(X::name(), X::name(), this, x),
28  parsArgs_("!pars", "List of parameters", this) {}
RooListProxy parsArgs_

◆ RooFitFunction() [3/5]

template<typename X, typename Expr>
root::RooFitFunction< X, Expr >::RooFitFunction ( const char *  name,
const char *  title,
const Expr &  e,
RooAbsReal &  x,
RooAbsReal &  rA,
funct::Parameter a 
)
inline

Definition at line 29 of file RooFitFunction.h.

References MillePedeFileConverter_cfg::e, Skims_PA_cff::name, runGCPTkAlMap::title, and x.

31  : RooFitFunction{name, title, e, x} {
32  add(rA, a);
33  }
void add(RooAbsReal &rA, funct::Parameter &a)
RooFitFunction(const RooFitFunction< X, Expr > &other, const char *name=nullptr)
double a
Definition: hdecay.h:119

◆ RooFitFunction() [4/5]

template<typename X, typename Expr>
root::RooFitFunction< X, Expr >::RooFitFunction ( const char *  name,
const char *  title,
const Expr &  e,
RooAbsReal &  x,
RooAbsReal &  rA,
funct::Parameter a,
RooAbsReal &  rB,
funct::Parameter b 
)
inline

Definition at line 34 of file RooFitFunction.h.

References a, MillePedeFileConverter_cfg::e, Skims_PA_cff::name, runGCPTkAlMap::title, and x.

42  : RooFitFunction{name, title, e, x, rA, a} {
43  add(rB, b);
44  }
void add(RooAbsReal &rA, funct::Parameter &a)
double b
Definition: hdecay.h:118
RooFitFunction(const RooFitFunction< X, Expr > &other, const char *name=nullptr)
double a
Definition: hdecay.h:119

◆ RooFitFunction() [5/5]

template<typename X, typename Expr>
root::RooFitFunction< X, Expr >::RooFitFunction ( const char *  name,
const char *  title,
const Expr &  e,
RooAbsReal &  x,
RooAbsReal &  rA,
funct::Parameter a,
RooAbsReal &  rB,
funct::Parameter b,
RooAbsReal &  rC,
funct::Parameter c 
)
inline

Definition at line 45 of file RooFitFunction.h.

References a, b, MillePedeFileConverter_cfg::e, Skims_PA_cff::name, runGCPTkAlMap::title, and x.

55  : RooFitFunction{name, title, e, x, rA, a, rB, b} {
56  add(rC, c);
57  }
void add(RooAbsReal &rA, funct::Parameter &a)
double b
Definition: hdecay.h:118
RooFitFunction(const RooFitFunction< X, Expr > &other, const char *name=nullptr)
double a
Definition: hdecay.h:119

Member Function Documentation

◆ add()

template<typename X, typename Expr>
void root::RooFitFunction< X, Expr >::add ( RooAbsReal &  rA,
funct::Parameter a 
)
inline

Definition at line 58 of file RooFitFunction.h.

References a, root::RooFitFunction< X, Expr >::parsArgs_, and root::RooFitFunction< X, Expr >::parsPtrs_.

Referenced by counter.Counter::register().

58  {
59  parsPtrs_.emplace_back(a.ptr());
60  parsArgs_.add(rA);
61  }
RooListProxy parsArgs_
double a
Definition: hdecay.h:119
std::vector< std::shared_ptr< double > > parsPtrs_

◆ clone()

template<typename X, typename Expr>
TObject* root::RooFitFunction< X, Expr >::clone ( const char *  newName) const
inlineoverride

Definition at line 62 of file RooFitFunction.h.

References mps_merge::newName.

62 { return new RooFitFunction<X, Expr>(*this, newName); }
string newName
Definition: mps_merge.py:86

◆ evaluate()

template<typename X, typename Expr>
Double_t root::RooFitFunction< X, Expr >::evaluate ( ) const
inlineoverrideprivate

Definition at line 69 of file RooFitFunction.h.

References root::RooFitFunction< X, Expr >::e_, mps_fire::i, root::RooFitFunction< X, Expr >::parsArgs_, root::RooFitFunction< X, Expr >::parsPtrs_, and root::RooFitFunction< X, Expr >::x_.

69  {
70  X::set(x_);
71  for (std::size_t i = 0; i < parsPtrs_.size(); ++i) {
72  *(parsPtrs_[i]) = static_cast<RooAbsReal const&>(parsArgs_[i]).getVal(parsArgs_.nset());
73  }
74  return e_();
75  }
RooListProxy parsArgs_
std::vector< std::shared_ptr< double > > parsPtrs_

Member Data Documentation

◆ e_

template<typename X, typename Expr>
Expr root::RooFitFunction< X, Expr >::e_
private

Definition at line 65 of file RooFitFunction.h.

Referenced by root::RooFitFunction< X, Expr >::evaluate().

◆ parsArgs_

template<typename X, typename Expr>
RooListProxy root::RooFitFunction< X, Expr >::parsArgs_
private

◆ parsPtrs_

template<typename X, typename Expr>
std::vector<std::shared_ptr<double> > root::RooFitFunction< X, Expr >::parsPtrs_
private

◆ x_

template<typename X, typename Expr>
RooRealProxy root::RooFitFunction< X, Expr >::x_
private

Definition at line 66 of file RooFitFunction.h.

Referenced by root::RooFitFunction< X, Expr >::evaluate().