Belle II Software development
SpacePointInfo.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
9#pragma once
10
11#include <TObject.h>
12#include <Math/Vector3D.h>
13
14#include <vxd/dataobjects/VxdID.h>
15
16namespace Belle2 {
22 class SpacePointInfo : public TObject {
23 public:
26 m_position(0., 0., 0.),
27 m_positionError(1., 1., 1.),
32 m_vxdID(Belle2::VxdID::baseType(0)),
33 m_sensorType(-1),
35 m_isAssigned(false)
36 {
37 }
38
41
45 void setPosition(ROOT::Math::XYZVector v) { m_position = v; };
46
48 double getX() { return m_position.X(); };
49
51 double getY() { return m_position.Y(); };
52
54 double getZ() { return m_position.Z(); };
55
59 void setPositionError(ROOT::Math::XYZVector v) { m_positionError = v; };
60
62 double getErrorX() { return m_positionError.X(); };
63
65 double getErrorY() { return m_positionError.Y(); };
66
68 double getErrorZ() { return m_positionError.Z(); };
69
73 void setNormalizedLocalU(double val) { m_normalizedLocalU = val; };
74
77
81 void setNormalizedLocalV(double val) { m_normalizedLocalV = val; };
82
85
88
93
96
101
104
109
111 int getSensorType() { return m_sensorType;};
112
116 void setSensorType(int type) { m_sensorType = type;};
117
120
124 void setQualityIndicator(double qi) { m_qualityIndicator = qi; };
125
127 bool getIsAssigned() { return m_isAssigned; };
128
132 void setIsAssigned(bool ia) { m_isAssigned = ia; };
133
134
135 private:
137 ROOT::Math::XYZVector m_position;
138
140 ROOT::Math::XYZVector m_positionError;
141
144
147
150
153
156
159
162
165
168 };
170}
helper class to store the SpacePoint information as coding convention prohibits to use the SpacePoint...
ROOT::Math::XYZVector m_position
3-vector with position in global coordinates
bool getIsAssigned()
getter for is assigned
double m_qualityIndicator
the quality indicator for that SP
double getQualityIndicator()
getter for the quality indicator
bool m_clustersAssignedU
true if SP has a u-cluster assigned
double getZ()
getter for the y-position
double getY()
getter for the y-position
bool getClustersAssignedU()
returns true if u cluster is assigned
void setNormalizedLocalU(double val)
setter for the normalized u coordinate
double getX()
getter for the x-position
double getErrorX()
getter for uncertainty on x
void setSensorType(int type)
setter for sensor type:
SpacePointInfo()
constructor
double m_normalizedLocalU
normalized coordinates of spacepoint in local coordinates u-direction
Belle2::VxdID::baseType m_vxdID
used the baseType instead of VxdID as root seems to have problems with it
void setPosition(ROOT::Math::XYZVector v)
setter for the position.
double getNormalizedLocalV()
getter function for normalized v coordinate
ROOT::Math::XYZVector m_positionError
uncertainty on the position
~SpacePointInfo()
destructor
double getErrorZ()
getter for uncertainty on z
void setQualityIndicator(double qi)
setter for the quality indicator
double getNormalizedLocalU()
getter function for normalized u coordinate
double getErrorY()
getter for uncertainty on y
void setVxdID(Belle2::VxdID::baseType anId)
setter for the VxdID:
Belle2::VxdID::baseType getVxdID()
getter for the VxdID
bool m_clustersAssignedV
true if SP has a v-cluster assigned
bool m_isAssigned
true if is assigned
bool getClustersAssignedV()
returns true if u cluster is assigned
void setPositionError(ROOT::Math::XYZVector v)
setter for the uncertainty on the position
void setNormalizedLocalV(double val)
setter for the normalized v coordinate
void setClustersAssignedV(bool b)
setter for is v cluster assigned
void setIsAssigned(bool ia)
setter for is assigned
double m_normalizedLocalV
normalized coordinates of spacepoint in local coordinates v -direction
ClassDef(SpacePointInfo, 2)
needed by root
int m_sensorType
the sensor type
int getSensorType()
getter for sensor type
void setClustersAssignedU(bool b)
setter for is u cluster assigned
Class to uniquely identify a any structure of the PXD and SVD.
Definition: VxdID.h:33
unsigned short baseType
The base integer type for VxdID.
Definition: VxdID.h:36
Abstract base class for different kinds of events.