Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:36:15

0001 #ifndef CommonTools_Utils_ExpressionNumber_h
0002 #define CommonTools_Utils_ExpressionNumber_h
0003 /* \class reco::parser::ExpressionNumber
0004  *
0005  * Numberical expression
0006  *
0007  * \author original version: Chris Jones, Cornell, 
0008  *         adapted by Luca Lista, INFN
0009  *
0010  * \version $Revision: 1.2 $
0011  *
0012  */
0013 #include "CommonTools/Utils/interface/parser/ExpressionBase.h"
0014 
0015 namespace reco {
0016   namespace parser {
0017     struct ExpressionNumber : public ExpressionBase {
0018       double value(const edm::ObjectWithDict&) const override { return value_; }
0019       ExpressionNumber(double value) : value_(value) {}
0020 
0021     private:
0022       double value_;
0023     };
0024   }  // namespace parser
0025 }  // namespace reco
0026 
0027 #endif