Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-09-17 09:15:10

0001 /*****************************************************************************
0002  * Project: RooFit                                                           *
0003  * Package: RooFitModels                                                     *
0004  *    File: $Id: RooChebychev.h,v 1.6 2007/05/11 09:13:07 verkerke Exp $
0005  * Authors:                                                                  *
0006  *   GR, Gerhard Raven,   UC San Diego, Gerhard.Raven@slac.stanford.edu
0007  *                                                                           *
0008  * Copyright (c) 2000-2005, Regents of the University of California          *
0009  *                          and Stanford University. All rights reserved.    *
0010  *                                                                           *
0011  * Redistribution and use in source and binary forms,                        *
0012  * with or without modification, are permitted according to the terms        *
0013  * listed in LICENSE (http://roofit.sourceforge.net/license.txt)             *
0014  *****************************************************************************/
0015 #ifndef ROO_CHEBYCHEV
0016 #define ROO_CHEBYCHEV
0017 
0018 #include "RooAbsPdf.h"
0019 #include "RooRealProxy.h"
0020 #include "RooListProxy.h"
0021 
0022 class RooRealVar;
0023 class RooArgList ;
0024 
0025 class RooChebychev : public RooAbsPdf {
0026 public:
0027 
0028   RooChebychev() ;
0029   RooChebychev(const char *name, const char *title,
0030                RooAbsReal& _x, const RooArgList& _coefList) ;
0031 
0032   RooChebychev(const RooChebychev& other, const char *name = nullptr);
0033   TObject* clone(const char* newname=nullptr) const override { return new RooChebychev(*this, newname); }
0034 
0035   Int_t getAnalyticalIntegral(RooArgSet& allVars, RooArgSet& analVars, const char* rangeName=nullptr) const override ;
0036   double analyticalIntegral(Int_t code, const char* rangeName=nullptr) const override ;
0037 
0038   void selectNormalizationRange(const char* rangeName=nullptr, bool force=false) override ;
0039 
0040   RooAbsReal const &x() const { return *_x; }
0041   RooArgList const &coefList() const { return _coefList; }
0042 
0043   const char *refRangeName() const { return RooNameReg::str(_refRangeName); }
0044 
0045 private:
0046   RooRealProxy _x;
0047   RooListProxy _coefList ;
0048   mutable TNamed* _refRangeName = nullptr;
0049 
0050   double evaluate() const override;
0051   void doEval(RooFit::EvalContext &) const override;
0052   inline bool canComputeBatchWithCuda() const override { return true; }
0053 
0054   double evalAnaInt(const double a, const double b) const;
0055 
0056   ClassDefOverride(RooChebychev,2) // Chebychev polynomial PDF
0057 };
0058 
0059 #endif