Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-08-17 23:10:24

0001 #ifndef CommonTools_Utils_Comparison_h
0002 #define CommonTools_Utils_Comparison_h
0003 /* \class reco::parser::Comparison
0004  *
0005  * Comparison template
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/ComparisonBase.h"
0014 
0015 namespace reco {
0016   namespace parser {
0017     template <class CompT>
0018     struct Comparison : public ComparisonBase {
0019       bool compare(double lhs, double rhs) const override { return comp(lhs, rhs); }
0020 
0021     private:
0022       CompT comp;
0023     };
0024   }  // namespace parser
0025 }  // namespace reco
0026 
0027 #endif