ATLAS Offline Software
|
#include <RegSelSiLUT.h>
Public Types | |
enum | DET { UNDEF, PIXEL, SCT, TRT, FTK, MM, sTGC } |
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 |
Static Public Member Functions | |
template<typename T > | |
static void | removeDuplicates (std::vector< T > &vec) |
useful for removing duplicates if required ... More... | |
Protected Member Functions | |
virtual void | construct () |
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.
enum RegSelSiLUT::DET |
|
inline |
Definition at line 49 of file RegSelSiLUT.h.
RegSelSiLUT::RegSelSiLUT | ( | DET | id | ) |
Definition at line 71 of file RegSelSiLUT.cxx.
RegSelSiLUT::RegSelSiLUT | ( | const RegSelSiLUT & | r | ) |
Definition at line 73 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.
|
protectedvirtual |
void RegSelSiLUT::disableLayer | ( | int | id, |
unsigned | layer | ||
) |
Definition at line 232 of file RegSelSiLUT.cxx.
void RegSelSiLUT::disableModuleList | ( | const std::vector< IdentifierHash > & | hashlist | ) |
Definition at line 770 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 733 of file RegSelSiLUT.cxx.
void RegSelSiLUT::disableRobs | ( | ) |
Definition at line 722 of file RegSelSiLUT.cxx.
void RegSelSiLUT::disableSubDetector | ( | int | id | ) |
Definition at line 222 of file RegSelSiLUT.cxx.
Definition at line 214 of file RegSelSiLUT.h.
void RegSelSiLUT::enableLayer | ( | int | id, |
unsigned | layer | ||
) |
Definition at line 237 of file RegSelSiLUT.cxx.
void RegSelSiLUT::enableModuleList | ( | const std::vector< IdentifierHash > & | hashlist | ) |
Definition at line 787 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 750 of file RegSelSiLUT.cxx.
void RegSelSiLUT::enableRobs | ( | ) |
Definition at line 712 of file RegSelSiLUT.cxx.
void RegSelSiLUT::enableSubDetector | ( | int | id | ) |
Definition at line 227 of file RegSelSiLUT.cxx.
void RegSelSiLUT::getDisabledHashList | ( | const RegSelRoI & | roi, |
unsigned | layer, | ||
std::vector< IdentifierHash > & | hashlist | ||
) | const |
Definition at line 1086 of file RegSelSiLUT.cxx.
void RegSelSiLUT::getDisabledLayers | ( | const RegSelRoI & | roi, |
int | subdetector, | ||
std::vector< int > & | layers | ||
) | const |
Definition at line 1117 of file RegSelSiLUT.cxx.
|
virtual |
Definition at line 809 of file RegSelSiLUT.cxx.
|
virtual |
Definition at line 839 of file RegSelSiLUT.cxx.
|
virtual |
Definition at line 969 of file RegSelSiLUT.cxx.
|
virtual |
Definition at line 866 of file RegSelSiLUT.cxx.
|
virtual |
Definition at line 890 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 266 of file RegSelSiLUT.cxx.
|
inlineinherited |
Definition at line 54 of file RegSelName.h.
|
virtual |
Definition at line 559 of file RegSelSiLUT.cxx.
|
virtual |
Definition at line 592 of file RegSelSiLUT.cxx.
|
virtual |
Definition at line 938 of file RegSelSiLUT.cxx.
|
virtual |
NB: using a vector and removing duplicates is faster than using a set
Definition at line 623 of file RegSelSiLUT.cxx.
|
virtual |
Definition at line 674 of file RegSelSiLUT.cxx.
|
virtual |
Definition at line 1003 of file RegSelSiLUT.cxx.
|
virtual |
Definition at line 914 of file RegSelSiLUT.cxx.
|
virtual |
Definition at line 1056 of file RegSelSiLUT.cxx.
bool RegSelSiLUT::getRoIData | ( | const RegSelRoI & | r, |
std::vector< const RegSelModule * > & | modules | ||
) | const |
Definition at line 244 of file RegSelSiLUT.cxx.
bool RegSelSiLUT::getRoIData | ( | const RegSelRoI & | r, |
std::vector< const RegSelModule * > & | modules, | ||
double | x, | ||
double | y | ||
) | const |
Definition at line 409 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 286 of file RegSelSiLUT.cxx.
bool RegSelSiLUT::getRoIData | ( | const RegSelRoI & | r, |
unsigned | subdetector, | ||
unsigned | layer, | ||
std::vector< const RegSelModule * > & | modules | ||
) | const |
Definition at line 321 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 485 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 47 of file RegSelSiLUT.cxx.
|
inline |
Definition at line 84 of file RegSelSiLUT.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 110 of file RegSelSiLUT.cxx.
void RegSelSiLUT::initialiseDisabledModules | ( | ) |
Definition at line 203 of file RegSelSiLUT.cxx.
void RegSelSiLUT::initialiseFullScan | ( | ) |
Definition at line 175 of file RegSelSiLUT.cxx.
const RegSelModule * RegSelSiLUT::Module | ( | const IdentifierHash & | h | ) | const |
Definition at line 213 of file RegSelSiLUT.cxx.
bool RegSelSiLUT::read | ( | const std::string & | s | ) |
bool RegSelSiLUT::read | ( | std::istream & | s | ) |
Definition at line 1175 of file RegSelSiLUT.cxx.
|
inlinestatic |
void RegSelSiLUT::reset | ( | ) |
|
overridevirtual |
rob methods
rob methods
Implements IRegSelLUT.
Definition at line 56 of file RegSelSiLUT.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 63 of file RegSelSiLUT.cxx.
void RegSelSiLUT::write | ( | const std::string & | filename | ) | const |
void RegSelSiLUT::write | ( | std::ostream & | s = std::cout | ) | const |
|
protected |
Definition at line 243 of file RegSelSiLUT.h.
|
protected |
Definition at line 244 of file RegSelSiLUT.h.
|
protected |
Definition at line 238 of file RegSelSiLUT.h.
|
protected |
Definition at line 233 of file RegSelSiLUT.h.
|
protected |
Definition at line 246 of file RegSelSiLUT.h.
|
protected |
Definition at line 240 of file RegSelSiLUT.h.
|
protected |
Definition at line 236 of file RegSelSiLUT.h.
|
protectedinherited |
Definition at line 60 of file RegSelName.h.
|
protected |
Definition at line 235 of file RegSelSiLUT.h.