Logo ROOT  
Reference Guide
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 inline RooConvCoefVar() {
32 // Default constructor
33 }
34 RooConvCoefVar(const char *name, const char *title, const RooAbsAnaConvPdf& input, Int_t coefIdx, const RooArgSet* varList=0) ;
35 RooConvCoefVar(const RooConvCoefVar& other, const char* name=0);
36 virtual TObject* clone(const char* newname) const { return new RooConvCoefVar(*this,newname); }
37 virtual ~RooConvCoefVar() {
38 // Destructor
39 } ;
40
41 virtual Double_t getValV(const RooArgSet* nset=0) const ;
42
43 virtual Double_t evaluate() const ;
44 virtual Int_t getAnalyticalIntegral(RooArgSet& allVars, RooArgSet& analVars, const char* rangeName=0) const ;
45 virtual Double_t analyticalIntegral(Int_t code, const char* rangeName=0) const ;
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 ClassDef(RooConvCoefVar,1) // Auxiliary class representing the coefficient of a RooAbsAnaConvPdf as a RooAbsReal
54};
55
56#endif
double Double_t
Definition: RtypesCore.h:57
#define ClassDef(name, id)
Definition: Rtypes.h:322
char name[80]
Definition: TGX11.cxx:109
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:60
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition: RooArgSet.h:28
RooConvCoefVar is an auxilary class that represents the coefficient of a RooAbsAnaConvPdf implementat...
virtual Double_t evaluate() const
Return value of chosen coefficient.
virtual Double_t getValV(const RooArgSet *nset=0) const
Return value of chosen coefficient.
RooRealProxy _convPdf
virtual ~RooConvCoefVar()
virtual Double_t analyticalIntegral(Int_t code, const char *rangeName=0) const
Return analytical integral of chosen coefficient.
RooSetProxy _varSet
virtual Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=0) const
Return analytical integration capabilities of chosen coefficient.
virtual TObject * clone(const char *newname) const
RooSetProxy is the concrete proxy for RooArgSet objects.
Definition: RooSetProxy.h:24
Mother of all ROOT objects.
Definition: TObject.h:37