Revision: | 1.2 |
Committed: | Wed Jan 5 12:10:50 2011 UTC (14 years, 4 months ago) by antoniov |
Content type: | text/plain |
Branch: | MAIN |
CVS Tags: | V01-01-01, V01-01-00, antoniov-forwardAnalysis-09Jul2012-v1, antoniov-forwardAnalysis-29Jun2012-v1, V01-00-00, antoniov-utilities-11Jun2012-v1, antoniov-forwardAnalysis-Oct072011-v1, sfonseca_10_04_2011, antoniov-forwardAnalysis-Sep182011-v1, antoniov-forwardAnalysis-Sep102011-v1, sfonseca_08_26_2011, forwardAnalysis-Aug232011-v1, forwardAnalysis-Aug172011-v1, forwardAnalysis-Aug052011-v1, forwardAnalysis-Jul222011-v1, tools-Jan062011-v1, tools-Jan052011-v1, HEAD |
Changes since 1.1: | +0 -3 lines |
Error occurred while calculating annotation data. | |
Log Message: | update |
# | Content |
---|---|
1 | #ifndef ForwardAnalysis_Utilities_EtaComparator_h |
2 | #define ForwardAnalysis_Utilities_EtaComparator_h |
3 | |
4 | /** \class EtaComparator |
5 | * |
6 | * Compare by eta |
7 | * |
8 | */ |
9 | |
10 | template<typename T> |
11 | struct LessByEta { |
12 | typedef T first_argument_type; |
13 | typedef T second_argument_type; |
14 | bool operator()( const T & t1, const T & t2 ) const { |
15 | return t1.eta() < t2.eta(); |
16 | } |
17 | }; |
18 | |
19 | template<typename T> |
20 | struct GreaterByEta { |
21 | typedef T first_argument_type; |
22 | typedef T second_argument_type; |
23 | bool operator()( const T & t1, const T & t2 ) const { |
24 | return t1.eta() > t2.eta(); |
25 | } |
26 | }; |
27 | |
28 | #endif |