CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_7/src/CommonTools/Utils/src/ExpressionNumber.h

Go to the documentation of this file.
00001 #ifndef CommonTools_Utils_ExpressionNumber_h
00002 #define CommonTools_Utils_ExpressionNumber_h
00003 /* \class reco::parser::ExpressionNumber
00004  *
00005  * Numberical expression
00006  *
00007  * \author original version: Chris Jones, Cornell, 
00008  *         adapted by Luca Lista, INFN
00009  *
00010  * \version $Revision: 1.3 $
00011  *
00012  */
00013 #include "CommonTools/Utils/src/ExpressionBase.h"
00014 
00015 namespace reco {
00016   namespace parser {
00017     struct ExpressionNumber : public ExpressionBase {
00018       virtual double value( const edm::ObjectWithDict& ) const { return value_; }
00019       ExpressionNumber( double value ) : value_( value ) { }
00020     private:
00021       double value_;
00022     };
00023   }
00024 }
00025 
00026 #endif