Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:54:35

0001 // -*- C++ -*-
0002 // $Id: LikelihoodFunctional.hh,v 1.2 2003/09/06 14:04:13 boudreau Exp $
0003 //-------------------------------------------------------------//
0004 //                                                             //
0005 // This functional returns the Likelihood of a functoin        //
0006 // given some data                                             //
0007 //                                                             //
0008 //-------------------------------------------------------------//
0009 #ifndef _LikelihoodFunctional_h_
0010 #define _LikelihoodFunctional_h_
0011 #include "CLHEP/GenericFunctions/AbsFunctional.hh"
0012 #include "CLHEP/GenericFunctions/ArgumentList.hh"
0013 
0014 namespace Genfun {
0015 
0016   /**
0017    * @author
0018    * @ingroup genfun
0019    */
0020   class LikelihoodFunctional:public AbsFunctional {
0021 
0022   public:
0023   
0024     // Constructor:
0025     LikelihoodFunctional(const ArgumentList & aList);
0026 
0027     // Destructor:
0028     ~LikelihoodFunctional();
0029 
0030     // Evaluate ChiSquared of a function w.r.t the data.
0031     virtual double operator [] (const AbsFunction & function) const;
0032 
0033   private:
0034 
0035     const ArgumentList _aList;
0036 
0037   };
0038 } // namespace Genfun
0039 #endif