HGCal Test Beam  03a93d6239a951948e06fb3ef8dae4cbdebfad30
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
HGCalTBTrack.h
Go to the documentation of this file.
1 #ifndef HGCALTBTRACK_H
2 #define HGCALTBTRACK_H
3 
4 #include <vector>
5 #include <cstddef>
6 
7 #include "DataFormats/Math/interface/Error.h"
8 #include "DataFormats/Math/interface/Vector3D.h"
9 #include "DataFormats/Math/interface/Point3D.h"
10 
11 
12 /** \class HGCal/DataFormats/interface/HGCalTBTrack.h HGCalTBTrack.h HGCalTBTrack
13  * \brief Track from FNAL TB Telescope
14  *
15  */
16 
18 {
19 public:
20  HGCalTBTrack(void); ///< default constructor
21  HGCalTBTrack(const float *raw); ///< constructor from FEDRawData: size is the number of floats in the array
22  std::vector<float> getRaw(void); ///< returns a vector of floats to be saved into FEDRawData
23 
24  static inline unsigned int getSize(void)
25  {
26  return 7;
27  };
28  static inline size_t getSizeof(void)
29  {
30  return sizeof(float) * getSize() ;
31  };
32 
33  /// spatial vector
34  typedef math::XYZVector Vector;
35 
36  /// point in the space
37  typedef math::XYZPoint Point;
38 
39  inline const Point& vertex() const
40  {
41  return _vertex;
42  };
43  inline const Vector& momentum() const
44  {
45  return _momentum;
46  };
47 
48  Point pointAt(double z) const;
49 private:
50  Point _vertex; ///< intercept on the telescope plane (z = 0)
51  Vector _momentum; ///< m_x(z), m_y(z), 1
52 
53  float chi2; ///< chi2 of the track
54  float m_x_err; ///< uncertainty on x-direction
55  float m_y_err; ///< uncertainty on y-direction
56 };
57 
58 #endif
59 
math::XYZVector Vector
spatial vector
Definition: HGCalTBTrack.h:31
std::vector< float > getRaw(void)
returns a vector of floats to be saved into FEDRawData
Definition: HGCalTBTrack.cc:25
const Vector & momentum() const
Definition: HGCalTBTrack.h:43
Point pointAt(double z) const
Definition: HGCalTBTrack.cc:41
static size_t getSizeof(void)
Definition: HGCalTBTrack.h:28
const Point & vertex() const
Definition: HGCalTBTrack.h:39
HGCalTBTrack(void)
default constructor
Definition: HGCalTBTrack.cc:7
static unsigned int getSize(void)
Definition: HGCalTBTrack.h:24
math::XYZPoint Point
point in the space
Definition: HGCalTBTrack.h:37