File indexing completed on 2024-04-06 12:24:13
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 #include "Riostream.h"
0016
0017 #include "RooPowLaw.h"
0018 #include "RooAbsReal.h"
0019 #include "RooAbsCategory.h"
0020
0021 ClassImp(RooPowLaw);
0022
0023 RooPowLaw::RooPowLaw(const char *name, const char *title,
0024 RooAbsReal& _m,
0025 RooAbsReal& _alpha
0026 ) :
0027 RooAbsPdf(name,title),
0028 m("m","m",this,_m),
0029 alpha(" alpha"," alpha",this,_alpha)
0030 {
0031 }
0032
0033
0034 RooPowLaw::RooPowLaw(const RooPowLaw& other, const char* name) :
0035 RooAbsPdf(other,name),
0036 m("m",this,other.m),
0037 alpha(" alpha",this,other. alpha)
0038 {
0039 }
0040
0041
0042
0043 Double_t RooPowLaw::evaluate() const
0044 {
0045
0046
0047
0048 if(m <= 0.0 ){ return 1000.0; }
0049 else{ return TMath::Power(m, alpha); }
0050 }
0051
0052
0053