00001 #ifndef Utilities_Comparison_h 00002 #define Utilities_Comparison_h 00003 /* \class reco::parser::Comparison 00004 * 00005 * Comparison template 00006 * 00007 * \author original version: Chris Jones, Cornell, 00008 * adapted to Reflex by Luca Lista, INFN 00009 * 00010 * \version $Revision: 1.2 $ 00011 * 00012 */ 00013 #include "PhysicsTools/Utilities/src/ComparisonBase.h" 00014 00015 namespace reco { 00016 namespace parser { 00017 template<class CompT> 00018 struct Comparison : public ComparisonBase { 00019 virtual bool compare(double lhs, double rhs) const { return comp(lhs, rhs); } 00020 private: 00021 CompT comp; 00022 }; 00023 } 00024 } 00025 00026 #endif