CMS 3D CMS Logo

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

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 13 of file ZDCRecHit.cc.

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

13  {
14  return s << hit.id() << ": " << hit.energy() << " GeV, " << hit.time() << " ns";
15 }
float time() const
Definition: CaloRecHit.h:21
float energy() const
Definition: CaloRecHit.h:19
HcalZDCDetId id() const
get the id
Definition: ZDCRecHit.h:21