CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
HFRecHit.cc File Reference
#include "DataFormats/HcalRecHit/interface/HFRecHit.h"

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 11 of file HFRecHit.cc.

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

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