|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef TRTConditionsData_TRTCondIdentifier_h
6 #define TRTConditionsData_TRTCondIdentifier_h
67 const std::string
name(
size_t l)
const {
68 static const std::string
names[] = {
"detector",
"barrelec",
"layer_or_wheel",
"module",
"straw_layer",
"straw"} ;
73 void print(std::ostream&
os = std::cout)
const ;
76 void write(std::ostream&
os)
const ;
79 void read(std::istream& is) ;
82 size_t becidtoindex(
int becid)
const {
return becid<0 ? becid+2 : becid + 1 ; }
85 int becindextoid(
size_t becindex)
const {
return becindex<2 ?
int(becindex)-2 : becindex-1; }
int id(size_t l) const
returns TRT_ID index at given level
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 m_level
Granularity level.
void print(std::ostream &os=std::cout) const
print the object
ExpandedIdentifier()
default constructor
size_t level() const
returns level
std::istream & operator>>(std::istream &is, TRTCond::ExpandedIdentifier &id)
Level
enum to specify the granularity level
size_t & index(size_t l)
returns index at given level
size_t becidtoindex(int becid) const
returns subdetector index given the barrel_ec number
size_t m_index[5]
Index within levels higher than DETECTOR.
void read(std::istream &is)
read the object from file
int becindextoid(size_t becindex) const
returns barrel_ec number given the subdetector index
const std::string name(size_t l) const
returns level name
void write(std::ostream &os) const
write the object to file
Identifier for TRT detector elements in the conditions code.
std::ostream & operator<<(std::ostream &os, const TRTCond::ExpandedIdentifier &id)