Go to the documentation of this file.00001
00002
00003
00005 #include "SimDataFormats/CaloHit/interface/HFShowerPhoton.h"
00006
00007 #include <iomanip>
00008
00009 HFShowerPhoton::HFShowerPhoton(float x, float y, float z, float lambda,
00010 float t): position_(Point(x,y,z)),
00011 lambda_(lambda), time_(t) { }
00012
00013 HFShowerPhoton::HFShowerPhoton(const Point &p, float t,
00014 float lambda) : position_(p), lambda_(lambda),
00015 time_(t) { }
00016
00017 HFShowerPhoton::HFShowerPhoton(const HFShowerPhoton &right) {
00018 position_ = right.position_;
00019 lambda_ = right.lambda_;
00020 time_ = right.time_;
00021 }
00022
00023 HFShowerPhoton::~HFShowerPhoton() {}
00024
00025 std::ostream& operator<<(std::ostream& os, const HFShowerPhoton& it) {
00026 os << "X " << std::setw(6) << it.x() << " Y " << std::setw(6)
00027 << it.y() << " Z " << std::setw(6) << it.z() << " t " << std::setw(6)
00028 << it.t() << " lambda " << it.lambda();
00029 return os;
00030 }