CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CastorRecHit.cc
Go to the documentation of this file.
2 
4 
5 CastorRecHit::CastorRecHit(const HcalCastorDetId& id, float energy, float time) : CaloRecHit(id, energy, time) {}
6 
7 std::ostream& operator<<(std::ostream& s, const CastorRecHit& hit) {
8  return s << hit.id() << ": " << hit.energy() << " GeV, " << hit.time() << " ns";
9 }
constexpr float energy() const
Definition: CaloRecHit.h:29
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:167
HcalCastorDetId id() const
get the id
Definition: CastorRecHit.h:14
constexpr float time() const
Definition: CaloRecHit.h:31