CMS 3D CMS Logo

HcalCalibRecHit.cc
Go to the documentation of this file.
2 
3 
4 HcalCalibRecHit::HcalCalibRecHit() : id_(), amplitude_(0), time_(0) {
5 }
6 
7 HcalCalibRecHit::HcalCalibRecHit(const HcalCalibDetId& id, float ampl, float time) : id_(id), amplitude_(ampl), time_(time) {
8 
9 }
10 
11 std::ostream& operator<<(std::ostream& s, const HcalCalibRecHit& hit) {
12  return s << hit.id() << ": " << hit.amplitude() << " , " << hit.time() << " ns";
13 }
14 
float amplitude() const
get the amplitude (generally fC, but can vary)
std::ostream & operator<<(std::ostream &s, const HcalCalibRecHit &hit)
HcalCalibDetId id_
float time() const
get the hit time (if available)
HcalCalibDetId id() const
get the id