]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGLF/SPECTRA/PiKaPr/TOF/pPb502/lib/RooFermiCutoff.cxx
Merge branch 'feature-movesplit'
[u/mrichter/AliRoot.git] / PWGLF / SPECTRA / PiKaPr / TOF / pPb502 / lib / RooFermiCutoff.cxx
CommitLineData
59e49925 1/*****************************************************************************
2 * Project: RooFit *
3 * *
4 * This code was autogenerated by RooClassFactory *
5 *****************************************************************************/
6
7// Your description goes here...
8
9#include "Riostream.h"
10
11#include "RooFermiCutoff.h"
12#include "RooAbsReal.h"
13#include "RooAbsCategory.h"
14#include <math.h>
15#include "TMath.h"
16
17ClassImp(RooFermiCutoff)
18
19 RooFermiCutoff::RooFermiCutoff(const char *name, const char *title,
20 RooAbsReal& _x,
21 RooAbsReal& _cutoff,
22 RooAbsReal& _power) :
23 RooAbsPdf(name,title),
24 x("x","x",this,_x),
25 cutoff("cutoff","cutoff",this,_cutoff),
26 power("power","power",this,_power)
27 {
28 }
29
30
31 RooFermiCutoff::RooFermiCutoff(const RooFermiCutoff& other, const char* name) :
32 RooAbsPdf(other,name),
33 x("x",this,other.x),
34 cutoff("cutoff",this,other.cutoff),
35 power("power",this,other.power)
36 {
37 }
38
39
40
41 Double_t RooFermiCutoff::evaluate() const
42 {
43 return (1. / (TMath::Exp((cutoff - x) / power) + 1.));
44 }
45
46
47