Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/RooLegendre.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*****************************************************************************
0002  * Project: RooFit                                                           *
0003  * Package: RooFitModels                                                     *
0004  *    File: $Id$
0005  * Authors:                                                                  *
0006  *   GR, Gerhard Raven,   Nikhef & VU, Gerhard.Raven@nikhef.nl
0007  *                                                                           *
0008  * Copyright (c) 2010, Nikhef & VU. All rights reserved.
0009  *                                                                           *
0010  * Redistribution and use in source and binary forms,                        *
0011  * with or without modification, are permitted according to the terms        *
0012  * listed in LICENSE (http://roofit.sourceforge.net/license.txt)             *
0013  *****************************************************************************/
0014 #ifndef ROO_LEGENDRE
0015 #define ROO_LEGENDRE
0016 
0017 #include "RooAbsReal.h"
0018 #include "RooRealProxy.h"
0019 
0020 class RooLegendre : public RooAbsReal {
0021 public:
0022   RooLegendre() ;
0023   // an (associated) Legendre polynomial, P_l^m(x)
0024   // note: P_l(x) == P_l^0(x)
0025   RooLegendre(const char *name, const char *title, RooAbsReal& ctheta, int l, int m=0);
0026   // product of two associated Legendre polynomials, P_l1^m1(ctheta) * P_l2^m2(ctheta)
0027   RooLegendre(const char *name, const char *title, RooAbsReal& ctheta, int l1, int m1, int l2, int m2);
0028 
0029   RooLegendre(const RooLegendre& other, const char *name = nullptr);
0030   TObject* clone(const char* newname) const override { return new RooLegendre(*this, newname); }
0031 
0032   Int_t getAnalyticalIntegral(RooArgSet& allVars, RooArgSet& analVars, const char* rangeName=nullptr) const override ;
0033   double analyticalIntegral(Int_t code, const char* rangeName=nullptr) const override ;
0034 
0035   Int_t getMaxVal( const RooArgSet& vars) const override;
0036   double maxVal( Int_t code) const override;
0037 
0038 protected: // allow RooSpHarmonic access...
0039   RooRealProxy _ctheta;
0040   int _l1,_m1;
0041   int _l2,_m2;
0042 
0043   double evaluate() const override;
0044   void doEval(RooFit::EvalContext &) const override;
0045 
0046   ClassDefOverride(RooLegendre,1) // Legendre polynomial
0047 };
0048 
0049 #endif