ATLAS Offline Software
DetectorDescription
AtlasDetDescr
src
AtlasRegionHelper.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// AtlasRegionName.cxx, (c) ATLAS Detector software
8
9
#include "
AtlasDetDescr/AtlasRegionHelper.h
"
10
11
namespace
AtlasDetDescr
{
12
13
const
char
*
AtlasRegionHelper::getName
(
int
region ) {
14
return
getName
(
AtlasDetDescr::AtlasRegion
( region ) );
15
}
16
17
const
char
*
AtlasRegionHelper::getName
(
const
AtlasDetDescr::AtlasRegion
region ) {
18
19
if
( region ==
AtlasDetDescr::fAtlasID
)
return
"AtlasID"
;
20
else
if
( region ==
AtlasDetDescr::fAtlasForward
)
return
"AtlasForward"
;
21
else
if
( region ==
AtlasDetDescr::fAtlasCalo
)
return
"AtlasCalo"
;
22
else
if
( region ==
AtlasDetDescr::fAtlasMS
)
return
"AtlasMS"
;
23
else
if
( region ==
AtlasDetDescr::fAtlasCavern
)
return
"AtlasCavern"
;
24
else
return
"UndefinedAtlasRegion"
;
25
26
}
27
28
}
// end of namespace
29
AtlasDetDescr::fAtlasForward
@ fAtlasForward
Definition:
AtlasRegion.h:34
AtlasDetDescr::AtlasRegion
AtlasRegion
Definition:
AtlasRegion.h:27
AtlasDetDescr::AtlasRegionHelper::getName
static const char * getName(int region)
Definition:
AtlasRegionHelper.cxx:13
AtlasDetDescr::fAtlasMS
@ fAtlasMS
Definition:
AtlasRegion.h:36
AtlasRegionHelper.h
AtlasDetDescr
Definition:
AtlasDetDescrDict.h:14
AtlasDetDescr::fAtlasCavern
@ fAtlasCavern
Definition:
AtlasRegion.h:37
AtlasDetDescr::fAtlasID
@ fAtlasID
Definition:
AtlasRegion.h:33
AtlasDetDescr::fAtlasCalo
@ fAtlasCalo
Definition:
AtlasRegion.h:35
Generated on Sun Dec 22 2024 21:07:16 for ATLAS Offline Software by
1.8.18