Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:11:23

0001 // Author: Stephan Hageboeck, CERN, Oct 2019
0002 // Based on RooIpatia2 by Diego Martinez Santos, Nikhef, Diego.Martinez.Santos@cern.ch
0003 /*****************************************************************************
0004  * Project: RooFit                                                           *
0005  * Authors:                                                                  *
0006  *   WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu       *
0007  *   DK, David Kirkby,    UC Irvine,         dkirkby@uci.edu                 *
0008  *                                                                           *
0009  * Copyright (c) 2000-2019, Regents of the University of California          *
0010  *                          and Stanford University. All rights reserved.    *
0011  *                                                                           *
0012  * Redistribution and use in source and binary forms,                        *
0013  * with or without modification, are permitted according to the terms        *
0014  * listed in LICENSE (http://roofit.sourceforge.net/license.txt)             *
0015  *****************************************************************************/
0016 
0017 #ifndef ROOHYPATIA2
0018 #define ROOHYPATIA2
0019 
0020 #include "RooAbsPdf.h"
0021 #include "RooRealProxy.h"
0022 
0023 class RooAbsReal;
0024 
0025 class RooHypatia2 : public RooAbsPdf {
0026 public:
0027   RooHypatia2() {} ;
0028   RooHypatia2(const char *name, const char *title,
0029          RooAbsReal& x, RooAbsReal& lambda, RooAbsReal& zeta, RooAbsReal& beta,
0030          RooAbsReal& sigma, RooAbsReal& mu, RooAbsReal& a, RooAbsReal& n, RooAbsReal& a2, RooAbsReal& n2);
0031   RooHypatia2(const RooHypatia2& other, const char* name=nullptr);
0032   TObject* clone(const char* newname) const override { return new RooHypatia2(*this,newname); }
0033 
0034   /* Analytical integrals need testing.
0035 
0036   Int_t getAnalyticalIntegral(RooArgSet& allVars, RooArgSet& analVars, const char* rangeName=nullptr) const override;
0037   double analyticalIntegral(Int_t code, const char* rangeName=nullptr) const override;
0038 
0039   */
0040 
0041 
0042 private:
0043   RooRealProxy _x;
0044   RooRealProxy _lambda;
0045   RooRealProxy _zeta;
0046   RooRealProxy _beta;
0047   RooRealProxy _sigma;
0048   RooRealProxy _mu;
0049   RooRealProxy _a;
0050   RooRealProxy _n;
0051   RooRealProxy _a2;
0052   RooRealProxy _n2;
0053 
0054   double evaluate() const override;
0055   void doEval(RooFit::EvalContext &) const override;
0056 
0057   /// \cond CLASS_DEF_DOXY
0058   ClassDefOverride(RooHypatia2, 1);
0059   /// \endcond
0060 };
0061 
0062 #endif