ATLAS Offline Software
Loading...
Searching...
No Matches
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
10
11namespace AtlasDetDescr {
12
13 const char * AtlasRegionHelper::getName( int region ) {
14 return getName( AtlasDetDescr::AtlasRegion( region ) );
15 }
16
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
static const char * getName(int region)
AtlasRegion
A simple enum of ATLAS regions and sub-detectors.
Definition AtlasRegion.h:21