Fork me on GitHub

source: svn/trunk/Utilities/CDFCones/interface/ClusterComparisons.h@ 12

Last change on this file since 12 was 2, checked in by Xavier Rouby, 16 years ago

first commit

File size: 612 bytes
Line 
1#ifndef _CLUSTER_COMPARISONS_HH_
2#define _CLUSTER_COMPARISONS_HH_
3
4#include "Utilities/CDFCones/interface/Cluster.h"
5
6class ClusterFourVectorEtGreater
7{
8 public:
9 int operator()(const Cluster& c1, const Cluster& c2) const
10 {
11 return c1.fourVector.Et() > c2.fourVector.Et();
12 }
13};
14
15class ClusterCentroidEtGreater
16{
17 public:
18 int operator()(const Cluster& c1, const Cluster& c2) const
19 {
20 return c1.centroid.Et > c2.centroid.Et;
21 }
22};
23
24class ClusterPtGreater
25{
26 public:
27 int operator()(const Cluster& c1, const Cluster& c2) const
28 {
29 return c1.fourVector.pt() > c2.fourVector.pt();
30 }
31};
32
33#endif
Note: See TracBrowser for help on using the repository browser.