CMS 3D CMS Logo

HFShowerPhoton.cc
Go to the documentation of this file.
1 // File: HFShowerPhoton.cc
3 // Description: Photons (generating single PE) in HF Shower Library
6 
7 #include <iomanip>
8 
9 HFShowerPhoton::HFShowerPhoton(float x, float y, float z, float lambda, float t)
10  : position_(Point(x, y, z)), lambda_(lambda), time_(t) {}
11 
12 HFShowerPhoton::HFShowerPhoton(const Point& p, float t, float lambda) : position_(p), lambda_(lambda), time_(t) {}
13 
15  position_ = right.position_;
16  lambda_ = right.lambda_;
17  time_ = right.time_;
18 }
19 
21 
22 std::ostream& operator<<(std::ostream& os, const HFShowerPhoton& it) {
23  os << "X " << std::setw(6) << it.x() << " Y " << std::setw(6) << it.y() << " Z " << std::setw(6) << it.z() << " t "
24  << std::setw(6) << it.t() << " lambda " << it.lambda();
25  return os;
26 }
std::ostream & operator<<(std::ostream &os, const HFShowerPhoton &it)
virtual ~HFShowerPhoton()
float float float z
float t() const
float z() const
float lambda() const
float x() const
HFShowerPhoton(float x=0, float y=0, float z=0, float lambda=0, float t=0)
Structure Point Contains parameters of Gaussian fits to DMRs.
Definition: DMRtrends.cc:55
float y() const