RooSpHarmonic.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * Project: RooFit                                                           *
00003  * Package: RooFitModels                                                     *
00004  *    File: $Id: RooSpHarmonic.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_SPHARMONIC
00015 #define ROO_SPHARMONIC
00016 
00017 #include "RooLegendre.h"
00018 #include "RooRealProxy.h"
00019 
00020 class RooSpHarmonic : public RooLegendre {
00021 public:
00022   RooSpHarmonic() ;
00023   RooSpHarmonic(const char *name, const char *title, RooAbsReal& ctheta, RooAbsReal& phi, int l, int m);
00024   RooSpHarmonic(const char *name, const char *title, RooAbsReal& ctheta, RooAbsReal& phi, int l1, int m1, int l2, int m2);
00025 
00026   RooSpHarmonic(const RooSpHarmonic& other, const char* name = 0);
00027   virtual TObject* clone(const char* newname) const { return new RooSpHarmonic(*this, newname); }
00028   inline virtual ~RooSpHarmonic() { }
00029 
00030   virtual Int_t getAnalyticalIntegral(RooArgSet& allVars, RooArgSet& analVars, const char* rangeName=0) const ;
00031   virtual Double_t analyticalIntegral(Int_t code, const char* rangeName=0) const ;
00032 
00033   virtual Int_t getMaxVal( const RooArgSet& vars) const;
00034   virtual Double_t maxVal( Int_t code) const;
00035 
00036 private:
00037   RooRealProxy _phi;
00038   double _n;
00039   int _sgn1,_sgn2;
00040 
00041   Double_t evaluate() const;
00042 
00043   ClassDef(RooSpHarmonic,1) // SpHarmonic polynomial
00044 };
00045 
00046 #endif

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