CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
HcalHaloAlgo.cc File Reference
#include "RecoMET/METAlgorithms/interface/HcalHaloAlgo.h"
#include <map>
#include <iomanip>

Go to the source code of this file.

Functions

bool CompareTime (const HBHERecHit *x, const HBHERecHit *y)
 
bool CompareTowers (const CaloTower *x, const CaloTower *y)
 

Function Documentation

bool CompareTime ( const HBHERecHit x,
const HBHERecHit y 
)

Definition at line 21 of file HcalHaloAlgo.cc.

References CaloRecHit::time().

21 { return x->time() < y->time() ;}
float time() const
Definition: CaloRecHit.h:19
bool CompareTowers ( const CaloTower x,
const CaloTower y 
)

Definition at line 22 of file HcalHaloAlgo.cc.

References CaloTower::ieta(), and CaloTower::iphi().

Referenced by HcalHaloAlgo::Calculate().

22  {
23  return x->iphi()*1000 + x->ieta() < y->iphi()*1000 + y->ieta();
24 }
int ieta() const
Definition: CaloTower.h:182
int iphi() const
Definition: CaloTower.h:184