Roofit excludin range

How can I explude range from my fit, using roofit?

Thanx,

k.

Wouter will process your message once he will be back online.

Rene

Hi,

Roofit does not support complete boolean logic with ranges, but it does allow you for most operations taking ranges to specify multiple ranges
which allows you to effectively exclude ranges. For example one can define

RooRealVar (“x”,“x”,-10,10) ;
x.setRange(“SB1”,-10,-5) ;
x.setRange(“SB2”,5,10) ;

In any subsequent operation with ranges (fitting, integration) one can
effectively exclude the central range [-5,5] by performing that operation on the ‘or’ of the two ranges specified as range “SB1,SB2”.

Wouter