CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
CaloTower.h File Reference
#include "DataFormats/Candidate/interface/LeafCandidate.h"
#include "DataFormats/DetId/interface/DetId.h"
#include "DataFormats/CaloTowers/interface/CaloTowerDetId.h"
#include "DataFormats/Math/interface/Vector3D.h"
#include "Rtypes.h"
#include <vector>
#include <cmath>
#include "DataFormats/GeometryVector/interface/GlobalPoint.h"

Go to the source code of this file.

Classes

class  CaloTower
 

Functions

std::ostream & operator<< (std::ostream &s, const CaloTower &ct)
 
bool operator== (const CaloTower &t1, const CaloTower &t2)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const CaloTower ct 
)

Definition at line 229 of file CaloTower.cc.

References CaloTower::emEt(), CaloTower::et(), reco::LeafCandidate::eta(), CaloTower::hadEt(), CaloTower::id(), CaloTower::outerEt(), and reco::LeafCandidate::phi().

229  {
230  return s << ct.id() << ":" << ct.et()
231  << " GeV ET (EM=" << ct.emEt() <<
232  " HAD=" << ct.hadEt() << " OUTER=" << ct.outerEt() << ") (" << ct.eta() << "," << ct.phi() << ")";
233 }
double hadEt() const
Definition: CaloTower.h:85
double outerEt() const
Definition: CaloTower.h:86
virtual float phi() const GCC11_FINAL
momentum azimuthal angle
virtual float eta() const GCC11_FINAL
momentum pseudorapidity
CaloTowerDetId id() const
Definition: CaloTower.h:72
double et(double vtxZ) const
Definition: CaloTower.h:101
double emEt() const
Definition: CaloTower.h:84
bool operator== ( const CaloTower t1,
const CaloTower t2 
)
inline

Definition at line 211 of file CaloTower.h.

References CaloTower::id().

Referenced by ora::Object::operator!=(), ora::Version::operator!=(), ora::OId::operator!=(), and ora::NamedRef< T >::operator!=().

211  {
212  return t1.id() == t2.id();
213 }
CaloTowerDetId id() const
Definition: CaloTower.h:72