Belle II Software development
|
class to describe a static sector of the sector map. More...
#include <StaticSector.h>
Public Member Functions | |
StaticSector () | |
CONSTRUCTORS. | |
StaticSector (FullSecID secID) | |
constructor | |
const Filter2sp * | getFilter2sp (FullSecID innerSector) const |
Get the pointer to the 2 Space Point filter assigned to the friendship relation among this sector; will return nullptr if filter is not found. | |
const Filter3sp * | getFilter3sp (const FullSecID ¢erID, const FullSecID &innerID) const |
Get the pointer to the 3 Space Point filter assigned to the friendship relation among this sector; will return nullptr if filter is not found. | |
const Filter4sp * | getFilter4sp (const FullSecID &, const FullSecID &, const FullSecID &) const |
Get the pointer to the 4 Space Point filter assigned to the WARNING: not implemented yet. | |
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. | |
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. | |
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. | |
void | modify3SPFilters (const std::vector< std::tuple< int, std::string > > &adjustFunctions) |
function that modifies all 3SP-filters connected to this static sector | |
template<class FilterType > | |
void | modifySingleFilter (FilterType &filter, const std::vector< std::tuple< int, std::string > > &adjustFunctions) |
Function that modifies the upper and lower bounds of the Ranges contained in the filter. | |
Private Attributes | |
FullSecID | m_secID |
stores its own secID | |
const CompactSecIDs * | m_compactSecIDsMap |
map from FullSecID to CompactSecID | |
std::vector< FullSecID > | m_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 |
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.
|
inline |
CONSTRUCTORS.
standard constructor
Definition at line 41 of file StaticSector.h.
|
inlineexplicit |
constructor
Definition at line 46 of file StaticSector.h.
|
inline |
Assign the 2 space point.
inner | FullSecID of the inner SpacePoint |
filter | to this static sector which is friend of the sector whose FullSecID is the parameter inner. |
Definition at line 121 of file StaticSector.h.
Parameters: pass the ID of the inner sectors (sorted from outer(left) to inner(right) and the filters you like to attach.
Definition at line 128 of file StaticSector.h.
|
inline |
Parameters: pass the ID of the inner sectors (sorted from outer(left) to inner(right) and the filters you like to attach.
Definition at line 136 of file StaticSector.h.
|
inline |
Assign the compact sector ID to this sector.
Definition at line 111 of file StaticSector.h.
|
inline |
Get constant access to the whole set of 2 Space Point filters.
Definition at line 94 of file StaticSector.h.
|
inline |
Get constant access to the whole set of 3 Space Point filters.
Definition at line 100 of file StaticSector.h.
|
inline |
Get constant access to the whole set of 4 Space Point filters.
Definition at line 106 of file StaticSector.h.
|
inline |
Get the pointer to the 2 Space Point filter assigned to the friendship relation among this sector; will return nullptr if filter is not found.
innerSector | one |
Definition at line 56 of file StaticSector.h.
|
inline |
Get the pointer to the 3 Space Point filter assigned to the friendship relation among this sector; will return nullptr if filter is not found.
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.
|
inline |
Get the pointer 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.
|
inline |
|
inline |
returns all IDs for inner sectors of two-sector-combinations
Definition at line 154 of file StaticSector.h.
returns all IDs for inner sectors of three-sector-combinations
Definition at line 161 of file StaticSector.h.
|
inline |
returns all IDs for inner sectors of four-sector-combinations
Definition at line 167 of file StaticSector.h.
|
inlineprivate |
PRIVATE MEMBERS.
function that modifies all 2SP-filters connected to this static sector
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.
|
inlineprivate |
function that modifies all 3SP-filters connected to this static sector
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.
|
inlineprivate |
Function that modifies the upper 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).
filter | a 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.
|
inline |
== -operator - compares if two StaticSectors are identical
Definition at line 186 of file StaticSector.h.
|
inline |
COMPARISON OPERATORS.
== -operator - compares if two StaticSectors are identical
Definition at line 180 of file StaticSector.h.
|
inline |
set sublayer ID, needed as it is updated in the trainings phase
Definition at line 147 of file StaticSector.h.
|
friend |
Definition at line 34 of file StaticSector.h.
|
private |
stores the attached 2-hit filters
Definition at line 297 of file StaticSector.h.
|
private |
stores the attached 3-hit filters
Definition at line 299 of file StaticSector.h.
|
private |
stores the attached 4-hit filters
Definition at line 301 of file StaticSector.h.
|
private |
map from FullSecID to CompactSecID
Definition at line 287 of file StaticSector.h.
|
private |
stores innerSecIDs for the attached 2-hit filters
Definition at line 290 of file StaticSector.h.
stores innerSecIDs for the attached 3-hit filters
Definition at line 292 of file StaticSector.h.
stores innerSecIDs for the attached 4-hit filters
Definition at line 294 of file StaticSector.h.
|
private |
stores its own secID
Definition at line 284 of file StaticSector.h.