CMS 3D CMS Logo

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

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 11 of file CastorRecHit.cc.

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

Referenced by CastorRecHit::id().

11  {
12  return s << hit.id() << ": " << hit.energy() << " GeV, " << hit.time() << " ns";
13 }
constexpr float energy() const
Definition: CaloRecHit.h:31
HcalCastorDetId id() const
get the id
Definition: CastorRecHit.h:15
constexpr float time() const
Definition: CaloRecHit.h:33