![]() |
ATLAS Offline Software
|
#include <RegSelSiLUT.h>
Public Types | |
| enum | DET { UNDEF, PIXEL, SCT, TRT, FTK, MM, sTGC, RPC } |
Public Member Functions | |
| RegSelSiLUT () | |
| RegSelSiLUT (DET id) | |
| RegSelSiLUT (const RegSelSiLUT &r) | |
| RegSelSiLUT (const std::string &s) | |
| virtual | ~RegSelSiLUT () override |
| virtual void | HashIDList (const IRoiDescriptor &roi, std::vector< IdentifierHash > &idlist) const override |
| implementation of the IRegSelUT interface hash id methods More... | |
| virtual void | HashIDList (long layer, const IRoiDescriptor &roi, std::vector< IdentifierHash > &idlist) const override |
| HashIDList interface declaration. return list of non-repeated IdentifierHash. More... | |
| virtual void | ROBIDList (const IRoiDescriptor &roi, std::vector< uint32_t > &roblist) const override |
| rob methods More... | |
| 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. More... | |
| void | addModule (RegSelModule &module) |
| void | addModules (const std::vector< RegSelModule > &m) |
| const std::vector< RegSelModule > & | getModules () const |
| bool | getRoIData (const RegSelRoI &r, std::vector< const RegSelModule * > &modules) const |
| bool | getRoIData (const RegSelRoI &r, unsigned layer, std::vector< const RegSelModule * > &modules) const |
| here if layer is of the format 1XYY where X=0 (barrel), X=2 (endcap) and YY is the layer within the sub-system then the specific layer in the sub-system is used. More... | |
| bool | getRoIData (const RegSelRoI &r, unsigned subdetector, unsigned layer, std::vector< const RegSelModule * > &modules) const |
| bool | getRoIData (const RegSelRoI &r, std::vector< const RegSelModule * > &modules, double x, double y) const |
| bool | getRoIData (const RegSelRoI &r, unsigned subdetector, unsigned layer, std::vector< const RegSelModule * > &modules, double x, double y) const |
| DET | ID () const |
| void | reset () |
| void | initialise () |
| void | initialiseDisabledModules () |
| void | initialiseFullScan () |
| void | write (std::ostream &s=std::cout) const |
| void | write (const std::string &filename) const |
| bool | read (std::istream &s) |
| bool | read (const std::string &s) |
| const std::vector< RegSelSubDetector > & | getSubDet () const |
| const RegSelModule * | Module (const IdentifierHash &h) const |
| void | getModules (unsigned layer, std::vector< const RegSelModule * > &modules) const |
| here if layer is of the format 1XYY where X=0 (barrel), X=2 (endcap) and YY is the layer within the sub-system then the specific layer in the sub-system is used. More... | |
| virtual void | getHashList (const RegSelRoI &roi, std::vector< IdentifierHash > &hashlist) const |
| virtual void | getHashList (const RegSelRoI &roi, std::vector< IdentifierHash > &hashlist, double x, double y) const |
| virtual void | getHashList (const RegSelRoI &roi, unsigned layer, std::vector< IdentifierHash > &hashlist) const |
| virtual void | getHashList (std::vector< IdentifierHash > &hashlist) const |
| virtual void | getHashList (unsigned layer, std::vector< IdentifierHash > &hashlist) const |
| virtual void | getRobList (const RegSelRoI &roi, unsigned layer, std::vector< uint32_t > &roblist, bool removeduplicates=true) const |
| virtual void | getRobList (const RegSelRoI &roi, std::vector< uint32_t > &roblist, bool removeduplicates=true) const |
| virtual void | getRobList (const RegSelRoI &roi, std::vector< uint32_t > &roblist, double x, double y) const |
| virtual void | getRobList (std::vector< uint32_t > &roblist) const |
| virtual void | getRobList (unsigned layer, std::vector< uint32_t > &roblist) const |
| virtual void | getRobHashList (std::vector< uint32_t > &roblist, std::vector< IdentifierHash > &hashlist) const |
| virtual void | getRobHashList (const RegSelRoI &roi, std::vector< uint32_t > &roblist, std::vector< IdentifierHash > &hashlist) const |
| virtual void | getRobHashList (const RegSelRoI &roi, unsigned layer, std::vector< uint32_t > &roblist, std::vector< IdentifierHash > &hashlist) const |
| void | getDisabledHashList (const RegSelRoI &roi, unsigned layer, std::vector< IdentifierHash > &hashlist) const |
| void | getDisabledLayers (const RegSelRoI &roi, int subdetector, std::vector< int > &layers) const |
| void | enableRobs () |
| void | disableRobs () |
| void | enableModules () |
| void | disableModules () |
| void | enableRobList (const std::vector< uint32_t > &roblist) |
| void | disableRobList (const std::vector< uint32_t > &roblist) |
| void | enableModuleList (const std::vector< IdentifierHash > &hashlist) |
| void | disableModuleList (const std::vector< IdentifierHash > &hashlist) |
| void | disableSubDetector (int id) |
| void | enableSubDetector (int id) |
| void | disableLayer (int id, unsigned layer) |
| void | enableLayer (int id, unsigned layer) |
| void | drawlayers (std::vector< const ZRObject * > &c) const |
| const std::string & | getName () const |
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 | construct () |
| virtual void | HashIDList_internal (const IRoiDescriptor &roi, std::vector< IdentifierHash > &idlist) const |
| horrible internal interface methods More... | |
| 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 More... | |
| 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 | |
| static void | cleanup (std::vector< IdentifierHash > &idvec) |
| annoying cleanup function specifically for the RPC, but we have to add it here since we have abstracted everything to use identical code - perhaps consider creating the RPC instance as a derived class ? More... | |
| template<typename T > | |
| static void | removeDuplicates (std::vector< T > &vec) |
| useful for removing duplicates if required ... More... | |
Protected Attributes | |
| DET | m_ID |
| std::vector< RegSelSubDetector > | m_SubDet |
| std::vector< RegSelModule > | m_modules |
| std::vector< RegSelModule * > | m_disabled |
| std::map< const IdentifierHash, const RegSelModule * > | m_map |
| std::vector< IdentifierHash > | m_allHashes |
| std::vector< uint32_t > | m_allROBids |
| std::map< int, int > | m_idmap |
| std::string | m_name |
Definition at line 41 of file RegSelSiLUT.h.
|
protectedinherited |
Definition at line 85 of file IRegSelLUT.h.
|
protectedinherited |
Definition at line 103 of file IRegSelLUT.h.
| enum RegSelSiLUT::DET |
|
inline |
Definition at line 49 of file RegSelSiLUT.h.
| RegSelSiLUT::RegSelSiLUT | ( | DET | id | ) |
Definition at line 100 of file RegSelSiLUT.cxx.
| RegSelSiLUT::RegSelSiLUT | ( | const RegSelSiLUT & | r | ) |
Definition at line 102 of file RegSelSiLUT.cxx.
| RegSelSiLUT::RegSelSiLUT | ( | const std::string & | s | ) |
|
inlineoverridevirtual |
Definition at line 54 of file RegSelSiLUT.h.
|
inline |
Definition at line 71 of file RegSelSiLUT.h.
|
inline |
Definition at line 72 of file RegSelSiLUT.h.
|
inlinestaticprotected |
annoying cleanup function specifically for the RPC, but we have to add it here since we have abstracted everything to use identical code - perhaps consider creating the RPC instance as a derived class ?
Definition at line 246 of file RegSelSiLUT.h.
|
protectedvirtual |
| void RegSelSiLUT::disableLayer | ( | int | id, |
| unsigned | layer | ||
| ) |
Definition at line 261 of file RegSelSiLUT.cxx.
| void RegSelSiLUT::disableModuleList | ( | const std::vector< IdentifierHash > & | hashlist | ) |
Definition at line 799 of file RegSelSiLUT.cxx.
|
inline |
Definition at line 195 of file RegSelSiLUT.h.
| void RegSelSiLUT::disableRobList | ( | const std::vector< uint32_t > & | roblist | ) |
Definition at line 762 of file RegSelSiLUT.cxx.
| void RegSelSiLUT::disableRobs | ( | ) |
Definition at line 751 of file RegSelSiLUT.cxx.
| void RegSelSiLUT::disableSubDetector | ( | int | id | ) |
Definition at line 251 of file RegSelSiLUT.cxx.
Definition at line 214 of file RegSelSiLUT.h.
| void RegSelSiLUT::enableLayer | ( | int | id, |
| unsigned | layer | ||
| ) |
Definition at line 266 of file RegSelSiLUT.cxx.
| void RegSelSiLUT::enableModuleList | ( | const std::vector< IdentifierHash > & | hashlist | ) |
Definition at line 816 of file RegSelSiLUT.cxx.
|
inline |
Definition at line 194 of file RegSelSiLUT.h.
| void RegSelSiLUT::enableRobList | ( | const std::vector< uint32_t > & | roblist | ) |
Definition at line 779 of file RegSelSiLUT.cxx.
| void RegSelSiLUT::enableRobs | ( | ) |
Definition at line 741 of file RegSelSiLUT.cxx.
| void RegSelSiLUT::enableSubDetector | ( | int | id | ) |
Definition at line 256 of file RegSelSiLUT.cxx.
| void RegSelSiLUT::getDisabledHashList | ( | const RegSelRoI & | roi, |
| unsigned | layer, | ||
| std::vector< IdentifierHash > & | hashlist | ||
| ) | const |
Definition at line 1115 of file RegSelSiLUT.cxx.
| void RegSelSiLUT::getDisabledLayers | ( | const RegSelRoI & | roi, |
| int | subdetector, | ||
| std::vector< int > & | layers | ||
| ) | const |
Definition at line 1146 of file RegSelSiLUT.cxx.
|
virtual |
Definition at line 838 of file RegSelSiLUT.cxx.
|
virtual |
Definition at line 868 of file RegSelSiLUT.cxx.
|
virtual |
Definition at line 998 of file RegSelSiLUT.cxx.
|
virtual |
Definition at line 895 of file RegSelSiLUT.cxx.
|
virtual |
Definition at line 919 of file RegSelSiLUT.cxx.
|
inline |
Definition at line 75 of file RegSelSiLUT.h.
| void RegSelSiLUT::getModules | ( | unsigned | layer, |
| std::vector< const RegSelModule * > & | modules | ||
| ) | const |
here if layer is of the format 1XYY where X=0 (barrel), X=2 (endcap) and YY is the layer within the sub-system then the specific layer in the sub-system is used.
If it is of the form YY, then simple layer number is used NB: ALL the layer IdentifierHash and uint32_t retreival methods use this format
determine whether an layer in a specific subdetector is requested
Definition at line 295 of file RegSelSiLUT.cxx.
|
inlineinherited |
Definition at line 54 of file RegSelName.h.
|
virtual |
Definition at line 588 of file RegSelSiLUT.cxx.
|
virtual |
Definition at line 621 of file RegSelSiLUT.cxx.
|
virtual |
Definition at line 967 of file RegSelSiLUT.cxx.
|
virtual |
NB: using a vector and removing duplicates is faster than using a set
Definition at line 652 of file RegSelSiLUT.cxx.
|
virtual |
Definition at line 703 of file RegSelSiLUT.cxx.
|
virtual |
Definition at line 1032 of file RegSelSiLUT.cxx.
|
virtual |
Definition at line 943 of file RegSelSiLUT.cxx.
|
virtual |
Definition at line 1085 of file RegSelSiLUT.cxx.
| bool RegSelSiLUT::getRoIData | ( | const RegSelRoI & | r, |
| std::vector< const RegSelModule * > & | modules | ||
| ) | const |
Definition at line 273 of file RegSelSiLUT.cxx.
| bool RegSelSiLUT::getRoIData | ( | const RegSelRoI & | r, |
| std::vector< const RegSelModule * > & | modules, | ||
| double | x, | ||
| double | y | ||
| ) | const |
Definition at line 438 of file RegSelSiLUT.cxx.
| bool RegSelSiLUT::getRoIData | ( | const RegSelRoI & | roi, |
| unsigned | layer, | ||
| std::vector< const RegSelModule * > & | modules | ||
| ) | const |
here if layer is of the format 1XYY where X=0 (barrel), X=2 (endcap) and YY is the layer within the sub-system then the specific layer in the sub-system is used.
If it is of the form YY, then simple layer number is used
determine whether an layer in a specific subdetector is requested
Definition at line 315 of file RegSelSiLUT.cxx.
| bool RegSelSiLUT::getRoIData | ( | const RegSelRoI & | r, |
| unsigned | subdetector, | ||
| unsigned | layer, | ||
| std::vector< const RegSelModule * > & | modules | ||
| ) | const |
Definition at line 350 of file RegSelSiLUT.cxx.
| bool RegSelSiLUT::getRoIData | ( | const RegSelRoI & | r, |
| unsigned | subdetector, | ||
| unsigned | layer, | ||
| std::vector< const RegSelModule * > & | modules, | ||
| double | x, | ||
| double | y | ||
| ) | const |
Definition at line 514 of file RegSelSiLUT.cxx.
|
inline |
Definition at line 108 of file RegSelSiLUT.h.
|
overridevirtual |
implementation of the IRegSelUT interface
hash id methods
interface implementation for the IRegSelLUT methods
hash id methods
Implements IRegSelLUT.
Definition at line 39 of file RegSelSiLUT.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 45 of file RegSelSiLUT.cxx.
|
protectedvirtual |
|
protectedvirtual |
|
inline |
Definition at line 84 of file RegSelSiLUT.h.
|
inlineprotectedinherited |
Definition at line 88 of file IRegSelLUT.h.
|
inlineprotectedinherited |
Definition at line 106 of file IRegSelLUT.h.
| void RegSelSiLUT::initialise | ( | ) |
uncomment this if you want to print out the list of all the module ids assigned to each rob RegSelROBList roblist( m_modules );
Definition at line 139 of file RegSelSiLUT.cxx.
| void RegSelSiLUT::initialiseDisabledModules | ( | ) |
Definition at line 232 of file RegSelSiLUT.cxx.
| void RegSelSiLUT::initialiseFullScan | ( | ) |
Definition at line 204 of file RegSelSiLUT.cxx.
| const RegSelModule * RegSelSiLUT::Module | ( | const IdentifierHash & | h | ) | const |
Definition at line 242 of file RegSelSiLUT.cxx.
| bool RegSelSiLUT::read | ( | const std::string & | s | ) |
| bool RegSelSiLUT::read | ( | std::istream & | s | ) |
Definition at line 1204 of file RegSelSiLUT.cxx.
|
inlinestaticprotectedinherited |
| void RegSelSiLUT::reset | ( | ) |
|
overridevirtual |
|
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 58 of file RegSelSiLUT.cxx.
|
protectedvirtual |
|
protectedvirtual |
| void RegSelSiLUT::write | ( | const std::string & | filename | ) | const |
| void RegSelSiLUT::write | ( | std::ostream & | s = std::cout | ) | const |
|
protected |
Definition at line 234 of file RegSelSiLUT.h.
|
protected |
Definition at line 235 of file RegSelSiLUT.h.
|
protected |
Definition at line 229 of file RegSelSiLUT.h.
|
protected |
Definition at line 224 of file RegSelSiLUT.h.
|
protected |
Definition at line 237 of file RegSelSiLUT.h.
|
protected |
Definition at line 231 of file RegSelSiLUT.h.
|
protected |
Definition at line 227 of file RegSelSiLUT.h.
|
protectedinherited |
Definition at line 60 of file RegSelName.h.
|
protected |
Definition at line 226 of file RegSelSiLUT.h.
1.8.18