CMS 3D CMS Logo

Functions
HORecHit.cc File Reference
#include "DataFormats/HcalRecHit/interface/HORecHit.h"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &s, const HORecHit &hit)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const HORecHit hit 
)

Definition at line 11 of file HORecHit.cc.

References CaloRecHit::energy(), HORecHit::id(), and CaloRecHit::time().

Referenced by HORecHit::id().

11  {
12  return s << hit.id() << ": " << hit.energy() << " GeV, " << hit.time() << " ns";
13 }
float time() const
Definition: CaloRecHit.h:19
float energy() const
Definition: CaloRecHit.h:17
HcalDetId id() const
get the id
Definition: HORecHit.h:19