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);
21  virtual ~HFShowerPhoton();
22 
23  const Point& position() const { return position_; }
24  float x() const { return position_.X(); }
25  float y() const { return position_.Y(); }
26  float z() const { return position_.Z(); }
27  float lambda() const { return lambda_; }
28  float t() const { return time_; }
29 
30 private:
31  Point position_;
32  float lambda_;
33  float time_;
34 };
35 
36 typedef std::vector<HFShowerPhoton> HFShowerPhotonCollection;
37 
38 std::ostream& operator<<(std::ostream&, const HFShowerPhoton&);
39 
40 #endif
math::XYZPointF Point
point in the space
const Point & position() const
virtual ~HFShowerPhoton()
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< float > > XYZPointF
point in space with cartesian internal representation
Definition: Point3D.h:10
float t() const
std::vector< HFShowerPhoton > HFShowerPhotonCollection
std::ostream & operator<<(std::ostream &, const HFShowerPhoton &)
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)
float y() const