laura is hosted by Hepforge, IPPP Durham

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#75 closed enhancement (fixed)

question: setNBkgndEvents with LauFormulaPar

Reported by: guest Owned by: Thomas Latham
Priority: major Milestone: v3r4
Version: v3r2 Keywords:
Cc:

Description

Hello, Since I want to fix the ratio of yields of different background components, I make one of the yield by using LauFormulaPar. But it looks like the setNBkgndEvents function of LauCPFitModel/LauAbsFitModel cannot accept using LauFormulaPar as input. Is there anyway to fix the ratio between yields of different components?

Thank you.

Change History (3)

comment:1 Changed 6 years ago by Thomas Latham

Owner: set to Thomas Latham
Status: newassigned

Thanks for reporting this issue. I will look into whether it is feasible to change the argument to this function to be a pointer to LauAbsRValue, which will allow you to provide a LauFormulaPar. In the meantime, you can make such a constraint via the addConstraint function inherited from LauFitObject, see: https://laura.hepforge.org/doc/doxygen/v3r2/classLauFitObject.html#acc04aee868c227f8873587865cb18497

Last edited 6 years ago by Thomas Latham (previous) (diff)

comment:2 Changed 6 years ago by Thomas Latham

Resolution: fixed
Status: assignedclosed

(In [529]) Allow background yields to be specified as any LauAbsRValue (i.e. LauParameter or now also LauFormulaPar), fix #75

comment:3 Changed 6 years ago by Thomas Latham

Milestone: v3r4
Type: defectenhancement
Note: See TracTickets for help on using tickets.