Belle II Software  release-05-01-25
BelleTrkExtra.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2020 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Chia-Ling Hsu *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #pragma once
11 #include <framework/datastore/RelationsObject.h>
12 
13 namespace Belle2 {
20  class BelleTrkExtra : public RelationsObject {
21 
22  public:
24  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) {};
25 
27  BelleTrkExtra(double first_x, double first_y, double first_z,
28  double last_x, double last_y, double last_z) :
29  m_firstx(first_x), m_firsty(first_y), m_firstz(first_z),
30  m_lastx(last_x), m_lasty(last_y), m_lastz(last_z) {};
31 
33  ~BelleTrkExtra() {};
34 
41  void setTrackFirstX(double first_x);
42 
49  void setTrackFirstY(double first_y);
50 
57  void setTrackFirstZ(double first_z);
58 
65  void setTrackLastX(double last_x);
66 
73  void setTrackLastY(double last_y);
74 
81  void setTrackLastZ(double last_z);
82 
87  double getTrackFirstX(void) const
88  {
89  return m_firstx;
90  }
91 
96  double getTrackFirstY(void) const
97  {
98  return m_firsty;
99  }
100 
105  double getTrackFirstZ(void) const
106  {
107  return m_firstz;
108  }
109 
114  double getTrackLastX(void) const
115  {
116  return m_lastx;
117  }
118 
123  double getTrackLastY(void) const
124  {
125  return m_lasty;
126  }
127 
132  double getTrackLastZ(void) const
133  {
134  return m_lastz;
135  }
136 
137  private:
138  // Persistent data members
139  double m_firstx;
140  double m_firsty;
141  double m_firstz;
142  double m_lastx;
143  double m_lasty;
144  double m_lastz;
148  };
149 
151 } // end namespace Belle2
152 
Belle2::BelleTrkExtra
Class stores mdst_trk_fit information for each track.
Definition: BelleTrkExtra.h:28
Belle2::BelleTrkExtra::getTrackFirstZ
double getTrackFirstZ(void) const
Get first_z.
Definition: BelleTrkExtra.h:113
Belle2::BelleTrkExtra::getTrackFirstX
double getTrackFirstX(void) const
Get first_x.
Definition: BelleTrkExtra.h:95
Belle2::BelleTrkExtra::getTrackLastX
double getTrackLastX(void) const
Get last_x.
Definition: BelleTrkExtra.h:122
Belle2::BelleTrkExtra::setTrackFirstZ
void setTrackFirstZ(double first_z)
Set first_z Start point of the track near the 1st CDC hit point.
Definition: BelleTrkExtra.cc:25
Belle2::BelleTrkExtra::setTrackFirstX
void setTrackFirstX(double first_x)
Set first_x Start point of the track near the 1st CDC hit point.
Definition: BelleTrkExtra.cc:15
Belle2::BelleTrkExtra::setTrackLastZ
void setTrackLastZ(double last_z)
Set last_z End point of the track near the last CDC hit point.
Definition: BelleTrkExtra.cc:40
Belle2::BelleTrkExtra::m_lastx
double m_lastx
End point of the track near the last CDC hit point.
Definition: BelleTrkExtra.h:150
Belle2::RelationsInterface::ClassDef
ClassDef(RelationsInterface, 0)
defines interface for accessing relations of objects in StoreArray.
Belle2::BelleTrkExtra::m_firstz
double m_firstz
Start point of the track near the 1st CDC hit point.
Definition: BelleTrkExtra.h:149
Belle2::BelleTrkExtra::getTrackLastZ
double getTrackLastZ(void) const
Get last_z.
Definition: BelleTrkExtra.h:140
Belle2::BelleTrkExtra::~BelleTrkExtra
~BelleTrkExtra()
Destructor.
Definition: BelleTrkExtra.h:41
Belle2::BelleTrkExtra::m_lasty
double m_lasty
End point of the track near the last CDC hit point.
Definition: BelleTrkExtra.h:151
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::BelleTrkExtra::m_lastz
double m_lastz
End point of the track near the last CDC hit point.
Definition: BelleTrkExtra.h:152
Belle2::BelleTrkExtra::getTrackLastY
double getTrackLastY(void) const
Get last_y.
Definition: BelleTrkExtra.h:131
Belle2::BelleTrkExtra::setTrackLastY
void setTrackLastY(double last_y)
Set last_y End point of the track near the last CDC hit point.
Definition: BelleTrkExtra.cc:35
Belle2::BelleTrkExtra::m_firstx
double m_firstx
Start point of the track near the 1st CDC hit point.
Definition: BelleTrkExtra.h:147
Belle2::BelleTrkExtra::BelleTrkExtra
BelleTrkExtra()
Constructor initializing everything to zero.
Definition: BelleTrkExtra.h:32
Belle2::RelationsObject
RelationsInterface< TObject > RelationsObject
Provides interface for getting/adding relations to objects in StoreArrays.
Definition: RelationsObject.h:443
Belle2::BelleTrkExtra::setTrackFirstY
void setTrackFirstY(double first_y)
Set first_y Start point of the track near the 1st CDC hit point.
Definition: BelleTrkExtra.cc:20
Belle2::BelleTrkExtra::m_firsty
double m_firsty
Start point of the track near the 1st CDC hit point.
Definition: BelleTrkExtra.h:148
Belle2::BelleTrkExtra::setTrackLastX
void setTrackLastX(double last_x)
Set last_x End point of the track near the last CDC hit point.
Definition: BelleTrkExtra.cc:30
Belle2::BelleTrkExtra::getTrackFirstY
double getTrackFirstY(void) const
Get first_y.
Definition: BelleTrkExtra.h:104