Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:24:13

0001  /***************************************************************************** 
0002   * Project: RooFit                                                           * 
0003   *                                                                           * 
0004   * Copyright (c) 2000-2005, Regents of the University of California          * 
0005   *                          and Stanford University. All rights reserved.    * 
0006   *                                                                           * 
0007   * Redistribution and use in source and binary forms,                        * 
0008   * with or without modification, are permitted according to the terms        * 
0009   * listed in LICENSE (http://roofit.sourceforge.net/license.txt)             * 
0010   *****************************************************************************/ 
0011 
0012  // -- CLASS DESCRIPTION [PDF] -- 
0013  // Your description goes here... 
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    // ENTER EXPRESSION IN TERMS OF VARIABLE ARGUMENTS HERE 
0046 
0047 
0048    if(m <= 0.0 ){ return 1000.0; }
0049    else{ return TMath::Power(m, alpha); }
0050  } 
0051 
0052 
0053