ATLAS Offline Software
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 
11 namespace 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 
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