Belle II Software  release-06-02-00
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 <TVector3.h>
13 
14 #include <vxd/dataobjects/VxdID.h>
15 
16 namespace Belle2 {
22  class SpacePointInfo : public TObject {
23  public:
26  m_position(0., 0., 0.),
27  m_positionError(1., 1., 1.),
30  m_clustersAssignedU(false),
31  m_clustersAssignedV(false),
32  m_vxdID(Belle2::VxdID::baseType(0)),
33  m_sensorType(-1),
34  m_qualityIndicator(0.5),
35  m_isAssigned(false)
36  {
37  }
38 
41 
45  void setPosition(TVector3 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(TVector3 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 
108  void setVxdID(Belle2::VxdID::baseType anId) { m_vxdID = anId; };
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  TVector3 m_position;
138 
140  TVector3 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...
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
TVector3 m_position
3-vector with positon in global coordinates
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
double getNormalizedLocalV()
getter function for normalized v coordinate
~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
TVector3 m_positionError
uncertainty on the position
double getErrorY()
getter for uncertainty on y
void setPositionError(TVector3 v)
setter for the uncertainty on the position
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 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, 1)
needed by root
void setPosition(TVector3 v)
setter for the position.
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.