CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
15 public:
16 
19 
20  HFShowerPhoton(float x=0, float y=0, float z=0, float lambda=0, float t=0);
21  HFShowerPhoton(const Point &p, float time, float lambda);
23  virtual ~HFShowerPhoton();
24 
25  const Point & position() const {return position_;}
26  float x() const {return position_.X();}
27  float y() const {return position_.Y();}
28  float z() const {return position_.Z();}
29  float lambda() const {return lambda_;}
30  float t() const {return time_;}
31 
32 private:
33 
35  float lambda_;
36  float time_;
37 
38 };
39 
40 typedef std::vector<HFShowerPhoton> HFShowerPhotonCollection;
41 
42 std::ostream& operator<<(std::ostream&, const HFShowerPhoton&);
43 
44 #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
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:188
float t() const
std::vector< HFShowerPhoton > HFShowerPhotonCollection
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