Back to home page

EIC code displayed by LXR

 
 

    


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

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=nullptr) const override { return new RooHypatia2(*this,newname); }
0033 
0034   Int_t getAnalyticalIntegral(RooArgSet& allVars, RooArgSet& analVars, const char* rangeName=nullptr) const override;
0035   double analyticalIntegral(Int_t code, const char* rangeName=nullptr) const override;
0036 
0037 private:
0038   RooRealProxy _x;
0039   RooRealProxy _lambda;
0040   RooRealProxy _zeta;
0041   RooRealProxy _beta;
0042   RooRealProxy _sigma;
0043   RooRealProxy _mu;
0044   RooRealProxy _a;
0045   RooRealProxy _n;
0046   RooRealProxy _a2;
0047   RooRealProxy _n2;
0048 
0049   double evaluate() const override;
0050   void doEval(RooFit::EvalContext &) const override;
0051 
0052   /// \cond CLASS_DEF_DOXY
0053   ClassDefOverride(RooHypatia2, 1);
0054   /// \endcond
0055 };
0056 
0057 #endif