![]() |
ATLAS Offline Software
|
#include <RegSelectorMapElement.h>
Public Member Functions | |
| RegSelectorMapElement () | |
| int | layerDiskPosition () const |
| int | layerDiskNumber () const |
| double | etaMin (const IdentifierHash hashId) const |
| double | etaMax (IdentifierHash hashId) const |
| double | phiMin (IdentifierHash hashId) const |
| double | phiMax (IdentifierHash hashId) const |
| const std::vector< IdentifierHash > & | hashId () const |
| double | etaminElem () const |
| double | etamaxElem () const |
| double | phiminElem () const |
| double | phimaxElem () const |
| double | phiminElem () |
| these phi*Elem() functions are some of the worst functions I have ever come accross: if the value it has is larger(smaller) than some threshold, it sets the value to some new value, which is also larger (and smaller) than the same threshold, so that every subsequent time it is called, it will be setting the value to this too-large (or too-small) value what it sthe point of it ? | |
| double | phimaxElem () |
| void | findMaxMinElem (void) |
| void | additem (const IdentifierHash hashId, const double etaMin, const double etaMax, const double phiMin, const double phiMax, const int layerDiskNumber, const int layerDiskPosition, const uint32_t robId) |
| void | selection (double etaminIn, double etamaxIn, double phiminIn, double phimaxIn, std::set< IdentifierHash > &outset) const |
| void | selectionRobIdUint (double etaminIn, double etamaxIn, double phiminIn, double phimaxIn, std::set< uint32_t > &outset) const |
Private Member Functions | |
| void | insertElementInVector (double etaminIn, double etamaxIn, double phiminIn, double phimaxIn, IdentifierHash hashIdIn, uint32_t robIdIn) |
| void | insertNumberElement (int numberIn) |
| void | insertPositionElement (int position) |
| void | findHash (double etaminIn, double etamaxIn, double phiminIn, double phimaxIn, std::set< IdentifierHash > &outset) const |
| void | findRobId (double etaminIn, double etamaxIn, double phiminIn, double phimaxIn, std::set< uint32_t > &outset) const |
Private Attributes | |
| int | m_position |
| int | m_number |
| std::vector< double > | m_etamin |
| std::vector< double > | m_etamax |
| std::vector< double > | m_phimin |
| std::vector< double > | m_phimax |
| std::vector< IdentifierHash > | m_hashId |
| std::vector< uint32_t > | m_robId |
| double | m_etaminValue |
| double | m_etamaxValue |
| double | m_phiminValue |
| double | m_phimaxValue |
Definition at line 17 of file RegSelectorMapElement.h.
| RegSelectorMapElement::RegSelectorMapElement | ( | ) |
Definition at line 11 of file RegSelectorMapElement.cxx.
| void RegSelectorMapElement::additem | ( | const IdentifierHash | hashId, |
| const double | etaMin, | ||
| const double | etaMax, | ||
| const double | phiMin, | ||
| const double | phiMax, | ||
| const int | layerDiskNumber, | ||
| const int | layerDiskPosition, | ||
| const uint32_t | robId ) |
Definition at line 191 of file RegSelectorMapElement.cxx.
| double RegSelectorMapElement::etaMax | ( | IdentifierHash | hashId | ) | const |
Definition at line 106 of file RegSelectorMapElement.cxx.
| double RegSelectorMapElement::etamaxElem | ( | ) | const |
Definition at line 122 of file RegSelectorMapElement.cxx.
| double RegSelectorMapElement::etaMin | ( | const IdentifierHash | hashId | ) | const |
Definition at line 102 of file RegSelectorMapElement.cxx.
| double RegSelectorMapElement::etaminElem | ( | ) | const |
Definition at line 118 of file RegSelectorMapElement.cxx.
|
private |
Definition at line 58 of file RegSelectorMapElement.cxx.
| void RegSelectorMapElement::findMaxMinElem | ( | void | ) |
Definition at line 175 of file RegSelectorMapElement.cxx.
|
private |
Definition at line 80 of file RegSelectorMapElement.cxx.
| const std::vector< IdentifierHash > & RegSelectorMapElement::hashId | ( | ) | const |
Definition at line 28 of file RegSelectorMapElement.cxx.
|
private |
Definition at line 32 of file RegSelectorMapElement.cxx.
|
private |
Definition at line 50 of file RegSelectorMapElement.cxx.
|
private |
Definition at line 54 of file RegSelectorMapElement.cxx.
| int RegSelectorMapElement::layerDiskNumber | ( | void | ) | const |
Definition at line 24 of file RegSelectorMapElement.cxx.
| int RegSelectorMapElement::layerDiskPosition | ( | void | ) | const |
Definition at line 20 of file RegSelectorMapElement.cxx.
| double RegSelectorMapElement::phiMax | ( | IdentifierHash | hashId | ) | const |
Definition at line 114 of file RegSelectorMapElement.cxx.
| double RegSelectorMapElement::phimaxElem | ( | ) |
Definition at line 152 of file RegSelectorMapElement.cxx.
| double RegSelectorMapElement::phimaxElem | ( | ) | const |
Definition at line 167 of file RegSelectorMapElement.cxx.
| double RegSelectorMapElement::phiMin | ( | IdentifierHash | hashId | ) | const |
Definition at line 110 of file RegSelectorMapElement.cxx.
| double RegSelectorMapElement::phiminElem | ( | ) |
these phi*Elem() functions are some of the worst functions I have ever come accross: if the value it has is larger(smaller) than some threshold, it sets the value to some new value, which is also larger (and smaller) than the same threshold, so that every subsequent time it is called, it will be setting the value to this too-large (or too-small) value what it sthe point of it ?
Why does it need to change this value at all ? If we want to find the value we should check all the elements in one place, and then set the value once and for all, and not mess about setting it to already out-of-range values in the accessor.
So what this means is that when calling this function to to get the limit for the map, it might actually change that said limit, and give you some hardcoded limit instead. Why is the limit set to be the value that it is ? working out how to replace this function will be a complete pain, The sooner we get rid of this awful class the better
Definition at line 144 of file RegSelectorMapElement.cxx.
| double RegSelectorMapElement::phiminElem | ( | ) | const |
Definition at line 160 of file RegSelectorMapElement.cxx.
| void RegSelectorMapElement::selection | ( | double | etaminIn, |
| double | etamaxIn, | ||
| double | phiminIn, | ||
| double | phimaxIn, | ||
| std::set< IdentifierHash > & | outset ) const |
Definition at line 201 of file RegSelectorMapElement.cxx.
| void RegSelectorMapElement::selectionRobIdUint | ( | double | etaminIn, |
| double | etamaxIn, | ||
| double | phiminIn, | ||
| double | phimaxIn, | ||
| std::set< uint32_t > & | outset ) const |
Definition at line 215 of file RegSelectorMapElement.cxx.
|
private |
Definition at line 61 of file RegSelectorMapElement.h.
|
private |
Definition at line 65 of file RegSelectorMapElement.h.
|
private |
Definition at line 61 of file RegSelectorMapElement.h.
|
private |
Definition at line 65 of file RegSelectorMapElement.h.
|
private |
Definition at line 63 of file RegSelectorMapElement.h.
|
private |
Definition at line 60 of file RegSelectorMapElement.h.
|
private |
Definition at line 62 of file RegSelectorMapElement.h.
|
private |
Definition at line 66 of file RegSelectorMapElement.h.
|
private |
Definition at line 62 of file RegSelectorMapElement.h.
|
private |
Definition at line 66 of file RegSelectorMapElement.h.
|
private |
Definition at line 59 of file RegSelectorMapElement.h.
|
private |
Definition at line 64 of file RegSelectorMapElement.h.