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
 ************************* DATA MEMBERS *************************
 
HitType * m_innerHit
 pointer to hit forming the inner end of the Segment.
 
FullSecID::BaseType m_outerSector
 iD of sector carrying outer hit
 
FullSecID::BaseType m_innerSector
 iD of sector carrying inner hit
 
const std::int64_t m_identifier
 unique identifier
 

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_outerHit(nullptr),
50 m_innerHit(nullptr),
51 m_outerSector(FullSecID()),
52 m_innerSector(FullSecID()),
53 m_identifier(-1)
54 {}
HitType * m_innerHit
pointer to hit forming the inner end of the Segment.
Definition: Segment.h:33
FullSecID::BaseType m_outerSector
iD of sector carrying outer hit
Definition: Segment.h:36
const std::int64_t m_identifier
unique identifier
Definition: Segment.h:42
FullSecID::BaseType m_innerSector
iD of sector carrying inner hit
Definition: Segment.h:39
HitType * m_outerHit
************************* DATA MEMBERS *************************
Definition: Segment.h:30

◆ 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 63 of file Segment.h.

63 :
64 m_outerHit(outerNode),
65 m_innerHit(innerNode),
66 m_outerSector(outerSector),
67 m_innerSector(innerSector),
68 m_identifier(static_cast<std::int64_t>(outerNode->getID()) << 32 | static_cast<std::int64_t>
69 (innerNode->getID())) // Use int TrackNode IDs to construct int Segment ID
70 {}

Member Function Documentation

◆ getID()

std::int64_t getID ( ) const
inline

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

getters: return ID of this segment

Definition at line 84 of file Segment.h.

84{ return m_identifier; }

◆ getInnerHit()

const HitType * getInnerHit ( ) const
inline

returns inner hit of current Segment

Definition at line 96 of file Segment.h.

96{ return m_innerHit; }

◆ getInnerSecID()

FullSecID::BaseType getInnerSecID ( ) const
inline

returns inner secID of current Segment

Definition at line 104 of file Segment.h.

104{ return m_innerSector; }

◆ getName()

std::string getName ( ) const
inline

returns longer debugging name of this segment

Definition at line 87 of file Segment.h.

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

◆ getOuterHit()

const HitType * getOuterHit ( ) const
inline

returns outer hit of current Segment

Definition at line 100 of file Segment.h.

100{ return m_outerHit; }

◆ getOuterSecID()

FullSecID::BaseType getOuterSecID ( ) const
inline

returns outer secID of current Segment

Definition at line 108 of file Segment.h.

108{ return m_outerSector; }

◆ operator==()

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

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

overloaded '=='-operator

Definition at line 75 of file Segment.h.

76 {
77 return (*getInnerHit() == *b.getInnerHit() and * getOuterHit() == *b.getOuterHit());
78 }
const HitType * getOuterHit() const
returns outer hit of current Segment
Definition: Segment.h:100
const HitType * getInnerHit() const
returns inner hit of current Segment
Definition: Segment.h:96

Member Data Documentation

◆ m_identifier

const std::int64_t m_identifier
protected

unique identifier

Definition at line 42 of file Segment.h.

◆ m_innerHit

HitType* m_innerHit
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 39 of file Segment.h.

◆ m_outerHit

HitType* m_outerHit
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 36 of file Segment.h.


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