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 constructor More... | |
ExpandedIdentifier (int bec, int layerorwheel, int module, int strawlayer, int straw, int l=STRAW) | |
normal constructor More... | |
const size_t & | index (size_t l) const |
returns const index at given level. More... | |
size_t & | index (size_t l) |
returns index at given level More... | |
size_t | level () const |
returns level More... | |
const std::string | name (size_t l) const |
returns level name More... | |
void | print (std::ostream &os=std::cout) const |
print the object More... | |
void | write (std::ostream &os) const |
write the object to file More... | |
void | read (std::istream &is) |
read the object from file More... | |
size_t | becidtoindex (int becid) const |
returns subdetector index given the barrel_ec number More... | |
int | becindextoid (size_t becindex) const |
returns barrel_ec number given the subdetector index More... | |
int | id (size_t l) const |
returns TRT_ID index at given level More... | |
Private Attributes | |
size_t | m_index [5] |
Index within levels higher than DETECTOR. More... | |
size_t | m_level |
Granularity level. More... | |
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.
|
inline |
|
inline |
normal constructor
Definition at line 44 of file InnerDetector/InDetConditions/TRT_ConditionsData/TRT_ConditionsData/ExpandedIdentifier.h.
|
inline |
returns subdetector index given the barrel_ec number
Definition at line 82 of file InnerDetector/InDetConditions/TRT_ConditionsData/TRT_ConditionsData/ExpandedIdentifier.h.
|
inline |
returns barrel_ec number given the subdetector index
Definition at line 85 of file InnerDetector/InDetConditions/TRT_ConditionsData/TRT_ConditionsData/ExpandedIdentifier.h.
|
inline |
returns TRT_ID index at given level
Definition at line 88 of file InnerDetector/InDetConditions/TRT_ConditionsData/TRT_ConditionsData/ExpandedIdentifier.h.
|
inline |
returns index at given level
Definition at line 61 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 58 of file InnerDetector/InDetConditions/TRT_ConditionsData/TRT_ConditionsData/ExpandedIdentifier.h.
|
inline |
returns level
Definition at line 64 of file InnerDetector/InDetConditions/TRT_ConditionsData/TRT_ConditionsData/ExpandedIdentifier.h.
|
inline |
returns level name
Definition at line 67 of file InnerDetector/InDetConditions/TRT_ConditionsData/TRT_ConditionsData/ExpandedIdentifier.h.
void ExpandedIdentifier::print | ( | std::ostream & | os = std::cout | ) | const |
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.