CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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,
10  float t): position_(Point(x,y,z)),
11  lambda_(lambda), time_(t) { }
12 
14  float lambda) : position_(p), lambda_(lambda),
15  time_(t) { }
16 
18  position_ = right.position_;
19  lambda_ = right.lambda_;
20  time_ = right.time_;
21 }
22 
24 
25 std::ostream& operator<<(std::ostream& os, const HFShowerPhoton& it) {
26  os << "X " << std::setw(6) << it.x() << " Y " << std::setw(6)
27  << it.y() << " Z " << std::setw(6) << it.z() << " t " << std::setw(6)
28  << it.t() << " lambda " << it.lambda();
29  return os;
30 }
math::XYZPointF Point
point in the space
virtual ~HFShowerPhoton()
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
double double double 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)
x
Definition: VDTMath.h:216
float y() const