Logo ROOT   6.08/07
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 "Riosfwd.h"
20 #include <math.h>
21 #include <float.h>
22 
23 #include "RooAbsReal.h"
24 #include "RooRealVar.h"
25 #include "RooRealProxy.h"
26 #include "RooSetProxy.h"
27 class RooAbsAnaConvPdf ;
28 
29 class RooConvCoefVar : public RooAbsReal {
30 public:
31  // Constructors, assignment etc.
32  inline RooConvCoefVar() {
33  // Default constructor
34  }
35  RooConvCoefVar(const char *name, const char *title, const RooAbsAnaConvPdf& input, Int_t coefIdx, const RooArgSet* varList=0) ;
36  RooConvCoefVar(const RooConvCoefVar& other, const char* name=0);
37  virtual TObject* clone(const char* newname) const { return new RooConvCoefVar(*this,newname); }
38  virtual ~RooConvCoefVar() {
39  // Destructor
40  } ;
41 
42  virtual Double_t getValV(const RooArgSet* nset=0) const ;
43 
44  virtual Double_t evaluate() const ;
45  virtual Int_t getAnalyticalIntegral(RooArgSet& allVars, RooArgSet& analVars, const char* rangeName=0) const ;
46  virtual Double_t analyticalIntegral(Int_t code, const char* rangeName=0) const ;
47 
48 protected:
49 
50  RooSetProxy _varSet ; // Not used anymore?
51  RooRealProxy _convPdf ; // RooAbsAnaConv object implementing our coefficient
52  Int_t _coefIdx ; // Index code of the coefficient
53 
54  ClassDef(RooConvCoefVar,1) // Auxiliary class representing the coefficient of a RooAbsAnaConvPdf as a RooAbsReal
55 };
56 
57 #endif
virtual ~RooConvCoefVar()
int Int_t
Definition: RtypesCore.h:41
#define ClassDef(name, id)
Definition: Rtypes.h:254
virtual Double_t analyticalIntegral(Int_t code, const char *rangeName=0) const
Return analytical integral of chosen coefficient.
RooSetProxy _varSet
virtual Double_t getValV(const RooArgSet *nset=0) const
Return value of chosen coefficient.
RooRealProxy _convPdf
RooConvCoefVar is an auxilary class that represents the coefficient of a RooAbsAnaConvPdf implementat...
virtual Double_t evaluate() const
Return value of chosen coefficient.
double Double_t
Definition: RtypesCore.h:55
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Definition: RooAbsReal.h:53
virtual TObject * clone(const char *newname) const
Mother of all ROOT objects.
Definition: TObject.h:37
RooSetProxy is the concrete proxy for RooArgSet objects.
Definition: RooSetProxy.h:25
virtual Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=0) const
Return analytical integration capabilities of chosen coefficient.
RooRealProxy is the concrete proxy for RooAbsReal objects A RooRealProxy is the general mechanism to ...
Definition: RooRealProxy.h:23
char name[80]
Definition: TGX11.cxx:109