CMS 3D CMS Logo

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

Go to the source code of this file.

Classes

class  CastorRecHit
 

Functions

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

Function Documentation

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

Definition at line 7 of file CastorRecHit.cc.

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

7  {
8  return s << hit.id() << ": " << hit.energy() << " GeV, " << hit.time() << " ns";
9 }
constexpr float energy() const
Definition: CaloRecHit.h:29
HcalCastorDetId id() const
get the id
Definition: CastorRecHit.h:14
constexpr float time() const
Definition: CaloRecHit.h:31