Step function in Roofit with pyROOT

Dear experts,

Is there an example of creating a step function with roofit in python?
I want to create a simple step function with var x (x ranging from 80 to 160), such that f(x) =1 for x<115 and f(x) = 0 for x > 115.

Apologies for a very basic question but I cant seem to find the right syntax to create this pdf in Roofit with python.

Many thanks.

I think you need the RooParametricStepFunction:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.