Belle II Software  release-06-02-00
BelleTrkExtra.h
1 /**************************************************************************
2  * basf2 (Belle II Analysis Software Framework) *
3  * Author: The Belle II Collaboration *
4  * *
5  * See git log for contributors and copyright holders. *
6  * This file is licensed under LGPL-3.0, see LICENSE.md. *
7  **************************************************************************/
8 #pragma once
9 #include <framework/datastore/RelationsObject.h>
10 
11 namespace Belle2 {
18  class BelleTrkExtra : public RelationsObject {
19 
20  public:
22  BelleTrkExtra() : m_firstx(0.0), m_firsty(0.0), m_firstz(0.0), m_lastx(0.0), m_lasty(0.0), m_lastz(0.0) {};
23 
25  BelleTrkExtra(double first_x, double first_y, double first_z,
26  double last_x, double last_y, double last_z) :
27  m_firstx(first_x), m_firsty(first_y), m_firstz(first_z),
28  m_lastx(last_x), m_lasty(last_y), m_lastz(last_z) {};
29 
32 
39  void setTrackFirstX(double first_x);
40 
47  void setTrackFirstY(double first_y);
48 
55  void setTrackFirstZ(double first_z);
56 
63  void setTrackLastX(double last_x);
64 
71  void setTrackLastY(double last_y);
72 
79  void setTrackLastZ(double last_z);
80 
85  double getTrackFirstX(void) const
86  {
87  return m_firstx;
88  }
89 
94  double getTrackFirstY(void) const
95  {
96  return m_firsty;
97  }
98 
103  double getTrackFirstZ(void) const
104  {
105  return m_firstz;
106  }
107 
112  double getTrackLastX(void) const
113  {
114  return m_lastx;
115  }
116 
121  double getTrackLastY(void) const
122  {
123  return m_lasty;
124  }
125 
130  double getTrackLastZ(void) const
131  {
132  return m_lastz;
133  }
134 
135  private:
136  // Persistent data members
137  double m_firstx;
138  double m_firsty;
139  double m_firstz;
140  double m_lastx;
141  double m_lasty;
142  double m_lastz;
146  };
147 
149 } // end namespace Belle2
150 
Class stores mdst_trk_fit information for each track.
Definition: BelleTrkExtra.h:18
BelleTrkExtra(double first_x, double first_y, double first_z, double last_x, double last_y, double last_z)
Constructor initializing variables.
Definition: BelleTrkExtra.h:25
void setTrackLastY(double last_y)
Set last_y End point of the track near the last CDC hit point.
double getTrackLastX(void) const
Get last_x.
BelleTrkExtra()
Constructor initializing everything to zero.
Definition: BelleTrkExtra.h:22
double m_firstx
Start point of the track near the 1st CDC hit point.
double m_lastx
End point of the track near the last CDC hit point.
double m_firsty
Start point of the track near the 1st CDC hit point.
void setTrackLastZ(double last_z)
Set last_z End point of the track near the last CDC hit point.
~BelleTrkExtra()
Destructor.
Definition: BelleTrkExtra.h:31
void setTrackLastX(double last_x)
Set last_x End point of the track near the last CDC hit point.
double getTrackLastZ(void) const
Get last_z.
void setTrackFirstX(double first_x)
Set first_x Start point of the track near the 1st CDC hit point.
double getTrackFirstY(void) const
Get first_y.
Definition: BelleTrkExtra.h:94
double getTrackLastY(void) const
Get last_y.
void setTrackFirstY(double first_y)
Set first_y Start point of the track near the 1st CDC hit point.
double getTrackFirstX(void) const
Get first_x.
Definition: BelleTrkExtra.h:85
double m_lastz
End point of the track near the last CDC hit point.
double getTrackFirstZ(void) const
Get first_z.
double m_lasty
End point of the track near the last CDC hit point.
void setTrackFirstZ(double first_z)
Set first_z Start point of the track near the 1st CDC hit point.
double m_firstz
Start point of the track near the 1st CDC hit point.
Defines interface for accessing relations of objects in StoreArray.
ClassDef(RelationsInterface, 0)
defines interface for accessing relations of objects in StoreArray.
Abstract base class for different kinds of events.