File indexing completed on 2025-01-18 10:11:28
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef ROO_VOIGTIAN
0017 #define ROO_VOIGTIAN
0018
0019 #include <RooAbsPdf.h>
0020 #include <RooRealProxy.h>
0021
0022 class RooVoigtian : public RooAbsPdf {
0023 public:
0024 RooVoigtian() {}
0025 RooVoigtian(const char *name, const char *title,
0026 RooAbsReal& _x, RooAbsReal& _mean,
0027 RooAbsReal& _width, RooAbsReal& _sigma,
0028 bool doFast = false);
0029 RooVoigtian(const RooVoigtian& other, const char* name=nullptr) ;
0030 TObject* clone(const char* newname) const override { return new RooVoigtian(*this,newname); }
0031
0032
0033
0034 inline void selectFastAlgorithm() { _doFast = true; }
0035
0036
0037
0038 inline void selectDefaultAlgorithm() { _doFast = false; }
0039
0040 protected:
0041
0042 RooRealProxy x ;
0043 RooRealProxy mean ;
0044 RooRealProxy width ;
0045 RooRealProxy sigma ;
0046
0047 double evaluate() const override ;
0048 void doEval(RooFit::EvalContext &) const override;
0049 inline bool canComputeBatchWithCuda() const override { return true; }
0050
0051 private:
0052
0053 bool _doFast = false;
0054 ClassDefOverride(RooVoigtian,2)
0055 };
0056
0057 #endif
0058