RooConvCoefVar.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * Project: RooFit                                                           *
00003  * Package: RooFitCore                                                       *
00004  *    File: $Id: RooConvCoefVar.h,v 1.14 2007/05/14 17:56:18 brun Exp $
00005  * Authors:                                                                  *
00006  *   WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu       *
00007  *   DK, David Kirkby,    UC Irvine,         dkirkby@uci.edu                 *
00008  *                                                                           *
00009  * Copyright (c) 2000-2005, Regents of the University of California          *
00010  *                          and Stanford University. All rights reserved.    *
00011  *                                                                           *
00012  * Redistribution and use in source and binary forms,                        *
00013  * with or without modification, are permitted according to the terms        *
00014  * listed in LICENSE (http://roofit.sourceforge.net/license.txt)             *
00015  *****************************************************************************/
00016 #ifndef ROO_CONV_COEF_VAR
00017 #define ROO_CONV_COEF_VAR
00018 
00019 #include "Riosfwd.h"
00020 #include <math.h>
00021 #include <float.h>
00022 
00023 #include "RooAbsReal.h"
00024 #include "RooRealVar.h"
00025 #include "RooRealProxy.h"
00026 #include "RooSetProxy.h"
00027 class RooAbsAnaConvPdf ;
00028 
00029 class RooConvCoefVar : public RooAbsReal {
00030 public:
00031   // Constructors, assignment etc.
00032   inline RooConvCoefVar() { 
00033     // Default constructor
00034   }
00035   RooConvCoefVar(const char *name, const char *title, const RooAbsAnaConvPdf& input, Int_t coefIdx, const RooArgSet* varList=0) ;
00036   RooConvCoefVar(const RooConvCoefVar& other, const char* name=0);
00037   virtual TObject* clone(const char* newname) const { return new RooConvCoefVar(*this,newname); }
00038   virtual ~RooConvCoefVar() {
00039     // Destructor
00040   } ;
00041 
00042   virtual Double_t getVal(const RooArgSet* nset=0) const ;
00043 
00044   virtual Double_t evaluate() const ;
00045   virtual Int_t getAnalyticalIntegral(RooArgSet& allVars, RooArgSet& analVars, const char* rangeName=0) const ;
00046   virtual Double_t analyticalIntegral(Int_t code, const char* rangeName=0) const ;
00047 
00048 protected:
00049 
00050   RooSetProxy  _varSet ;  // Not used anymore?
00051   RooRealProxy _convPdf ; // RooAbsAnaConv object implementing our coefficient
00052   Int_t    _coefIdx  ;    // Index code of the coefficient
00053 
00054   ClassDef(RooConvCoefVar,1) // Auxiliary class representing the coefficient of a RooAbsAnaConvPdf as a RooAbsReal
00055 };
00056 
00057 #endif

Generated on Tue Jul 5 14:26:07 2011 for ROOT_528-00b_version by  doxygen 1.5.1