Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
RooSpHarmonic.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Project: RooFit *
3  * Package: RooFitModels *
4  * File: $Id$
5  * Authors: *
6  * GR, Gerhard Raven, Nikhef & VU, Gerhard.Raven@nikhef.nl
7  * *
8  * Copyright (c) 2010, Nikhef & VU. All rights reserved.
9  * *
10  * Redistribution and use in source and binary forms, *
11  * with or without modification, are permitted according to the terms *
12  * listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
13  *****************************************************************************/
14 #ifndef ROO_SPHARMONIC
15 #define ROO_SPHARMONIC
16 
17 #include "RooLegendre.h"
18 #include "RooRealProxy.h"
19 
20 class RooSpHarmonic : public RooLegendre {
21 public:
22  RooSpHarmonic() ;
23  RooSpHarmonic(const char *name, const char *title, RooAbsReal& ctheta, RooAbsReal& phi, int l, int m);
24  RooSpHarmonic(const char *name, const char *title, RooAbsReal& ctheta, RooAbsReal& phi, int l1, int m1, int l2, int m2);
25 
26  RooSpHarmonic(const RooSpHarmonic& other, const char* name = 0);
27  virtual TObject* clone(const char* newname) const { return new RooSpHarmonic(*this, newname); }
28  inline virtual ~RooSpHarmonic() { }
29 
30  virtual Int_t getAnalyticalIntegral(RooArgSet& allVars, RooArgSet& analVars, const char* rangeName=0) const ;
31  virtual Double_t analyticalIntegral(Int_t code, const char* rangeName=0) const ;
32 
33  virtual Int_t getMaxVal( const RooArgSet& vars) const;
34  virtual Double_t maxVal( Int_t code) const;
35 
36 private:
37  RooRealProxy _phi;
38  double _n;
39  int _sgn1,_sgn2;
40 
41  Double_t evaluate() const;
42 
43  ClassDef(RooSpHarmonic,1) // SpHarmonic polynomial
44 };
45 
46 #endif