Fork me on GitHub

source: git/external/fastjet/plugins/CDFCones/ClusterComparisons.hh@ 5babc8b

ImprovedOutputFile Timing dual_readout llp
Last change on this file since 5babc8b was d7d2da3, checked in by pavel <pavel@…>, 12 years ago

move branches/ModularDelphes to trunk

  • Property mode set to 100644
File size: 2.1 KB
Line 
1#ifndef _CLUSTER_COMPARISONS_HH_
2#define _CLUSTER_COMPARISONS_HH_
3
4//----------------------------------------------------------------------
5// This file distributed with FastJet has been obtained from
6// http://www.pa.msu.edu/~huston/Les_Houches_2005/JetClu+Midpoint-StandAlone.tgz
7//
8// Permission to distribute it with FastJet has been granted by Joey
9// Huston (see the COPYING file in the main FastJet directory for
10// details).
11// Changes from the original file are listed below.
12//----------------------------------------------------------------------
13
14// History of changes compared to the original ClusterComparison.hh file
15//
16// 2009-01-17 Gregory Soyez <soyez@fastjet.fr>
17//
18// * put the code in the fastjet::cdf namespace
19//
20// 2007-03-10 Gavin Salam <salam@lpthe.jussieu.fr>
21//
22// * added support for the pttilde scale choice in the CDF midpoint code
23//
24// 2007-02-21 Gavin Salam <salam@lpthe.jussieu.fr>
25//
26// * added option of choosing the scale used in the split-merge
27// procedure (pt [default], Et or mt)
28//
29// 2006-09-24 Gavin Salam <salam@lpthe.jussieu.fr>
30//
31// * added JetClu+MidPoint to FastJet
32
33#include "Cluster.hh"
34
35#include <fastjet/internal/base.hh>
36
37FASTJET_BEGIN_NAMESPACE
38
39namespace cdf{
40
41class ClusterFourVectorEtGreater
42{
43 public:
44 int operator()(const Cluster& c1, const Cluster& c2) const
45 {
46 return c1.fourVector.Et() > c2.fourVector.Et();
47 }
48};
49
50class ClusterCentroidEtGreater
51{
52 public:
53 int operator()(const Cluster& c1, const Cluster& c2) const
54 {
55 return c1.centroid.Et > c2.centroid.Et;
56 }
57};
58
59class ClusterPtGreater
60{
61 public:
62 int operator()(const Cluster& c1, const Cluster& c2) const
63 {
64 return c1.fourVector.pt() > c2.fourVector.pt();
65 }
66};
67
68class ClusterMtGreater
69{
70 public:
71 int operator()(const Cluster& c1, const Cluster& c2) const
72 {
73 return c1.fourVector.mt() > c2.fourVector.mt();
74 }
75};
76
77class ClusterPtTildeGreater
78{
79 public:
80 int operator()(const Cluster& c1, const Cluster& c2) const
81 {
82 return c1.pt_tilde > c2.pt_tilde;
83 }
84};
85
86} // namespace cdf
87
88FASTJET_END_NAMESPACE
89
90#endif
Note: See TracBrowser for help on using the repository browser.