CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Functions
ZDCRecHit.h File Reference
#include "DataFormats/HcalDetId/interface/HcalZDCDetId.h"
#include "DataFormats/CaloRecHit/interface/CaloRecHit.h"

Go to the source code of this file.

Classes

class  ZDCRecHit
 

Functions

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

Function Documentation

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

Definition at line 8 of file ZDCRecHit.cc.

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

8  {
9  return s << hit.id() << ": " << hit.energy() << " GeV, " << hit.time() << " ns";
10 }
constexpr float energy() const
Definition: CaloRecHit.h:29
constexpr float time() const
Definition: CaloRecHit.h:31
HcalZDCDetId id() const
get the id
Definition: ZDCRecHit.h:18