Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooConvCoefVar.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Project: RooFit *
3 * Package: RooFitCore *
4 * File: $Id: RooConvCoefVar.h,v 1.14 2007/05/14 17:56:18 brun Exp $
5 * Authors: *
6 * WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu *
7 * DK, David Kirkby, UC Irvine, dkirkby@uci.edu *
8 * *
9 * Copyright (c) 2000-2005, Regents of the University of California *
10 * and Stanford University. All rights reserved. *
11 * *
12 * Redistribution and use in source and binary forms, *
13 * with or without modification, are permitted according to the terms *
14 * listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
15 *****************************************************************************/
16#ifndef ROO_CONV_COEF_VAR
17#define ROO_CONV_COEF_VAR
18
19#include <cmath>
20#include <cfloat>
21
22#include "RooAbsReal.h"
23#include "RooRealVar.h"
24#include "RooRealProxy.h"
25#include "RooSetProxy.h"
26class RooAbsAnaConvPdf ;
27
28class RooConvCoefVar : public RooAbsReal {
29public:
30 // Constructors, assignment etc.
31 /// Default constructor
32 inline RooConvCoefVar() {
33 }
34 RooConvCoefVar(const char *name, const char *title, const RooAbsAnaConvPdf& input, Int_t coefIdx, const RooArgSet* varList=nullptr) ;
35 RooConvCoefVar(const RooConvCoefVar& other, const char* name=nullptr);
36 TObject* clone(const char* newname) const override { return new RooConvCoefVar(*this,newname); }
37
38 double getValV(const RooArgSet* nset=nullptr) const override ;
39
40 double evaluate() const override ;
41 Int_t getAnalyticalIntegral(RooArgSet& allVars, RooArgSet& analVars, const char* rangeName=nullptr) const override ;
42 double analyticalIntegral(Int_t code, const char* rangeName=nullptr) const override ;
43
44protected:
45
46 RooSetProxy _varSet ; ///< Not used anymore?
47 RooRealProxy _convPdf ; ///< RooAbsAnaConv object implementing our coefficient
48 Int_t _coefIdx ; ///< Index code of the coefficient
49
50 ClassDefOverride(RooConvCoefVar,1) // Auxiliary class representing the coefficient of a RooAbsAnaConvPdf as a RooAbsReal
51};
52
53#endif
#define ClassDefOverride(name, id)
Definition Rtypes.h:346
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void input
char name[80]
Definition TGX11.cxx:110
Base class for PDFs that represent a physics model that can be analytically convolved with a resoluti...
Abstract base class for objects that represent a real value and implements functionality common to al...
Definition RooAbsReal.h:59
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition RooArgSet.h:24
Auxiliary class that represents the coefficient of a RooAbsAnaConvPdf implementation as a separate Ro...
TObject * clone(const char *newname) const override
double getValV(const RooArgSet *nset=nullptr) const override
Return value of chosen coefficient.
RooRealProxy _convPdf
RooAbsAnaConv object implementing our coefficient.
RooConvCoefVar()
Default constructor.
Int_t _coefIdx
Index code of the coefficient.
RooSetProxy _varSet
Not used anymore?
double evaluate() const override
Return value of chosen coefficient.
double analyticalIntegral(Int_t code, const char *rangeName=nullptr) const override
Return analytical integral of chosen coefficient.
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=nullptr) const override
Return analytical integration capabilities of chosen coefficient.
Mother of all ROOT objects.
Definition TObject.h:41