Line Code
1 2 3 4 5 6 7 8 9
#include "DataFormats/HcalRecHit/interface/HFRecHit.h"

std::ostream& operator<<(std::ostream& s, const HFRecHit& hit) {
  s << hit.id() << ": " << hit.energy() << " GeV";
  if (hit.time() > -998) {
    s << ", t= " << hit.time() << " to " << hit.timeFalling() << " ns";
  }
  return s;
}