CMS 3D CMS Logo

Classes | Functions

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/DataFormats/CaloTowers/interface/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 262 of file CaloTower.cc.

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

                                                           {
  return s << ct.id() << ":"  << ct.et()
           << " GeV ET (EM=" << ct.emEt() <<
    " HAD=" << ct.hadEt() << " OUTER=" << ct.outerEt() << ") (" << ct.eta() << "," << ct.phi() << ")";    
}
bool operator== ( const CaloTower t1,
const CaloTower t2 
) [inline]

Definition at line 211 of file CaloTower.h.

References CaloTower::id().

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

                                                                     {
  return t1.id() == t2.id();
}