Belle II Software  release-05-01-25
SpacePointInfo.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2015 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Thomas Lueck *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <TObject.h>
14 #include <TVector3.h>
15 
16 #include <vxd/dataobjects/VxdID.h>
17 
18 namespace Belle2 {
23  class SpacePointInfo : public TObject {
25  public:
27  SpacePointInfo() :
28  m_position( {0., 0., 0.}),
29  m_positionError({1., 1., 1.}),
33  m_clustersAssignedV(false),
36  m_qualityIndicator(0.5),
37  m_isAssigned(false)
38  {
39  };
40 
42  ~SpacePointInfo() {};
43 
47  void setPosition(TVector3 v) { m_position = v; };
48 
50  double getX() { return m_position.X(); };
51 
53  double getY() { return m_position.Y(); };
54 
56  double getZ() { return m_position.Z(); };
57 
61  void setPositionError(TVector3 v) { m_positionError = v; };
62 
64  double getErrorX() { return m_positionError.X(); };
65 
67  double getErrorY() { return m_positionError.Y(); };
68 
70  double getErrorZ() { return m_positionError.Z(); };
71 
75  void setNormalizedLocalU(double val) { m_normalizedLocalU = val; };
76 
79 
83  void setNormalizedLocalV(double val) { m_normalizedLocalV = val; };
84 
87 
89  bool getClustersAssignedU() { return m_clustersAssignedU;};
90 
95 
98 
103 
106 
110  void setVxdID(Belle2::VxdID::baseType anId) { m_vxdID = anId; };
111 
113  int getSensorType() { return m_sensorType;};
114 
118  void setSensorType(int type) { m_sensorType = type;};
119 
122 
126  void setQualityIndicator(double qi) { m_qualityIndicator = qi; };
127 
129  bool getIsAssigned() { return m_isAssigned; };
130 
134  void setIsAssigned(bool ia) { m_isAssigned = ia; };
135 
136 
137  private:
139  TVector3 m_position;
140 
142  TVector3 m_positionError;
143 
145  double m_normalizedLocalU;
146 
148  double m_normalizedLocalV;
149 
151  bool m_clustersAssignedU;
152 
154  bool m_clustersAssignedV;
155 
158 
160  int m_sensorType;
161 
163  double m_qualityIndicator;
164 
166  bool m_isAssigned;
167 
170  };
172 }
Belle2::SpacePointInfo::m_clustersAssignedV
bool m_clustersAssignedV
true if SP has a v-cluster assigned
Definition: SpacePointInfo.h:162
Belle2::SpacePointInfo::setVxdID
void setVxdID(Belle2::VxdID::baseType anId)
setter for the VxdID:
Definition: SpacePointInfo.h:118
Belle2::SpacePointInfo::m_normalizedLocalU
double m_normalizedLocalU
normalized coordinates of spacepoint in local coordinates u-direction
Definition: SpacePointInfo.h:153
Belle2::SpacePointInfo::m_qualityIndicator
double m_qualityIndicator
the quality indicator for that SP
Definition: SpacePointInfo.h:171
Belle2::SpacePointInfo::getVxdID
Belle2::VxdID::baseType getVxdID()
getter for the VxdID
Definition: SpacePointInfo.h:113
Belle2::SpacePointInfo::getX
double getX()
getter for the x-position
Definition: SpacePointInfo.h:58
Belle2::SpacePointInfo::~SpacePointInfo
~SpacePointInfo()
destructor
Definition: SpacePointInfo.h:50
Belle2::SpacePointInfo::getErrorY
double getErrorY()
getter for uncertainty on y
Definition: SpacePointInfo.h:75
Belle2::SpacePointInfo::setIsAssigned
void setIsAssigned(bool ia)
setter for is assigned
Definition: SpacePointInfo.h:142
Belle2::SpacePointInfo::getNormalizedLocalU
double getNormalizedLocalU()
getter function for normalized u coordinate
Definition: SpacePointInfo.h:86
Belle2::SpacePointInfo::getZ
double getZ()
getter for the y-position
Definition: SpacePointInfo.h:64
Belle2::SpacePointInfo::m_isAssigned
bool m_isAssigned
true if is assigned
Definition: SpacePointInfo.h:174
Belle2::SpacePointInfo::getQualityIndicator
double getQualityIndicator()
getter for the quality indicator
Definition: SpacePointInfo.h:129
Belle2::SpacePointInfo::setClustersAssignedU
void setClustersAssignedU(bool b)
setter for is u cluster assigned
Definition: SpacePointInfo.h:102
Belle2::SpacePointInfo::getErrorX
double getErrorX()
getter for uncertainty on x
Definition: SpacePointInfo.h:72
Belle2::SpacePointInfo::m_vxdID
Belle2::VxdID::baseType m_vxdID
used the baseType instead of VxdID as root seems to have problems with it
Definition: SpacePointInfo.h:165
Belle2::SpacePointInfo::setClustersAssignedV
void setClustersAssignedV(bool b)
setter for is v cluster assigned
Definition: SpacePointInfo.h:110
Belle2::SpacePointInfo::m_positionError
TVector3 m_positionError
uncertainty on the position
Definition: SpacePointInfo.h:150
Belle2::SpacePointInfo::getClustersAssignedU
bool getClustersAssignedU()
returns true if u cluster is assigned
Definition: SpacePointInfo.h:97
Belle2::SpacePointInfo::getSensorType
int getSensorType()
getter for sensor type
Definition: SpacePointInfo.h:121
Belle2::VxdID::baseType
unsigned short baseType
The base integer type for VxdID.
Definition: VxdID.h:46
Belle2::SpacePointInfo::getErrorZ
double getErrorZ()
getter for uncertainty on z
Definition: SpacePointInfo.h:78
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::SpacePointInfo::setPositionError
void setPositionError(TVector3 v)
setter for the uncertainty on the position
Definition: SpacePointInfo.h:69
Belle2::SpacePointInfo::m_sensorType
int m_sensorType
the sensor type
Definition: SpacePointInfo.h:168
Belle2::SpacePointInfo::setQualityIndicator
void setQualityIndicator(double qi)
setter for the quality indicator
Definition: SpacePointInfo.h:134
Belle2::SpacePointInfo::getClustersAssignedV
bool getClustersAssignedV()
returns true if u cluster is assigned
Definition: SpacePointInfo.h:105
Belle2::SpacePointInfo::m_clustersAssignedU
bool m_clustersAssignedU
true if SP has a u-cluster assigned
Definition: SpacePointInfo.h:159
Belle2::SpacePointInfo::setNormalizedLocalU
void setNormalizedLocalU(double val)
setter for the normalized u coordinate
Definition: SpacePointInfo.h:83
Belle2::SpacePointInfo::setSensorType
void setSensorType(int type)
setter for sensor type:
Definition: SpacePointInfo.h:126
Belle2::SpacePointInfo::getY
double getY()
getter for the y-position
Definition: SpacePointInfo.h:61
Belle2::SpacePointInfo::setNormalizedLocalV
void setNormalizedLocalV(double val)
setter for the normalized v coordinate
Definition: SpacePointInfo.h:91
Belle2::SpacePointInfo::m_normalizedLocalV
double m_normalizedLocalV
normalized coordinates of spacepoint in local coordinates v -direction
Definition: SpacePointInfo.h:156
Belle2::SpacePointInfo
helper class to store the SpacePoint information as coding convention prohibits to use the SpacePoint...
Definition: SpacePointInfo.h:32
Belle2::SpacePointInfo::setPosition
void setPosition(TVector3 v)
setter for the position.
Definition: SpacePointInfo.h:55
Belle2::SpacePointInfo::m_position
TVector3 m_position
3-vector with positon in global coordinates
Definition: SpacePointInfo.h:142
Belle2::SpacePointInfo::SpacePointInfo
SpacePointInfo()
constructor
Definition: SpacePointInfo.h:35
Belle2::SpacePointInfo::getNormalizedLocalV
double getNormalizedLocalV()
getter function for normalized v coordinate
Definition: SpacePointInfo.h:94
Belle2::SpacePointInfo::getIsAssigned
bool getIsAssigned()
getter for is assigned
Definition: SpacePointInfo.h:137
Belle2::SpacePointInfo::ClassDef
ClassDef(SpacePointInfo, 1)
needed by root