Belle II Software development
ActiveSector< StaticSectorType, HitType > Class Template Reference

The ActiveSector Class. More...

#include <ActiveSector.h>

Public Member Functions

 ActiveSector ()
 ************************* CONSTRUCTORS *************************
 
 ActiveSector (const StaticSectorType *staticSector)
 Constructor.
 
bool operator== (const ActiveSector &b) const
 ************************* OPERATORS *************************
 
bool operator< (const ActiveSector &b) const
 overloaded '<'-operator for sorting algorithms
 
bool operator> (const ActiveSector &b) const
 overloaded '>'-operator for sorting algorithms
 
std::int32_t getID () const
 ************************* PUBLIC MEMBER FUNCTIONS *************************
 
std::string getName () const
 returns longer debugging name of this sector
 
const std::vector< HitType * > & getHits () const
 returns all indices of attached Hits
 
const std::vector< FullSecID > & getInner2spSecIDs () const
 returns all IDs for inner sectors of two-sector-combinations stored in the static SectorMap
 
const std::vector< FullSecID > & getInner3spSecIDs () const
 returns all IDs for inner sectors of three-sector-combinations stored in the static SectorMap
 
const std::vector< FullSecID > & getInner4spSecIDs () const
 returns all IDs for inner sectors of four-sector-combinations stored in the static SectorMap
 
const StaticSectorType * getAttachedStaticSector () const
 returns pointer to associated static Sector in StoreArray
 
FullSecID getFullSecID () const
 returns VxdID of sensor carrying current sector
 
void addHit (HitType *newHit)
 setters:
 
void addHits (const std::vector< HitType * > &newHits)
 adds new several new hits to vector of hits

 

Protected Attributes

const StaticSectorType * m_staticSector
 ************************* DATA MEMBERS *************************
 
std::vector< HitType * > m_hits
 stores indices of all associated Hits
 
const std::int32_t m_identifier
 unique identifier
 

Detailed Description

template<class StaticSectorType, class HitType>
class Belle2::ActiveSector< StaticSectorType, HitType >

The ActiveSector Class.

associated with static sector to be able to access filter cutoffs. It contains a vector of hits associated with it and allows to determine the related inner sectors.

Definition at line 29 of file ActiveSector.h.

Constructor & Destructor Documentation

◆ ActiveSector() [1/2]

ActiveSector ( )
inline

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

Default constructor for root compatibility

Definition at line 46 of file ActiveSector.h.

46: m_staticSector(nullptr), m_identifier(-1) {}
const std::int32_t m_identifier
unique identifier
Definition: ActiveSector.h:40
const StaticSectorType * m_staticSector
************************* DATA MEMBERS *************************
Definition: ActiveSector.h:34

◆ ActiveSector() [2/2]

ActiveSector ( const StaticSectorType *  staticSector)
inlineexplicit

Constructor.

Parameters
staticSectorpointer to static sector associated with this one.

Definition at line 51 of file ActiveSector.h.

51 :
52 m_staticSector(staticSector), m_identifier(staticSector->getFullSecID())
53 {}

Member Function Documentation

◆ addHit()

void addHit ( HitType *  newHit)
inline

setters:

adds new Hit to vector of Hits

Definition at line 120 of file ActiveSector.h.

120{ m_hits.push_back(newHit); }
std::vector< HitType * > m_hits
stores indices of all associated Hits
Definition: ActiveSector.h:37

◆ addHits()

void addHits ( const std::vector< HitType * > &  newHits)
inline

adds new several new hits to vector of hits

Definition at line 124 of file ActiveSector.h.

125 {
126 for (HitType* aHit : newHits) { addHit(aHit); }
127 }
void addHit(HitType *newHit)
setters:
Definition: ActiveSector.h:120

◆ getAttachedStaticSector()

const StaticSectorType * getAttachedStaticSector ( ) const
inline

returns pointer to associated static Sector in StoreArray

Definition at line 110 of file ActiveSector.h.

110{ return m_staticSector; }

◆ getFullSecID()

FullSecID getFullSecID ( ) const
inline

returns VxdID of sensor carrying current sector

Definition at line 114 of file ActiveSector.h.

114{ return m_staticSector->getFullSecID(); }

◆ getHits()

const std::vector< HitType * > & getHits ( ) const
inline

returns all indices of attached Hits

Definition at line 94 of file ActiveSector.h.

94{ return m_hits; }

◆ getID()

std::int32_t getID ( ) const
inline

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

getters: return ID of this sector

Definition at line 82 of file ActiveSector.h.

82{ return m_identifier; }

◆ getInner2spSecIDs()

const std::vector< FullSecID > & getInner2spSecIDs ( ) const
inline

returns all IDs for inner sectors of two-sector-combinations stored in the static SectorMap

Definition at line 98 of file ActiveSector.h.

98{ return m_staticSector->getInner2spSecIDs(); }

◆ getInner3spSecIDs()

const std::vector< FullSecID > & getInner3spSecIDs ( ) const
inline

returns all IDs for inner sectors of three-sector-combinations stored in the static SectorMap

Definition at line 102 of file ActiveSector.h.

102{ return m_staticSector->getInner3spSecIDs(); }

◆ getInner4spSecIDs()

const std::vector< FullSecID > & getInner4spSecIDs ( ) const
inline

returns all IDs for inner sectors of four-sector-combinations stored in the static SectorMap

Definition at line 106 of file ActiveSector.h.

106{ return m_staticSector->getInner4spSecIDs(); }

◆ getName()

std::string getName ( ) const
inline

returns longer debugging name of this sector

Definition at line 85 of file ActiveSector.h.

86 {
87 if (m_identifier >= 0)
88 return m_staticSector->getFullSecID().getFullSecString();
89 else
90 return "";
91 }

◆ operator<()

bool operator< ( const ActiveSector< StaticSectorType, HitType > &  b) const
inline

overloaded '<'-operator for sorting algorithms

Definition at line 66 of file ActiveSector.h.

67 {
68 return (getFullSecID() < b.getFullSecID());
69 }
FullSecID getFullSecID() const
returns VxdID of sensor carrying current sector
Definition: ActiveSector.h:114

◆ operator==()

bool operator== ( const ActiveSector< StaticSectorType, HitType > &  b) const
inline

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

overloaded '=='-operator for sorting algorithms

Definition at line 59 of file ActiveSector.h.

60 {
61 return (getFullSecID() == b.getFullSecID());
62 }

◆ operator>()

bool operator> ( const ActiveSector< StaticSectorType, HitType > &  b) const
inline

overloaded '>'-operator for sorting algorithms

Definition at line 73 of file ActiveSector.h.

74 {
75 return (getFullSecID() > b.getFullSecID());
76 }

Member Data Documentation

◆ m_hits

std::vector<HitType*> m_hits
protected

stores indices of all associated Hits

Definition at line 37 of file ActiveSector.h.

◆ m_identifier

const std::int32_t m_identifier
protected

unique identifier

Definition at line 40 of file ActiveSector.h.

◆ m_staticSector

const StaticSectorType* m_staticSector
protected

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

Pointer to real sector after design of SectorMap

Definition at line 34 of file ActiveSector.h.


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