CMS 3D CMS Logo

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 "DataFormats/HcalDetId/interface/HcalSubdetector.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

◆ operator<<()

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

Definition at line 280 of file CaloTower.cc.

280  {
281  return s << ct.id() << ":" << ct.et() << " GeV ET (EM=" << ct.emEt() << " HAD=" << ct.hadEt()
282  << " OUTER=" << ct.outerEt() << ") (" << ct.eta() << "," << ct.phi() << ")";
283 }

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

◆ operator==()

bool operator== ( const CaloTower t1,
const CaloTower t2 
)
inline

Definition at line 264 of file CaloTower.h.

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

References RandomServiceHelper::t1, and RandomServiceHelper::t2.

RandomServiceHelper.t2
t2
Definition: RandomServiceHelper.py:257
CaloTower::outerEt
double outerEt() const
Definition: CaloTower.h:141
CaloTower::id
CaloTowerDetId id() const
Definition: CaloTower.h:127
alignCSCRings.s
s
Definition: alignCSCRings.py:92
RandomServiceHelper.t1
t1
Definition: RandomServiceHelper.py:256
reco::LeafCandidate::eta
double eta() const final
momentum pseudorapidity
Definition: LeafCandidate.h:152
CaloTower::et
double et(double vtxZ) const
Definition: CaloTower.h:154
reco::LeafCandidate::phi
double phi() const final
momentum azimuthal angle
Definition: LeafCandidate.h:148
CaloTower::hadEt
double hadEt() const
Definition: CaloTower.h:140
CaloTower::emEt
double emEt() const
Definition: CaloTower.h:139