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_(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 
14 std::ostream& operator<<(std::ostream& os, const HFShowerPhoton& it) {
15  os << "X " << std::setw(6) << it.x() << " Y " << std::setw(6) << it.y() << " Z " << std::setw(6) << it.z() << " t "
16  << std::setw(6) << it.t() << " lambda " << it.lambda();
17  return os;
18 }
std::ostream & operator<<(std::ostream &os, const HFShowerPhoton &it)
float t() const
float float float z
float x() const
float lambda() 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.
float y() const
float x
float z() const