source: trunk/CDFCones/ClusterComparisons.hh@ 15

Last change on this file since 15 was 2, checked in by Pavel Demin, 16 years ago

first commit

File size: 584 bytes
Line 
1#ifndef _CLUSTER_COMPARISONS_HH_
2#define _CLUSTER_COMPARISONS_HH_
3
4#include "Cluster.hh"
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.