![]() |
ATLAS Offline Software
|
Identifier for TRT detector elements in the conditions code. More...
#include <ExpandedIdentifier.h>
Public Types | |
| enum | Level { DETECTOR =0 , BARRELEC =1 , LAYERWHEEL =2 , MODULE =3 , STRAWLAYER =4 , STRAW =5 } |
| enum to specify the granularity level More... | |
Public Member Functions | |
| ExpandedIdentifier ()=default | |
| default constructor | |
| ExpandedIdentifier (int bec, int layerorwheel, int module, int strawlayer, int straw, int l=STRAW) | |
| normal constructor | |
| const size_t & | index (size_t l) const |
| returns const index at given level. | |
| size_t & | index (size_t l) |
| returns index at given level | |
| size_t | level () const |
| returns level | |
| const std::string | name (size_t l) const |
| returns level name | |
| void | print (std::ostream &os=std::cout) const |
| print the object | |
| void | write (std::ostream &os) const |
| write the object to file | |
| void | read (std::istream &is) |
| read the object from file | |
| size_t | becidtoindex (int becid) const |
| returns subdetector index given the barrel_ec number | |
| int | becindextoid (size_t becindex) const |
| returns barrel_ec number given the subdetector index | |
| int | id (size_t l) const |
| returns TRT_ID index at given level | |
Private Attributes | |
| size_t | m_index [5] {} |
| Index within levels higher than DETECTOR. | |
| size_t | m_level {STRAW} |
| Granularity level. | |
Identifier for TRT detector elements in the conditions code.
Note that this identifier is for use by clients. Inside the code elements are numbered by indices that always start at 0.
Definition at line 29 of file InnerDetector/InDetConditions/TRT_ConditionsData/TRT_ConditionsData/ExpandedIdentifier.h.
enum to specify the granularity level
| Enumerator | |
|---|---|
| DETECTOR | |
| BARRELEC | |
| LAYERWHEEL | |
| MODULE | |
| STRAWLAYER | |
| STRAW | |
Definition at line 37 of file InnerDetector/InDetConditions/TRT_ConditionsData/TRT_ConditionsData/ExpandedIdentifier.h.
|
default |
default constructor
|
inline |
normal constructor
Definition at line 43 of file InnerDetector/InDetConditions/TRT_ConditionsData/TRT_ConditionsData/ExpandedIdentifier.h.
|
inline |
returns subdetector index given the barrel_ec number
Definition at line 79 of file InnerDetector/InDetConditions/TRT_ConditionsData/TRT_ConditionsData/ExpandedIdentifier.h.
|
inline |
returns barrel_ec number given the subdetector index
Definition at line 82 of file InnerDetector/InDetConditions/TRT_ConditionsData/TRT_ConditionsData/ExpandedIdentifier.h.
|
inline |
returns TRT_ID index at given level
Definition at line 85 of file InnerDetector/InDetConditions/TRT_ConditionsData/TRT_ConditionsData/ExpandedIdentifier.h.
|
inline |
returns index at given level
Definition at line 58 of file InnerDetector/InDetConditions/TRT_ConditionsData/TRT_ConditionsData/ExpandedIdentifier.h.
|
inline |
returns const index at given level.
Note that internally there is no indexing of the DETECTOR level
Definition at line 55 of file InnerDetector/InDetConditions/TRT_ConditionsData/TRT_ConditionsData/ExpandedIdentifier.h.
|
inline |
returns level
Definition at line 61 of file InnerDetector/InDetConditions/TRT_ConditionsData/TRT_ConditionsData/ExpandedIdentifier.h.
|
inline |
returns level name
Definition at line 64 of file InnerDetector/InDetConditions/TRT_ConditionsData/TRT_ConditionsData/ExpandedIdentifier.h.
| void ExpandedIdentifier::print | ( | std::ostream & | os = std::cout | ) | const |
print the object
Definition at line 11 of file InnerDetector/InDetConditions/TRT_ConditionsData/src/ExpandedIdentifier.cxx.
| void ExpandedIdentifier::read | ( | std::istream & | is | ) |
read the object from file
Definition at line 30 of file InnerDetector/InDetConditions/TRT_ConditionsData/src/ExpandedIdentifier.cxx.
| void ExpandedIdentifier::write | ( | std::ostream & | os | ) | const |
write the object to file
Definition at line 16 of file InnerDetector/InDetConditions/TRT_ConditionsData/src/ExpandedIdentifier.cxx.
|
private |
Index within levels higher than DETECTOR.
Definition at line 32 of file InnerDetector/InDetConditions/TRT_ConditionsData/TRT_ConditionsData/ExpandedIdentifier.h.
|
private |
Granularity level.
Definition at line 33 of file InnerDetector/InDetConditions/TRT_ConditionsData/TRT_ConditionsData/ExpandedIdentifier.h.