Belle II Software  release-05-01-25
MicrotpcRecoTrack.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010-2011 Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Igal Jaegle *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #ifndef MICROTPCRECOTRACK_H
12 #define MICROTPCRECOTRACK_H
13 
14 #include <simulation/dataobjects/SimHitBase.h>
15 
16 namespace Belle2 {
24  class MicrotpcRecoTrack : public SimHitBase {
25  public:
26  //typedef std::vector<unsigned int>::iterator iterator;
27  //typedef std::vector<unsigned int>::const_iterator const_iterator;
28 
30  MicrotpcRecoTrack(): m_detNb(0), m_pixnb(0), m_chi2(0), m_theta(0), m_phi(0), m_esum(0), m_totsum(0), m_trl(0), m_time_range(0),
32 
36  MicrotpcRecoTrack(int detNb, int pixnb, float chi2, float theta, float phi, float esum, int totsum, float trl, int time_range,
37  const float parFit[5], const float parFit_err[5], const float cov[25], const float impact_x[4], const float impact_y[4],
38  const int side[16], const int partID[6]):
39  m_detNb(detNb), m_pixnb(pixnb), m_chi2(chi2), m_theta(theta), m_phi(phi), m_esum(esum), m_totsum(totsum), m_trl(trl),
40  m_time_range(time_range)
41  {
42  std::copy(parFit, parFit + 5, m_parFit);
43  std::copy(parFit_err, parFit_err + 5, m_parFit_err);
44  //std::copy(&cov[0][0], &cov[0][0] + 5 * 5, &m_cov[0][0]);
45  std::copy(cov, cov + 25, m_cov);
46  std::copy(impact_x, impact_x + 4, m_impact_x);
47  std::copy(impact_y, impact_y + 4, m_impact_y);
48  //std::copy(&side[0][0], &side[0][0] + 4 * 4, &m_side[0][0]);
49  std::copy(side, side + 16, m_side);
50  std::copy(partID, partID + 6, m_partID);
51  }
53  int getdetNb() const { return m_detNb; }
55  int getpixnb() const { return m_pixnb; }
57  float getchi2() const { return m_chi2; }
59  float gettheta() const { return m_theta; }
61  float getphi() const { return m_phi; }
63  //float parFit[4];
64  const float* getparFit() const { return m_parFit; }
66  const float* getparFit_err() const { return m_parFit_err; }
68  //const float* getcov() const { return m_cov[5];}
69  const float* getcov() const { return m_cov;}
71  float getesum() const { return m_esum; }
73  float gettrl() const { return m_trl; }
75  int gettotsum() const { return m_totsum; }
77  int gettime_range() const { return m_time_range; }
79  const float* getimpact_x() const { return m_impact_x; }
81  //void getimpact_y(float impact_y[4]) const { m_impact_y = impact_x; return m_impact_y; }
82  const float* getimpact_y() const { return m_impact_y; }
84  //void getside(int ** side) const { m_side = side; return m_side; }
85  //const int* getside() const { return m_side[4]; }
86  const int* getside() const { return m_side; }
88  const int* getpartID() const { return m_partID; }
89 
90  private:
92  int m_detNb;
94  int m_pixnb;
96  float m_chi2;
98  float m_theta;
100  float m_phi;
102  float m_esum;
104  int m_totsum;
106  float m_trl;
110  float m_parFit[5];
112  float m_parFit_err[5];
114  float m_cov[25];
116  float m_impact_x[4];
118  float m_impact_y[4];
120  //int m_side[4][4];
121  int m_side[16];
123  int m_partID[6];
124 
126  };
127 
129 } // end namespace Belle2
130 
131 #endif
Belle2::MicrotpcRecoTrack::m_theta
float m_theta
Polar angle theta in degrees.
Definition: MicrotpcRecoTrack.h:106
Belle2::MicrotpcRecoTrack::getside
const int * getside() const
Return which side was/were hit.
Definition: MicrotpcRecoTrack.h:94
Belle2::MicrotpcRecoTrack::m_impact_x
float m_impact_x[4]
Impact parameter x.
Definition: MicrotpcRecoTrack.h:124
Belle2::MicrotpcRecoTrack
ClassMicrotpcRecoTrack - fit tracks after the digitization.
Definition: MicrotpcRecoTrack.h:32
Belle2::MicrotpcRecoTrack::getesum
float getesum() const
Return total ionization energy.
Definition: MicrotpcRecoTrack.h:79
Belle2::MicrotpcRecoTrack::getpixnb
int getpixnb() const
Return pixel number.
Definition: MicrotpcRecoTrack.h:63
Belle2::MicrotpcRecoTrack::m_time_range
int m_time_range
Trigger/time length.
Definition: MicrotpcRecoTrack.h:116
Belle2::MicrotpcRecoTrack::MicrotpcRecoTrack
MicrotpcRecoTrack()
default constructor for ROOT
Definition: MicrotpcRecoTrack.h:38
Belle2::RelationsInterface::ClassDef
ClassDef(RelationsInterface, 0)
defines interface for accessing relations of objects in StoreArray.
Belle2::MicrotpcRecoTrack::getparFit
const float * getparFit() const
Return the fit parameters.
Definition: MicrotpcRecoTrack.h:72
Belle2::MicrotpcRecoTrack::getparFit_err
const float * getparFit_err() const
Return the fit parameter errors.
Definition: MicrotpcRecoTrack.h:74
Belle2::MicrotpcRecoTrack::gettime_range
int gettime_range() const
Return trigger/time length.
Definition: MicrotpcRecoTrack.h:85
Belle2::MicrotpcRecoTrack::m_parFit_err
float m_parFit_err[5]
Fit paramteter errors.
Definition: MicrotpcRecoTrack.h:120
Belle2::MicrotpcRecoTrack::m_totsum
int m_totsum
TOT sum.
Definition: MicrotpcRecoTrack.h:112
Belle2::MicrotpcRecoTrack::m_detNb
int m_detNb
detector number
Definition: MicrotpcRecoTrack.h:100
Belle2::MicrotpcRecoTrack::getimpact_x
const float * getimpact_x() const
Return impact parameter x.
Definition: MicrotpcRecoTrack.h:87
Belle2::MicrotpcRecoTrack::getphi
float getphi() const
Return the azimuthal angle in degrees.
Definition: MicrotpcRecoTrack.h:69
Belle2::MicrotpcRecoTrack::m_side
int m_side[16]
Which side was/were hit.
Definition: MicrotpcRecoTrack.h:129
Belle2::MicrotpcRecoTrack::gettheta
float gettheta() const
Return the polar angle in degrees.
Definition: MicrotpcRecoTrack.h:67
Belle2::MicrotpcRecoTrack::getcov
const float * getcov() const
Return covariant.
Definition: MicrotpcRecoTrack.h:77
Belle2::MicrotpcRecoTrack::m_impact_y
float m_impact_y[4]
Impact parameter y.
Definition: MicrotpcRecoTrack.h:126
Belle2::MicrotpcRecoTrack::m_phi
float m_phi
Azimuthal angle phi in degrees.
Definition: MicrotpcRecoTrack.h:108
Belle2::MicrotpcRecoTrack::getimpact_y
const float * getimpact_y() const
Return impact parameter y.
Definition: MicrotpcRecoTrack.h:90
Belle2::MicrotpcRecoTrack::m_trl
float m_trl
track length
Definition: MicrotpcRecoTrack.h:114
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::MicrotpcRecoTrack::getdetNb
int getdetNb() const
Return detector number.
Definition: MicrotpcRecoTrack.h:61
Belle2::MicrotpcRecoTrack::m_chi2
float m_chi2
chi^2 of the fit
Definition: MicrotpcRecoTrack.h:104
Belle2::MicrotpcRecoTrack::gettrl
float gettrl() const
Return track length.
Definition: MicrotpcRecoTrack.h:81
Belle2::MicrotpcRecoTrack::m_pixnb
int m_pixnb
pixel number
Definition: MicrotpcRecoTrack.h:102
Belle2::MicrotpcRecoTrack::getpartID
const int * getpartID() const
Return raw part ID.
Definition: MicrotpcRecoTrack.h:96
Belle2::MicrotpcRecoTrack::m_esum
float m_esum
total ionization energy
Definition: MicrotpcRecoTrack.h:110
Belle2::MicrotpcRecoTrack::m_cov
float m_cov[25]
Covariant errors.
Definition: MicrotpcRecoTrack.h:122
Belle2::MicrotpcRecoTrack::m_parFit
float m_parFit[5]
Fit parameters.
Definition: MicrotpcRecoTrack.h:118
Belle2::MicrotpcRecoTrack::gettotsum
int gettotsum() const
Return tot sum.
Definition: MicrotpcRecoTrack.h:83
Belle2::MicrotpcRecoTrack::getchi2
float getchi2() const
Return the chi^2.
Definition: MicrotpcRecoTrack.h:65
Belle2::MicrotpcRecoTrack::m_partID
int m_partID[6]
Raw particle ID.
Definition: MicrotpcRecoTrack.h:131