Back to home page

EIC code displayed by LXR

 
 

    


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

0001 /*****************************************************************************
0002  * Project: RooFit                                                           *
0003  * Package: RooFitCore                                                       *
0004  *    File: $Id: RooConvCoefVar.h,v 1.14 2007/05/14 17:56:18 brun Exp $
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-2005, 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 #ifndef ROO_CONV_COEF_VAR
0017 #define ROO_CONV_COEF_VAR
0018 
0019 #include <cmath>
0020 #include <cfloat>
0021 
0022 #include "RooAbsReal.h"
0023 #include "RooRealVar.h"
0024 #include "RooRealProxy.h"
0025 #include "RooSetProxy.h"
0026 class RooAbsAnaConvPdf ;
0027 
0028 class RooConvCoefVar : public RooAbsReal {
0029 public:
0030   // Constructors, assignment etc.
0031   /// Default constructor
0032   inline RooConvCoefVar() {
0033   }
0034   RooConvCoefVar(const char *name, const char *title, const RooAbsAnaConvPdf& input, Int_t coefIdx, const RooArgSet* varList=nullptr) ;
0035   RooConvCoefVar(const RooConvCoefVar& other, const char* name=nullptr);
0036   TObject* clone(const char* newname) const override { return new RooConvCoefVar(*this,newname); }
0037 
0038   double getValV(const RooArgSet* nset=nullptr) const override ;
0039 
0040   double evaluate() const override ;
0041   Int_t getAnalyticalIntegral(RooArgSet& allVars, RooArgSet& analVars, const char* rangeName=nullptr) const override ;
0042   double analyticalIntegral(Int_t code, const char* rangeName=nullptr) const override ;
0043 
0044 protected:
0045 
0046   RooSetProxy  _varSet ;  ///< Not used anymore?
0047   RooRealProxy _convPdf ; ///< RooAbsAnaConv object implementing our coefficient
0048   Int_t    _coefIdx  ;    ///< Index code of the coefficient
0049 
0050   ClassDefOverride(RooConvCoefVar,1) // Auxiliary class representing the coefficient of a RooAbsAnaConvPdf as a RooAbsReal
0051 };
0052 
0053 #endif