ATLAS Offline Software
Static Public Member Functions | Private Member Functions | List of all members
AtlasDetDescr::AtlasRegionHelper Class Reference

#include <AtlasRegionHelper.h>

Collaboration diagram for AtlasDetDescr::AtlasRegionHelper:

Static Public Member Functions

static const char * getName (int region)
 
static const char * getName (AtlasDetDescr::AtlasRegion region)
 

Private Member Functions

 AtlasRegionHelper ()
 

Detailed Description

A simple helper class (functional) to translate AtlasDetDesc::AtlasRegion enums into a string description.

Author
Elmar.Ritsch -at- cern.ch

Definition at line 24 of file AtlasRegionHelper.h.

Constructor & Destructor Documentation

◆ AtlasRegionHelper()

AtlasDetDescr::AtlasRegionHelper::AtlasRegionHelper ( )
private

Member Function Documentation

◆ getName() [1/2]

const char * AtlasDetDescr::AtlasRegionHelper::getName ( AtlasDetDescr::AtlasRegion  region)
static

Definition at line 17 of file AtlasRegionHelper.cxx.

17  {
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  }

◆ getName() [2/2]

const char * AtlasDetDescr::AtlasRegionHelper::getName ( int  region)
static

Definition at line 13 of file AtlasRegionHelper.cxx.

13  {
14  return getName( AtlasDetDescr::AtlasRegion( region ) );
15  }

The documentation for this class was generated from the following files:
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
AtlasDetDescr::fAtlasCavern
@ fAtlasCavern
Definition: AtlasRegion.h:37
AtlasDetDescr::fAtlasID
@ fAtlasID
Definition: AtlasRegion.h:33
AtlasDetDescr::fAtlasCalo
@ fAtlasCalo
Definition: AtlasRegion.h:35