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 <float.h>
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 /// Destructor
38 ~RooConvCoefVar() override {
39 } ;
40
41 double getValV(const RooArgSet* nset=nullptr) const override ;
42
43 double evaluate() const override ;
44 Int_t getAnalyticalIntegral(RooArgSet& allVars, RooArgSet& analVars, const char* rangeName=nullptr) const override ;
45 double analyticalIntegral(Int_t code, const char* rangeName=nullptr) const override ;
46
47protected:
48
49 RooSetProxy _varSet ; ///< Not used anymore?
50 RooRealProxy _convPdf ; ///< RooAbsAnaConv object implementing our coefficient
51 Int_t _coefIdx ; ///< Index code of the coefficient
52
53 ClassDefOverride(RooConvCoefVar,1) // Auxiliary class representing the coefficient of a RooAbsAnaConvPdf as a RooAbsReal
54};
55
56#endif
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
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
RooAbsAnaConvPdf is the base class for PDFs that represent a physics model that can be analytically c...
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Definition RooAbsReal.h:62
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition RooArgSet.h:55
RooConvCoefVar is an auxilary class that represents the coefficient of a RooAbsAnaConvPdf implementat...
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() override
Destructor.
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