CMS 3D CMS Logo

HGCalCluster.cc
Go to the documentation of this file.
2 
3 using namespace l1t;
4 
6  int pt,
7  int eta,
8  int phi)
9  : L1Candidate(p4, pt, eta, phi)
10 {
11 
12 }
13 
15 {
16 
17 }
18 
20 {
21  bool res = false;
22  // Favour high pT
23  if(hwPt()<cl.hwPt()) res = true;
24  else if(hwPt()==cl.hwPt()) {
25  // Favour central clusters
26  if( abs(hwEta())>abs(cl.hwEta()) ) res = true;
27  else if( abs(hwEta())==abs(cl.hwEta()) ){
28  // Favour small phi (arbitrary)
29  if(hwPhi()>cl.hwPhi()) res = true;
30  }
31  }
32  return res;
33 }
int hwPhi() const
Definition: L1Candidate.h:50
delete x;
Definition: CaloConfig.h:22
Definition: Electron.h:4
double p4[4]
Definition: TauolaWrapper.h:92
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
int hwEta() const
Definition: L1Candidate.h:49
int hwPt() const
Definition: L1Candidate.h:48
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:37
bool operator<(const HGCalCluster &cl) const
Definition: HGCalCluster.cc:19