MINT2
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Eff4piSymmetric::ProdWithFitParameter Class Reference

#include <Eff4piSymmetric.h>

Public Member Functions

std::string name () const
 
 ProdWithFitParameter (const symPolyTerm &p1, const symPolyTerm &p2, const std::string &prefix, double initValue, double guessError, MINT::MinuitParameterSet *pset=0)
 
double getVal (const std::vector< double * > &t1_coords, const std::vector< double * > &t2_coords) const
 
void print (std::ostream &os=std::cout) const
 
MINT::counted_ptr< MINT::FitParameterfp ()
 

Private Member Functions

bool makeFitParameter (double initVal, double guessError)
 

Private Attributes

MINT::counted_ptr< MINT::FitParameter_fp
 
const symPolyTerm_t1
 
const symPolyTerm_t2
 
std::string _prefix
 
MINT::MinuitParameterSet_pset
 

Detailed Description

Definition at line 21 of file Eff4piSymmetric.h.

Constructor & Destructor Documentation

◆ ProdWithFitParameter()

Eff4piSymmetric::ProdWithFitParameter::ProdWithFitParameter ( const symPolyTerm p1,
const symPolyTerm p2,
const std::string &  prefix,
double  initValue,
double  guessError,
MINT::MinuitParameterSet pset = 0 
)

Definition at line 150 of file Eff4piSymmetric.cpp.

156  : _t1(p1)
157  , _t2(p2)
158  , _prefix(prefix)
159  , _pset(pset)
160 {
161  makeFitParameter(initValue, guessError);
162 }
MINT::MinuitParameterSet * _pset
bool makeFitParameter(double initVal, double guessError)

Member Function Documentation

◆ fp()

MINT::counted_ptr<MINT::FitParameter> Eff4piSymmetric::ProdWithFitParameter::fp ( )
inline

Definition at line 44 of file Eff4piSymmetric.h.

44 {return _fp;}
MINT::counted_ptr< MINT::FitParameter > _fp

◆ getVal()

double Eff4piSymmetric::ProdWithFitParameter::getVal ( const std::vector< double * > &  t1_coords,
const std::vector< double * > &  t2_coords 
) const

Definition at line 189 of file Eff4piSymmetric.cpp.

191  {
192 
193  return ((double) (*_fp)) * _t1.eval(t1_coords) * _t2.eval(t2_coords);
194 }
double eval(double x, double y) const
MINT::counted_ptr< MINT::FitParameter > _fp

◆ makeFitParameter()

bool Eff4piSymmetric::ProdWithFitParameter::makeFitParameter ( double  initVal,
double  guessError 
)
private

Definition at line 171 of file Eff4piSymmetric.cpp.

171  {
173  fp(new FitParameter(name()
174  , 0
175  , initValue, guessError, 0, 0
176  , _pset, NamedParameterBase::QUIET)
177  );
178  _fp = fp;
179  return true;
180 }
MINT::counted_ptr< MINT::FitParameter > fp()
MINT::MinuitParameterSet * _pset
MINT::counted_ptr< MINT::FitParameter > _fp

◆ name()

std::string Eff4piSymmetric::ProdWithFitParameter::name ( ) const

Definition at line 166 of file Eff4piSymmetric.cpp.

166  {
167  return _prefix + "_" + _t1.name() + "_" + _t2.name();
168 }
const std::string & name() const
Definition: symPolyTerm.h:45

◆ print()

void Eff4piSymmetric::ProdWithFitParameter::print ( std::ostream &  os = std::cout) const

Definition at line 183 of file Eff4piSymmetric.cpp.

183  {
184  os << "(" << _fp->name() << ")*(" << _t1 << ") * (" << _t2 << ")";
185 }
virtual const std::string & name() const
Definition: FitParameter.h:144
MINT::counted_ptr< MINT::FitParameter > _fp

Member Data Documentation

◆ _fp

MINT::counted_ptr<MINT::FitParameter> Eff4piSymmetric::ProdWithFitParameter::_fp
private

Definition at line 22 of file Eff4piSymmetric.h.

◆ _prefix

std::string Eff4piSymmetric::ProdWithFitParameter::_prefix
private

Definition at line 25 of file Eff4piSymmetric.h.

◆ _pset

MINT::MinuitParameterSet* Eff4piSymmetric::ProdWithFitParameter::_pset
private

Definition at line 26 of file Eff4piSymmetric.h.

◆ _t1

const symPolyTerm& Eff4piSymmetric::ProdWithFitParameter::_t1
private

Definition at line 23 of file Eff4piSymmetric.h.

◆ _t2

const symPolyTerm& Eff4piSymmetric::ProdWithFitParameter::_t2
private

Definition at line 24 of file Eff4piSymmetric.h.


The documentation for this class was generated from the following files: