Belle II Software  release-08-01-10
StaticSector< HitType, Filter2sp, Filter3sp, Filter4sp > Class Template Reference

class to describe a static sector of the sector map. More...

#include <StaticSector.h>

Collaboration diagram for StaticSector< HitType, Filter2sp, Filter3sp, Filter4sp >:

Public Member Functions

 StaticSector ()
 CONSTRUCTORS. More...
 
 StaticSector (FullSecID secID)
 constructor
 
const Filter2sp * getFilter2sp (FullSecID innerSector) const
 Get the pionter to the 2 Space Point filter assigned to the friendship relation among this sector; will return nullptr if filter is not found. More...
 
const Filter3sp * getFilter3sp (const FullSecID &centerID, const FullSecID &innerID) const
 Get the pionter to the 3 Space Point filter assigned to the friendship relation among this sector; will return nullptr if filter is not found. More...
 
const Filter4sp * getFilter4sp (const FullSecID &, const FullSecID &, const FullSecID &) const
 Get the pionter to the 4 Space Point filter assigned to the WARNING: not implemented yet. More...
 
const std::unordered_map< CompactSecIDs::sectorID_t, Filter2sp > & getAllFilters2sp () const
 Get constant access to the whole set of 2 Space Point filters.
 
const std::unordered_map< CompactSecIDs::secPairID_t, Filter3sp > & getAllFilters3sp () const
 Get constant access to the whole set of 3 Space Point filters.
 
const std::unordered_map< CompactSecIDs::secTripletID_t, Filter4sp > & getAllFilters4sp () const
 Get constant access to the whole set of 4 Space Point filters.
 
void assignCompactSecIDsMap (const CompactSecIDs &compactSecIDsMap)
 Assign the compact sector ID to this sector.
 
void assign2spFilter (FullSecID inner, const Filter2sp filter)
 Assign the 2 space point. More...
 
void assign3spFilter (FullSecID center, FullSecID inner, const Filter3sp filter)
 Parameters: pass the ID of the inner sectors (sorted from outer(left) to inner(right) and the filters you like to attach.
 
void assign4spFilter (FullSecID outerCenter, FullSecID innerCenter, FullSecID inner, const Filter3sp filter)
 Parameters: pass the ID of the inner sectors (sorted from outer(left) to inner(right) and the filters you like to attach.
 
void setSubLayerID (int sublayer)
 set sublayer ID, needed as it is updated in the trainings phase
 
const std::vector< FullSecID > & getInner2spSecIDs () const
 returns all IDs for inner sectors of two-sector-combinations
 
const std::vector< std::pair< FullSecID, FullSecID > > & getInner3spSecIDs () const
 returns all IDs for inner sectors of three-sector-combinations
 
const std::vector< std::tuple< FullSecID, FullSecID, FullSecID > > & getInner4spSecIDs () const
 returns all IDs for inner sectors of four-sector-combinations
 
FullSecID getFullSecID () const
 returns FullSecID of this sector
 
bool operator== (const StaticSector &b) const
 COMPARISON OPERATORS. More...
 
bool operator== (const FullSecID &b) const
 == -operator - compares if two StaticSectors are identical
 

Private Member Functions

void modify2SPFilters (const std::vector< std::tuple< int, std::string > > &adjustFunctions)
 PRIVATE MEMBERS. More...
 
void modify3SPFilters (const std::vector< std::tuple< int, std::string > > &adjustFunctions)
 function that modifies all 3SP-filters connected to this static sector More...
 
template<class FilterType >
void modifySingleFilter (FilterType &filter, const std::vector< std::tuple< int, std::string > > &adjustFunctions)
 Function that modifies the uper and lower bounds of the Ranges contained in the filter. More...
 

Private Attributes

FullSecID m_secID
 stores its own secID
 
const CompactSecIDsm_compactSecIDsMap
 map from FullSecID to CompactSecID
 
std::vector< FullSecIDm_inner2spSecIDs
 stores innerSecIDs for the attached 2-hit filters
 
std::vector< std::pair< FullSecID, FullSecID > > m_inner3spSecIDs
 stores innerSecIDs for the attached 3-hit filters
 
std::vector< std::tuple< FullSecID, FullSecID, FullSecID > > m_inner4spSecIDs
 stores innerSecIDs for the attached 4-hit filters
 
std::unordered_map< CompactSecIDs::sectorID_t, Filter2sp > m_2spFilters
 stores the attached 2-hit filters
 
std::unordered_map< CompactSecIDs::secPairID_t, Filter3sp > m_3spFilters
 stores the attached 3-hit filters
 
std::unordered_map< CompactSecIDs::secTripletID_t, Filter4sp > m_4spFilters
 stores the attached 4-hit filters
 

Friends

template<class T >
class VXDTFFilters
 

Detailed Description

template<class HitType, class Filter2sp, class Filter3sp, class Filter4sp>
class Belle2::StaticSector< HitType, Filter2sp, Filter3sp, Filter4sp >

class to describe a static sector of the sector map.

The static sector holds all the filters attached to it.

Definition at line 29 of file StaticSector.h.

Constructor & Destructor Documentation

◆ StaticSector()

StaticSector ( )
inline

CONSTRUCTORS.

standard constructor

Definition at line 41 of file StaticSector.h.

41  :
42  m_secID(FullSecID()), m_compactSecIDsMap(nullptr)
43  {}
const CompactSecIDs * m_compactSecIDsMap
map from FullSecID to CompactSecID
Definition: StaticSector.h:287
FullSecID m_secID
stores its own secID
Definition: StaticSector.h:284

Member Function Documentation

◆ assign2spFilter()

void assign2spFilter ( FullSecID  inner,
const Filter2sp  filter 
)
inline

Assign the 2 space point.

Parameters
innerFullSecID of the inner SpacePoint
filterto this static sector which is friend of the sector whose FullSecID is the parameter inner.

Definition at line 121 of file StaticSector.h.

◆ getFilter2sp()

const Filter2sp* getFilter2sp ( FullSecID  innerSector) const
inline

Get the pionter to the 2 Space Point filter assigned to the friendship relation among this sector; will return nullptr if filter is not found.

Parameters
innerSectorone

Definition at line 56 of file StaticSector.h.

◆ getFilter3sp()

const Filter3sp* getFilter3sp ( const FullSecID centerID,
const FullSecID innerID 
) const
inline

Get the pionter to the 3 Space Point filter assigned to the friendship relation among this sector; will return nullptr if filter is not found.

Parameters
centerID: FullSecID for the sector between the inner and this sector
innerID: FullSecID for the inner sector

Definition at line 69 of file StaticSector.h.

◆ getFilter4sp()

const Filter4sp* getFilter4sp ( const FullSecID ,
const FullSecID ,
const FullSecID  
) const
inline

Get the pionter to the 4 Space Point filter assigned to the WARNING: not implemented yet.

Will return a nullptr pointer in any case!

Definition at line 82 of file StaticSector.h.

◆ modify2SPFilters()

void modify2SPFilters ( const std::vector< std::tuple< int, std::string > > &  adjustFunctions)
inlineprivate

PRIVATE MEMBERS.

function that modifies all 2SP-filters connected to this static sector

Parameters
adjustFunctions: a vector of tuple<ind, string>. The int entry is the index of variable to be changed (see Filter::getNameAndReference where the indizes are defined) The string entry is a regex to be used in a TF1 (root function).

Definition at line 200 of file StaticSector.h.

◆ modify3SPFilters()

void modify3SPFilters ( const std::vector< std::tuple< int, std::string > > &  adjustFunctions)
inlineprivate

function that modifies all 3SP-filters connected to this static sector

Parameters
adjustFunctions: a vector of tuple<int, string>, The int entry is the index of the variable to be changed (see Filter::getNameAndReference where the indizes are defined) The string entry is a regex to be used in a TF1 (root function).

Definition at line 211 of file StaticSector.h.

◆ modifySingleFilter()

void modifySingleFilter ( FilterType &  filter,
const std::vector< std::tuple< int, std::string > > &  adjustFunctions 
)
inlineprivate

Function that modifies the uper and lower bounds of the Ranges contained in the filter.

The actual bounds which will be modified are accessed by their index they have (see Filter::getNameAndReference where the indizes are defined).

Parameters
filtera specialization of Filter
adjustFunctions: a vector of tuple<int, string>. The int (first entry) is the index of variable to change (see Filter::getNameAndReference where the indizes are defined) The string entry is a regex to be used in a TF1 (root function). For the regex it is assumed that "x" is the cutvalue itself and "[0]" is the FullSecID of the static sector (e.g. "sin(x) + [0]")

Definition at line 227 of file StaticSector.h.

◆ operator==()

bool operator== ( const StaticSector< HitType, Filter2sp, Filter3sp, Filter4sp > &  b) const
inline

COMPARISON OPERATORS.

== -operator - compares if two StaticSectors are identical

Definition at line 180 of file StaticSector.h.


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