CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Namespaces | Functions
PFRecHit.cc File Reference
#include "DataFormats/ParticleFlowReco/interface/PFRecHit.h"
#include <limits>

Go to the source code of this file.

Namespaces

 reco
 fixed size matrix
 

Functions

std::ostream & operator<< (std::ostream &out, const reco::PFRecHit &hit)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const reco::PFRecHit hit 
)

Definition at line 72 of file PFRecHit.cc.

References reco::PFRecHit::detId(), reco::PFRecHit::energy(), reco::PFRecHit::hasCaloCell(), reco::PFRecHit::layer(), submitPVResolutionJobs::out, reco::PFRecHit::positionREP(), RhoEtaPhi::rho(), and reco::PFRecHit::time().

72  {
73  if (!out)
74  return out;
75 
76  out << "hit id:" << hit.detId() << " l:" << hit.layer() << " E:" << hit.energy() << " t:" << hit.time();
77  if (hit.hasCaloCell()) {
78  auto const& pos = hit.positionREP();
79  out << " rep:" << pos.rho() << "," << pos.eta() << "," << pos.phi() << "|";
80  }
81  return out;
82 }
float time() const
timing for cleaned hits
Definition: PFRecHit.h:102
unsigned detId() const
rechit detId
Definition: PFRecHit.h:93
PFLayer::Layer layer() const
rechit layer
Definition: PFRecHit.h:96
bool hasCaloCell() const
Definition: PFRecHit.h:90
float energy() const
rechit energy
Definition: PFRecHit.h:99
RhoEtaPhi const & positionREP() const
Definition: PFRecHit.h:119