00001 #include "DataFormats/CaloRecHit/interface/CaloRecHit.h" 00002 00003 00004 CaloRecHit::CaloRecHit() : energy_(0), time_(0) { 00005 } 00006 00007 CaloRecHit::CaloRecHit(const DetId& id, float energy, float time) : id_(id),energy_(energy), time_(time) { 00008 } 00009 00010 CaloRecHit::~CaloRecHit() { 00011 } 00012 00013 std::ostream& operator<<(std::ostream& s, const CaloRecHit& hit) { 00014 return s << hit.detid().rawId() << ", " << hit.energy() << " GeV, " << hit.time() << " ns"; 00015 } 00016