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 }
HFShowerPhoton::y
float y() const
Definition: HFShowerPhoton.h:25
detailsBasic3DVector::z
float float float z
Definition: extBasic3DVector.h:14
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
HFShowerPhoton::t
float t() const
Definition: HFShowerPhoton.h:28
HFShowerPhoton::position_
Point position_
Definition: HFShowerPhoton.h:31
HFShowerPhoton::x
float x() const
Definition: HFShowerPhoton.h:24
Point
Structure Point Contains parameters of Gaussian fits to DMRs.
Definition: DMRtrends.cc:57
HFShowerPhoton::lambda
float lambda() const
Definition: HFShowerPhoton.h:27
HFShowerPhoton::z
float z() const
Definition: HFShowerPhoton.h:26
HFShowerPhoton::~HFShowerPhoton
virtual ~HFShowerPhoton()
Definition: HFShowerPhoton.cc:20
HFShowerPhoton::lambda_
float lambda_
Definition: HFShowerPhoton.h:32
genVertex_cff.x
x
Definition: genVertex_cff.py:12
detailsBasic3DVector::y
float float y
Definition: extBasic3DVector.h:14
HFShowerPhoton
Definition: HFShowerPhoton.h:13
HFShowerPhoton.h
operator<<
std::ostream & operator<<(std::ostream &os, const HFShowerPhoton &it)
Definition: HFShowerPhoton.cc:22
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644
HFShowerPhoton::time_
float time_
Definition: HFShowerPhoton.h:33
HFShowerPhoton::HFShowerPhoton
HFShowerPhoton(float x=0, float y=0, float z=0, float lambda=0, float t=0)
Definition: HFShowerPhoton.cc:9