RooLegendre.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * Project: RooFit                                                           *
00003  * Package: RooFitModels                                                     *
00004  *    File: $Id: RooLegendre.h 37129 2010-11-30 22:38:11Z wouter $
00005  * Authors:                                                                  *
00006  *   GR, Gerhard Raven,   Nikhef & VU, Gerhard.Raven@nikhef.nl
00007  *                                                                           *
00008  * Copyright (c) 2010, Nikhef & VU. All rights reserved.
00009  *                                                                           *
00010  * Redistribution and use in source and binary forms,                        *
00011  * with or without modification, are permitted according to the terms        *
00012  * listed in LICENSE (http://roofit.sourceforge.net/license.txt)             *
00013  *****************************************************************************/
00014 #ifndef ROO_LEGENDRE
00015 #define ROO_LEGENDRE
00016 
00017 #include "RooAbsReal.h"
00018 #include "RooRealProxy.h"
00019 
00020 class RooLegendre : public RooAbsReal {
00021 public:
00022   RooLegendre() ;
00023   // an (associated) Legendre polynomial, P_l^m(x)
00024   // note: P_l(x) == P_l^0(x)
00025   RooLegendre(const char *name, const char *title, RooAbsReal& ctheta, int l, int m=0);
00026   // product of two associated Legendre polynomials, P_l1^m1(ctheta) * P_l2^m2(ctheta)
00027   RooLegendre(const char *name, const char *title, RooAbsReal& ctheta, int l1, int m1, int l2, int m2);
00028 
00029   RooLegendre(const RooLegendre& other, const char* name = 0);
00030   virtual TObject* clone(const char* newname) const { return new RooLegendre(*this, newname); }
00031   inline virtual ~RooLegendre() { }
00032 
00033   virtual Int_t getAnalyticalIntegral(RooArgSet& allVars, RooArgSet& analVars, const char* rangeName=0) const ;
00034   virtual Double_t analyticalIntegral(Int_t code, const char* rangeName=0) const ;
00035 
00036   virtual Int_t getMaxVal( const RooArgSet& vars) const;
00037   virtual Double_t maxVal( Int_t code) const;
00038 
00039 protected: // allow RooSpHarmonic access...
00040   RooRealProxy _ctheta;
00041   int _l1,_m1;
00042   int _l2,_m2;
00043 
00044   Double_t evaluate() const;
00045 
00046   ClassDef(RooLegendre,1) // Legendre polynomial
00047 };
00048 
00049 #endif

Generated on Tue Jul 5 14:26:13 2011 for ROOT_528-00b_version by  doxygen 1.5.1