CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 &out, const ALILine &li)
Definition: ALILine.cc:188
float time() const
get the hit time (if available)
HcalCalibDetId id() const
get the id