CMS 3D CMS Logo

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

Go to the source code of this file.

Classes

class  HORecHit
 

Functions

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

Function Documentation

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

Definition at line 3 of file HORecHit.cc.

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

3  {
4  return s << hit.id() << ": " << hit.energy() << " GeV, " << hit.time() << " ns";
5 }
constexpr float energy() const
Definition: CaloRecHit.h:29
constexpr HcalDetId id() const
get the id
Definition: HORecHit.h:19
constexpr float time() const
Definition: CaloRecHit.h:31