test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 75 of file PFRecHit.cc.

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

75  {
76 
77  if(!out) return out;
78 
79  out<<"hit id:"<<hit.detId()
80  <<" l:"<<hit.layer()
81  <<" E:"<<hit.energy()
82  <<" t:"<<hit.time();
83  if (hit.hasCaloCell()) {
84  auto const & pos = hit.positionREP();
85  out <<" rep:"<<pos.rho()<<","<<pos.eta()<<","<<pos.phi()<<"|";
86  }
87  return out;
88 }
float time() const
timing for cleaned hits
Definition: PFRecHit.h:118
unsigned detId() const
rechit detId
Definition: PFRecHit.h:108
PFLayer::Layer layer() const
rechit layer
Definition: PFRecHit.h:111
bool hasCaloCell() const
Definition: PFRecHit.h:105
float energy() const
rechit energy
Definition: PFRecHit.h:114
RhoEtaPhi const & positionREP() const
Definition: PFRecHit.h:131