 |
Belle II Software
release-05-02-19
|
12 #include <tracking/spacePointCreation/SpacePoint.h>
13 #include <tracking/trackFindingVXD/environment/VXDTFFilters.h>
14 #include <tracking/trackFindingVXD/segmentNetwork/ActiveSector.h>
57 if (
m_spacePoint !=
nullptr and b.m_spacePoint !=
nullptr and
m_sector !=
nullptr and b.m_sector !=
nullptr) {
64 if (b.m_spacePoint !=
nullptr and b.m_sector !=
nullptr)
return false;
67 bool spacePointsAreEqual =
false;
68 if (
m_spacePoint !=
nullptr and b.m_spacePoint !=
nullptr) {
69 spacePointsAreEqual = (*
m_spacePoint == *(b.m_spacePoint));
73 bool sectorsAreEqual =
false;
74 if (
m_sector !=
nullptr and b.m_sector !=
nullptr) {
75 sectorsAreEqual = (*
m_sector == *(b.m_sector));
77 sectorsAreEqual = (
m_sector == b.m_sector);
79 return (spacePointsAreEqual ==
true and sectorsAreEqual ==
true);
87 B2FATAL(
"TrackNode::operator !=: m_spacePoint for Tracknode not set - aborting run.");
97 B2FATAL(
"TrackNode::getHit: m_spacePoint for Tracknode not set - aborting run.");
107 B2FATAL(
"TrackNode::getActiveSector: ActiveSector for Tracknode not set - aborting run.");
123 return "SP: missing";
bool operator!=(const TrackNode &b) const
Overloaded '!='-operator.
Minimal class to store combination of sector and spacePoint, since SpacePoint can not carry sectorCon...
StaticSector< point_t, twoHitFilter_t, threeHitFilter_t, int > staticSector_t
typedef to make a static sector type more readable.
SpacePoint * m_spacePoint
Pointer to spacePoint.
SpacePoint typically is build from 1 PXDCluster or 1-2 SVDClusters.
std::string getName() const override
Print out some info for this SpacePoint.
std::int32_t getID() const
Return ID of this node.
Abstract base class for different kinds of events.
const SpacePoint & getHit() const
returns reference to hit.
ActiveSector< StaticSectorType, TrackNode > & getActiveSector()
returns reference to hit.
VXDTFFilters< SpacePoint >::staticSector_t StaticSectorType
To improve readability of the code, here the definition of the static sector type.
ActiveSector< StaticSectorType, TrackNode > * m_sector
Pointer to sector.
bool operator==(const TrackNode &b) const
Overloaded '=='-operator TODO JKL: pretty ugly operator overload, should be fixed ASAP!...
const std::int32_t m_identifier
Unique integer identifier.
std::string getName() const
Returns longer debugging name of this node.