1 /*****************************************************************************
4 * This code was autogenerated by RooClassFactory *
5 *****************************************************************************/
7 // Your description goes here...
11 #include "RooFermiCutoff.h"
12 #include "RooAbsReal.h"
13 #include "RooAbsCategory.h"
17 ClassImp(RooFermiCutoff)
19 RooFermiCutoff::RooFermiCutoff(const char *name, const char *title,
23 RooAbsPdf(name,title),
25 cutoff("cutoff","cutoff",this,_cutoff),
26 power("power","power",this,_power)
31 RooFermiCutoff::RooFermiCutoff(const RooFermiCutoff& other, const char* name) :
32 RooAbsPdf(other,name),
34 cutoff("cutoff",this,other.cutoff),
35 power("power",this,other.power)
41 Double_t RooFermiCutoff::evaluate() const
43 return (1. / (TMath::Exp((cutoff - x) / power) + 1.));