CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
HcalCalibRecHit.cc
Go to the documentation of this file.
2 
3 HcalCalibRecHit::HcalCalibRecHit() : id_(), amplitude_(0), time_(0) {}
4 
5 HcalCalibRecHit::HcalCalibRecHit(const HcalCalibDetId& id, float ampl, float time)
6  : id_(id), amplitude_(ampl), time_(time) {}
7 
8 std::ostream& operator<<(std::ostream& s, const HcalCalibRecHit& hit) {
9  return s << hit.id() << ": " << hit.amplitude() << " , " << hit.time() << " ns";
10 }
float amplitude() const
get the amplitude (generally fC, but can vary)
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:167
float time() const
get the hit time (if available)
HcalCalibDetId id() const
get the id