10#include <tracking/spacePointCreation/SpacePoint.h>
11#include <tracking/trackFindingVXD/environment/VXDTFFilters.h>
12#include <tracking/trackFindingVXD/segmentNetwork/ActiveSector.h>
55 if (
m_spacePoint !=
nullptr and b.m_spacePoint !=
nullptr and
m_sector !=
nullptr and b.m_sector !=
nullptr) {
62 if (b.m_spacePoint !=
nullptr and b.m_sector !=
nullptr)
return false;
65 bool spacePointsAreEqual =
false;
66 if (
m_spacePoint !=
nullptr and b.m_spacePoint !=
nullptr) {
67 spacePointsAreEqual = (*
m_spacePoint == *(b.m_spacePoint));
71 bool sectorsAreEqual =
false;
72 if (
m_sector !=
nullptr and b.m_sector !=
nullptr) {
73 sectorsAreEqual = (*
m_sector == *(b.m_sector));
75 sectorsAreEqual = (
m_sector == b.m_sector);
77 return (spacePointsAreEqual ==
true and sectorsAreEqual ==
true);
85 B2FATAL(
"TrackNode::operator !=: m_spacePoint for Tracknode not set - aborting run.");
95 B2FATAL(
"TrackNode::getHit: m_spacePoint for Tracknode not set - aborting run.");
105 B2FATAL(
"TrackNode::getActiveSector: ActiveSector for Tracknode not set - aborting run.");
121 return "SP: missing";
SpacePoint typically is build from 1 PXDCluster or 1-2 SVDClusters.
StaticSector< point_t, twoHitFilter_t, threeHitFilter_t, int > staticSector_t
typedef to make a static sector type more readable.
Abstract base class for different kinds of events.
bool operator==(const TrackNode &b) const
Overloaded '=='-operator TODO JKL: pretty ugly operator overload, should be fixed ASAP!
const SpacePoint & getHit() const
returns reference to hit.
SpacePoint * m_spacePoint
Pointer to spacePoint.
bool operator!=(const TrackNode &b) const
Overloaded '!='-operator.
const std::int32_t m_identifier
Unique integer identifier.
ActiveSector< StaticSectorType, TrackNode > & getActiveSector()
returns reference to hit.
std::string getName() const
Returns longer debugging name of this node.
TrackNode(SpacePoint *spacePoint)
Constructor with information from SpacePoint.
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.
std::int32_t getID() const
Return ID of this node.