Belle II Software development
Segment< HitType > Class Template Reference

The Segment class This class represents segments of track candidates needed for TrackFinderVXD-Modules. More...

#include <Segment.h>

Public Member Functions

 Segment ()
 ************************* CONSTRUCTORS *************************
 
 Segment (FullSecID::BaseType outerSector, FullSecID::BaseType innerSector, HitType *outerNode, HitType *innerNode)
 Constructor.
 
bool operator== (const Segment &b) const
 ************************* OPERATORS *************************
 
std::int64_t getID () const
 ************************* PUBLIC MEMBER FUNCTIONS *************************
 
std::string getName () const
 returns longer debugging name of this segment
 
const HitType * getInnerHit () const
 returns inner hit of current Segment
 
const HitType * getOuterHit () const
 returns outer hit of current Segment
 
FullSecID::BaseType getInnerSecID () const
 returns inner secID of current Segment
 
FullSecID::BaseType getOuterSecID () const
 returns outer secID of current Segment
 

Protected Attributes

HitType * m_outerHit = nullptr
 ************************* DATA MEMBERS *************************
 
HitType * m_innerHit = nullptr
 pointer to hit forming the inner end of the Segment.
 
const std::int64_t m_identifier = -1
 unique identifier
 
FullSecID::BaseType m_outerSector
 iD of sector carrying outer hit
 
FullSecID::BaseType m_innerSector
 iD of sector carrying inner hit
 

Detailed Description

template<class HitType>
class Belle2::Segment< HitType >

The Segment class This class represents segments of track candidates needed for TrackFinderVXD-Modules.

Definition at line 25 of file Segment.h.

Constructor & Destructor Documentation

◆ Segment() [1/2]

Segment ( )
inline

************************* CONSTRUCTORS *************************

Default constructor for the ROOT IO.

Definition at line 48 of file Segment.h.

48 :
49 m_outerSector(FullSecID()),
50 m_innerSector(FullSecID())
51 {}
FullSecID::BaseType m_outerSector
iD of sector carrying outer hit
Definition: Segment.h:39
FullSecID::BaseType m_innerSector
iD of sector carrying inner hit
Definition: Segment.h:42

◆ Segment() [2/2]

Segment ( FullSecID::BaseType  outerSector,
FullSecID::BaseType  innerSector,
HitType *  outerNode,
HitType *  innerNode 
)
inline

Constructor.

// *

Parameters
outerSectorsecID of outer Sector associated with this segment. // *
innerSectorsecID of inner Sector associated with this segment. // *
outerNodepointer to outer Hit associated with this segment. // *
innerNodepointer to inner Hit associated with this segment. //

Definition at line 60 of file Segment.h.

60 :
61 m_outerHit(outerNode),
62 m_innerHit(innerNode),
63 m_identifier(static_cast<std::int64_t>(outerNode->getID()) << 32 | static_cast<std::int64_t>
64 (innerNode->getID())), // Use int TrackNode IDs to construct int Segment ID
65 m_outerSector(outerSector),
66 m_innerSector(innerSector)
67 {}
HitType * m_innerHit
pointer to hit forming the inner end of the Segment.
Definition: Segment.h:33
const std::int64_t m_identifier
unique identifier
Definition: Segment.h:36
HitType * m_outerHit
************************* DATA MEMBERS *************************
Definition: Segment.h:30

Member Function Documentation

◆ getID()

std::int64_t getID ( ) const
inline

************************* PUBLIC MEMBER FUNCTIONS *************************

getters: return ID of this segment

Definition at line 81 of file Segment.h.

81{ return m_identifier; }

◆ getInnerHit()

const HitType * getInnerHit ( ) const
inline

returns inner hit of current Segment

Definition at line 93 of file Segment.h.

93{ return m_innerHit; }

◆ getInnerSecID()

FullSecID::BaseType getInnerSecID ( ) const
inline

returns inner secID of current Segment

Definition at line 101 of file Segment.h.

101{ return m_innerSector; }

◆ getName()

std::string getName ( ) const
inline

returns longer debugging name of this segment

Definition at line 84 of file Segment.h.

85 {
86 if (m_identifier >= 0)
87 return "Out: " + m_outerHit->getName() + ")" + ",\nin: " + m_innerHit->getName();
88 else
89 return "Out: missing,\nin: missing";
90 }

◆ getOuterHit()

const HitType * getOuterHit ( ) const
inline

returns outer hit of current Segment

Definition at line 97 of file Segment.h.

97{ return m_outerHit; }

◆ getOuterSecID()

FullSecID::BaseType getOuterSecID ( ) const
inline

returns outer secID of current Segment

Definition at line 105 of file Segment.h.

105{ return m_outerSector; }

◆ operator==()

bool operator== ( const Segment< HitType > &  b) const
inline

************************* OPERATORS *************************

overloaded '=='-operator

Definition at line 72 of file Segment.h.

73 {
74 return (*getInnerHit() == *b.getInnerHit() and * getOuterHit() == *b.getOuterHit());
75 }
const HitType * getOuterHit() const
returns outer hit of current Segment
Definition: Segment.h:97
const HitType * getInnerHit() const
returns inner hit of current Segment
Definition: Segment.h:93

Member Data Documentation

◆ m_identifier

const std::int64_t m_identifier = -1
protected

unique identifier

Definition at line 36 of file Segment.h.

◆ m_innerHit

HitType* m_innerHit = nullptr
protected

pointer to hit forming the inner end of the Segment.

Definition at line 33 of file Segment.h.

◆ m_innerSector

FullSecID::BaseType m_innerSector
protected

iD of sector carrying inner hit

Definition at line 42 of file Segment.h.

◆ m_outerHit

HitType* m_outerHit = nullptr
protected

************************* DATA MEMBERS *************************

pointer to hit forming the outer end of the Segment.

Definition at line 30 of file Segment.h.

◆ m_outerSector

FullSecID::BaseType m_outerSector
protected

iD of sector carrying outer hit

Definition at line 39 of file Segment.h.


The documentation for this class was generated from the following file: