RooEfficiency.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * Project: RooFit                                                           *
00003  * Package: RooFitCore                                                       *
00004  *    File: $Id: RooEfficiency.h,v 1.6 2007/05/11 10:14:56 verkerke 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_EFFICIENCY
00017 #define ROO_EFFICIENCY
00018 
00019 #include "RooAbsPdf.h"
00020 #include "RooCategoryProxy.h"
00021 #include "RooRealProxy.h"
00022 #include "TString.h" 
00023 
00024 class RooArgList ;
00025 
00026 
00027 class RooEfficiency : public RooAbsPdf {
00028 public:
00029   // Constructors, assignment etc
00030   inline RooEfficiency() { 
00031     // Default constructor
00032   }
00033   RooEfficiency(const char *name, const char *title, const RooAbsReal& effFunc, const RooAbsCategory& cat, const char* sigCatName);
00034   RooEfficiency(const RooEfficiency& other, const char* name=0);
00035   virtual TObject* clone(const char* newname) const { return new RooEfficiency(*this,newname); }
00036   virtual ~RooEfficiency();
00037 
00038   Int_t getAnalyticalIntegral(RooArgSet& allVars, RooArgSet& analVars, const char* rangeName=0) const ;
00039   Double_t analyticalIntegral(Int_t code, const char* rangeName=0) const ;
00040 
00041 protected:
00042 
00043   // Function evaluation
00044   virtual Double_t evaluate() const ;
00045   RooCategoryProxy _cat ; // Accept/reject categort
00046   RooRealProxy _effFunc ; // Efficiency modeling function
00047   TString _sigCatName ;   // Name of accept state of accept/reject category
00048 
00049   ClassDef(RooEfficiency,1) // Generic PDF defined by string expression and list of variables
00050 };
00051 
00052 #endif

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