![]() |
ATLAS Offline Software
|
#include <RegSelectorHashMap.h>
Public Member Functions | |
| virtual void | HashIDList (const IRoiDescriptor &roi, std::vector< IdentifierHash > &idlist) const override |
| implementation of the IRegSelUT interface | |
| virtual void | HashIDList (long layer, const IRoiDescriptor &roi, std::vector< IdentifierHash > &idlist) const override |
| HashIDList interface declaration. return list of non-repeated IdentifierHash. | |
| virtual void | ROBIDList (const IRoiDescriptor &roi, std::vector< uint32_t > &roblist) const override |
| rob methods | |
| virtual void | ROBIDList (long layer, const IRoiDescriptor &roi, std::vector< uint32_t > &roblist) const override |
| ROBIDList interface declaration. This interface can be used by the ID subdetectors. A list of non-repeated ROBIDs (uint_32_t) is returned by a reference. | |
| virtual | ~RegSelectorHashMap () override=default |
| double | etaminValue () const |
| rest of the class implementation | |
| double | etamaxValue () const |
| double | phiminValue () const |
| double | phimaxValue () const |
| const std::vector< double > & | etaMinOut (void) const |
| const std::vector< double > & | etaMaxOut (void) const |
| const std::vector< double > & | phiMinOut (void) const |
| const std::vector< double > & | phiMaxOut (void) const |
| void | mountDataStruct (void) |
| const std::vector< IdentifierHash > & | hashIdOut (void) const |
| const std::vector< std::vector< uint32_t > > & | robIdOut (void) const |
| const std::vector< int > & | sampleOut (void) const |
| const std::vector< int > & | layerOut (void) const |
| void | regionSelectorRobIdUint (double etaminIn, double etamaxIn, double phiminIn, double phimaxIn, std::vector< uint32_t > &outRobIDList) const |
| void | regionSelectorRobIdUint (int sampling, double etaminIn, double etamaxIn, double phiminIn, double phimaxIn, std::vector< uint32_t > &outRobIDList) const |
| void | regionSelector (double etaminIn, double etamaxIn, double phiminIn, double phimaxIn, std::vector< IdentifierHash > &outList) const |
| void | regionSelector (int sampling, double etaminIn, double etamaxIn, double phiminIn, double phimaxIn, std::vector< IdentifierHash > &outList) const |
| void | initvar (void) |
| StatusCode | read (const char *filename) |
| void | addLut (const RegionSelectorLUT *detLut) |
| void | summaryDataFile (std::list< RegSelectorMapElement > &dataList) |
| void | verifyInputs (double &etaminIn, double &etamaxIn, double &phiminIn, double &phimaxIn) const |
| void | verifyROBIDOutput (double etaminIn, double etamaxIn, double phiminIn, double phimaxIn, std::vector< uint32_t > &outputIdlist) const |
| void | verifyROBIDOutput (int sampling, double etaminIn, double etamaxIn, double phiminIn, double phimaxIn, std::vector< uint32_t > &outputIdlist) const |
| void | verifyOutput (double etaminIn, double etamaxIn, double phiminIn, double phimaxIn, std::vector< IdentifierHash > *outputIdlist) const |
| void | verifyOutput (int sampling, double etaminIn, double etamaxIn, double phiminIn, double phimaxIn, std::vector< IdentifierHash > *outputIdlist) const |
| void | getEtaPhi (IdentifierHash hashId, double *etaMin, double *etaMax, double *phiMin, double *phiMax) const |
| void | DisableMissingROBs (const std::vector< uint32_t > &vec) |
Protected Types | |
| template<typename C, typename T> | |
| using | handler = void (C::*)(const IRoiDescriptor& , std::vector<T>& ) const |
| template<typename C, typename T> | |
| using | handler_layer = void (C::*)(long layer, const IRoiDescriptor& , std::vector<T>& ) const |
Protected Member Functions | |
| virtual void | HashIDList_internal (const IRoiDescriptor &roi, std::vector< IdentifierHash > &idlist) const |
| internal implementation of the IRegSelUT interface | |
| virtual void | HashIDList_internal (long layer, const IRoiDescriptor &roi, std::vector< IdentifierHash > &idlist) const |
| virtual void | ROBIDList_internal (const IRoiDescriptor &roi, std::vector< uint32_t > &roblist) const |
| rob methods | |
| virtual void | ROBIDList_internal (long layer, const IRoiDescriptor &roi, std::vector< uint32_t > &roblist) const |
| template<typename C, typename T> | |
| void | IDList (const IRoiDescriptor &roi, std::vector< T > &idlist, handler< C, T > lister) const |
| template<typename C, typename T> | |
| void | IDList_layer (long layer, const IRoiDescriptor &roi, std::vector< T > &idlist, handler_layer< C, T > lister) const |
Static Protected Member Functions | |
| template<typename T> | |
| static void | removeDuplicates (std::vector< T > &vec) |
| useful for removing duplicates if required ... | |
Private Member Functions | |
| void | populateMatrix (int iPage, IdentifierHash value) |
| void | populateMatrixRobId (int iPage, uint32_t value) |
| void | initMatrix (void) |
| void | writeLine (const int &layer, const IdentifierHash &hashId, const std::vector< uint32_t > &robId, const double &emin, const double &emax, const double &pmin, const double &pmax, const int &samp) |
| int | MyRound (double pdValue) |
| void | regionSelectorIN (const int &sampling, const double &etaminIn, const double &etamaxIn, const double &phiminIn, const double &phimaxIn, std::vector< IdentifierHash > *outListIH) const |
| void | regionSelectorINROB (const int &sampling, const double &etaminIn, const double &etamaxIn, const double &phiminIn, const double &phimaxIn, std::vector< uint32_t > *outList) const |
| void | phiCondition (const std::vector< IdentifierHash > &identifier, int i, double etaminIn, double etamaxIn, double phiminIn, double phimaxIn, double etamin, double etamax, std::set< IdentifierHash > *outset) const |
| void | phiConditionRobId (const std::vector< std::vector< uint32_t > > &identifier, int i, double etaminIn, double etamaxIn, double phiminIn, double phimaxIn, double etamin, double etamax, std::set< uint32_t > *outset) const |
| void | findIdentifier (std::vector< IdentifierHash > &auxsetIH, const int iXBeg, const int iXEnd, const int iYBeg, const int iYEnd, const int iPage) const |
| void | findIdentifierROB (std::vector< uint32_t > &auxset, const int iXBeg, const int iXEnd, const int iYBeg, const int iYEnd, const int iPage) const |
Private Attributes | |
| double | m_stepMinPhi {} |
| double | m_stepMinEta {} |
| std::list< RegSelectorMapElement > | m_dataList |
| std::vector< int > | m_sample |
| std::vector< int > | m_layer |
| std::vector< IdentifierHash > | m_hashId |
| std::vector< double > | m_etamin |
| std::vector< double > | m_etamax |
| std::vector< double > | m_phimin |
| std::vector< double > | m_phimax |
| std::vector< std::vector< uint32_t > > | m_robId |
| double | m_etaminDet {} |
| double | m_etamaxDet {} |
| double | m_phiminDet {} |
| double | m_phimaxDet {} |
| int | m_NumSamples {} |
| int | m_iColumns {} |
| int | m_iLines {} |
| bool | m_readFromFile {} |
| std::vector< std::vector< uint32_t > > | m_robIDMap |
| std::vector< IdentifierHash > | m_hashIDMap |
Definition at line 40 of file RegSelectorHashMap.h.
|
protectedinherited |
Definition at line 85 of file IRegSelLUT.h.
|
protectedinherited |
Definition at line 103 of file IRegSelLUT.h.
|
overridevirtualdefault |
| void RegSelectorHashMap::addLut | ( | const RegionSelectorLUT * | detLut | ) |
Definition at line 611 of file RegSelectorHashMap.cxx.
| void RegSelectorHashMap::DisableMissingROBs | ( | const std::vector< uint32_t > & | vec | ) |
Definition at line 1029 of file RegSelectorHashMap.cxx.
| const std::vector< double > & RegSelectorHashMap::etaMaxOut | ( | void | ) | const |
Definition at line 106 of file RegSelectorHashMap.cxx.
| double RegSelectorHashMap::etamaxValue | ( | ) | const |
Definition at line 74 of file RegSelectorHashMap.cxx.
| const std::vector< double > & RegSelectorHashMap::etaMinOut | ( | void | ) | const |
Definition at line 102 of file RegSelectorHashMap.cxx.
| double RegSelectorHashMap::etaminValue | ( | ) | const |
rest of the class implementation
Definition at line 70 of file RegSelectorHashMap.cxx.
|
private |
Definition at line 971 of file RegSelectorHashMap.cxx.
|
private |
Definition at line 993 of file RegSelectorHashMap.cxx.
| void RegSelectorHashMap::getEtaPhi | ( | IdentifierHash | hashId, |
| double * | etaMin, | ||
| double * | etaMax, | ||
| double * | phiMin, | ||
| double * | phiMax ) const |
|
overridevirtual |
implementation of the IRegSelUT interface
implementation of the IRegSelUT interface
hash id methods
hash id methods
Implements IRegSelLUT.
Definition at line 20 of file RegSelectorHashMap.cxx.
|
overridevirtual |
HashIDList interface declaration. return list of non-repeated IdentifierHash.
| long | layer, long int to decide which layer within the detector. |
| IRoiDescriptor | roi, the IRoiDescriptor for the roi, all enabled elements in the roi are found. |
Implements IRegSelLUT.
Definition at line 24 of file RegSelectorHashMap.cxx.
|
protectedvirtual |
internal implementation of the IRegSelUT interface
implementation of the IRegSelUT interface
hash id methods
Definition at line 44 of file RegSelectorHashMap.cxx.
|
protectedvirtual |
Definition at line 49 of file RegSelectorHashMap.cxx.
| const std::vector< IdentifierHash > & RegSelectorHashMap::hashIdOut | ( | void | ) | const |
Definition at line 86 of file RegSelectorHashMap.cxx.
|
inlineprotectedinherited |
Definition at line 88 of file IRegSelLUT.h.
|
inlineprotectedinherited |
Definition at line 106 of file IRegSelLUT.h.
|
private |
Definition at line 263 of file RegSelectorHashMap.cxx.
| void RegSelectorHashMap::initvar | ( | void | ) |
Definition at line 546 of file RegSelectorHashMap.cxx.
| const std::vector< int > & RegSelectorHashMap::layerOut | ( | void | ) | const |
Definition at line 98 of file RegSelectorHashMap.cxx.
| void RegSelectorHashMap::mountDataStruct | ( | void | ) |
Definition at line 118 of file RegSelectorHashMap.cxx.
|
private |
Definition at line 291 of file RegSelectorHashMap.cxx.
|
private |
Definition at line 462 of file RegSelectorHashMap.cxx.
|
private |
Definition at line 496 of file RegSelectorHashMap.cxx.
| const std::vector< double > & RegSelectorHashMap::phiMaxOut | ( | void | ) | const |
Definition at line 114 of file RegSelectorHashMap.cxx.
| double RegSelectorHashMap::phimaxValue | ( | ) | const |
Definition at line 82 of file RegSelectorHashMap.cxx.
| const std::vector< double > & RegSelectorHashMap::phiMinOut | ( | void | ) | const |
Definition at line 110 of file RegSelectorHashMap.cxx.
| double RegSelectorHashMap::phiminValue | ( | ) | const |
Definition at line 78 of file RegSelectorHashMap.cxx.
|
private |
Definition at line 227 of file RegSelectorHashMap.cxx.
|
private |
Definition at line 251 of file RegSelectorHashMap.cxx.
| StatusCode RegSelectorHashMap::read | ( | const char * | filename | ) |
Definition at line 554 of file RegSelectorHashMap.cxx.
| void RegSelectorHashMap::regionSelector | ( | double | etaminIn, |
| double | etamaxIn, | ||
| double | phiminIn, | ||
| double | phimaxIn, | ||
| std::vector< IdentifierHash > & | outList ) const |
Definition at line 530 of file RegSelectorHashMap.cxx.
| void RegSelectorHashMap::regionSelector | ( | int | sampling, |
| double | etaminIn, | ||
| double | etamaxIn, | ||
| double | phiminIn, | ||
| double | phimaxIn, | ||
| std::vector< IdentifierHash > & | outList ) const |
Definition at line 538 of file RegSelectorHashMap.cxx.
|
private |
why are we making this
need to check whether spans the pi boundary - using iYBeg > iYEnd isn't good enough since it it is very nearly 2pi, then iYBeg and iYEnd will be equal
wrap phi
why reduce the RoI size?
This is WRONG!! this forces all rois to increase as the radius increases - oh dear
Definition at line 305 of file RegSelectorHashMap.cxx.
|
private |
why do we reduce the size of the RoI here? if we must mess with it, shouldn't we make it larger?
need to check whether spans the pi boundary - using (iYBeg > iYEnd) isn't good enough since it it is very nearly 2pi, then iYBeg and iYEnd will be equal.
wrap phi
why reduce the size of the RoI?
This is WRONG!! this forces all rois to increase as the radius increases - oh dear
Definition at line 382 of file RegSelectorHashMap.cxx.
| void RegSelectorHashMap::regionSelectorRobIdUint | ( | double | etaminIn, |
| double | etamaxIn, | ||
| double | phiminIn, | ||
| double | phimaxIn, | ||
| std::vector< uint32_t > & | outRobIDList ) const |
Definition at line 215 of file RegSelectorHashMap.cxx.
| void RegSelectorHashMap::regionSelectorRobIdUint | ( | int | sampling, |
| double | etaminIn, | ||
| double | etamaxIn, | ||
| double | phiminIn, | ||
| double | phimaxIn, | ||
| std::vector< uint32_t > & | outRobIDList ) const |
Definition at line 221 of file RegSelectorHashMap.cxx.
|
inlinestaticprotectedinherited |
useful for removing duplicates if required ...
Definition at line 78 of file IRegSelLUT.h.
|
overridevirtual |
rob methods
Rob identifier methods.
Implements IRegSelLUT.
Definition at line 30 of file RegSelectorHashMap.cxx.
|
overridevirtual |
ROBIDList interface declaration. This interface can be used by the ID subdetectors. A list of non-repeated ROBIDs (uint_32_t) is returned by a reference.
| long | layer, long int to decide which layer within the detector. |
| IRoiDescriptor | the IRoiDescriptor for the roi, all enabled elements in the roi are found. |
Implements IRegSelLUT.
Definition at line 34 of file RegSelectorHashMap.cxx.
|
protectedvirtual |
rob methods
Definition at line 56 of file RegSelectorHashMap.cxx.
|
protectedvirtual |
Definition at line 61 of file RegSelectorHashMap.cxx.
| const std::vector< std::vector< uint32_t > > & RegSelectorHashMap::robIdOut | ( | void | ) | const |
Definition at line 90 of file RegSelectorHashMap.cxx.
| const std::vector< int > & RegSelectorHashMap::sampleOut | ( | void | ) | const |
Definition at line 94 of file RegSelectorHashMap.cxx.
| void RegSelectorHashMap::summaryDataFile | ( | std::list< RegSelectorMapElement > & | dataList | ) |
Definition at line 675 of file RegSelectorHashMap.cxx.
| void RegSelectorHashMap::verifyInputs | ( | double & | etaminIn, |
| double & | etamaxIn, | ||
| double & | phiminIn, | ||
| double & | phimaxIn ) const |
Definition at line 690 of file RegSelectorHashMap.cxx.
| void RegSelectorHashMap::verifyOutput | ( | double | etaminIn, |
| double | etamaxIn, | ||
| double | phiminIn, | ||
| double | phimaxIn, | ||
| std::vector< IdentifierHash > * | outputIdlist ) const |
Definition at line 850 of file RegSelectorHashMap.cxx.
| void RegSelectorHashMap::verifyOutput | ( | int | sampling, |
| double | etaminIn, | ||
| double | etamaxIn, | ||
| double | phiminIn, | ||
| double | phimaxIn, | ||
| std::vector< IdentifierHash > * | outputIdlist ) const |
Definition at line 909 of file RegSelectorHashMap.cxx.
| void RegSelectorHashMap::verifyROBIDOutput | ( | double | etaminIn, |
| double | etamaxIn, | ||
| double | phiminIn, | ||
| double | phimaxIn, | ||
| std::vector< uint32_t > & | outputIdlist ) const |
Definition at line 719 of file RegSelectorHashMap.cxx.
| void RegSelectorHashMap::verifyROBIDOutput | ( | int | sampling, |
| double | etaminIn, | ||
| double | etamaxIn, | ||
| double | phiminIn, | ||
| double | phimaxIn, | ||
| std::vector< uint32_t > & | outputIdlist ) const |
Definition at line 783 of file RegSelectorHashMap.cxx.
|
private |
Definition at line 275 of file RegSelectorHashMap.cxx.
|
private |
Definition at line 131 of file RegSelectorHashMap.h.
|
private |
Definition at line 134 of file RegSelectorHashMap.h.
|
private |
Definition at line 137 of file RegSelectorHashMap.h.
|
private |
Definition at line 134 of file RegSelectorHashMap.h.
|
private |
Definition at line 137 of file RegSelectorHashMap.h.
|
private |
Definition at line 133 of file RegSelectorHashMap.h.
|
private |
Definition at line 143 of file RegSelectorHashMap.h.
|
private |
Definition at line 140 of file RegSelectorHashMap.h.
|
private |
Definition at line 140 of file RegSelectorHashMap.h.
|
private |
Definition at line 132 of file RegSelectorHashMap.h.
|
private |
Definition at line 139 of file RegSelectorHashMap.h.
|
private |
Definition at line 135 of file RegSelectorHashMap.h.
|
private |
Definition at line 138 of file RegSelectorHashMap.h.
|
private |
Definition at line 135 of file RegSelectorHashMap.h.
|
private |
Definition at line 138 of file RegSelectorHashMap.h.
|
private |
Definition at line 141 of file RegSelectorHashMap.h.
|
private |
Definition at line 136 of file RegSelectorHashMap.h.
|
private |
Definition at line 142 of file RegSelectorHashMap.h.
|
private |
Definition at line 132 of file RegSelectorHashMap.h.
|
private |
Definition at line 129 of file RegSelectorHashMap.h.
|
private |
Definition at line 129 of file RegSelectorHashMap.h.