CMS 3D CMS Logo

HFShowerPhoton.h
Go to the documentation of this file.
1 #ifndef SimDataFormats_HFShowerPhoton_H
2 #define SimDataFormats_HFShowerPhoton_H
3 // File: HFShowerPhoton.h
5 // Photons which will generate single photo electron as in HFShowerLibrary
7 
9 #include <iostream>
10 #include <cmath>
11 #include <vector>
12 
14 public:
17 
18  HFShowerPhoton(float x = 0, float y = 0, float z = 0, float lambda = 0, float t = 0);
19  HFShowerPhoton(const Point& p, float time, float lambda);
20  HFShowerPhoton(const HFShowerPhoton&) = default;
21  HFShowerPhoton(HFShowerPhoton&&) = default;
22 
23  HFShowerPhoton& operator=(const HFShowerPhoton&) = default;
25 
26  const Point& position() const { return position_; }
27  float x() const { return position_.X(); }
28  float y() const { return position_.Y(); }
29  float z() const { return position_.Z(); }
30  float lambda() const { return lambda_; }
31  float t() const { return time_; }
32 
33 private:
35  float lambda_;
36  float time_;
37 };
38 
39 typedef std::vector<HFShowerPhoton> HFShowerPhotonCollection;
40 
41 std::ostream& operator<<(std::ostream&, const HFShowerPhoton&);
42 
43 #endif
math::XYZPointF Point
point in the space
HFShowerPhoton & operator=(const HFShowerPhoton &)=default
float t() const
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< float > > XYZPointF
point in space with cartesian internal representation
Definition: Point3D.h:10
const Point & position() const
std::vector< HFShowerPhoton > HFShowerPhotonCollection
float x() const
float lambda() const
std::ostream & operator<<(std::ostream &, const HFShowerPhoton &)
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 z() const