ATLAS Offline Software
AtlasRegion.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // AtlasRegion.h, (c) ATLAS Detector software
8 
9 #ifndef ATLASDETDESCR_ATLASREGION_H
10 #define ATLASDETDESCR_ATLASREGION_H 1
11 
12 #include <assert.h>
13 
14 // use these macros to check a given AtlasRegion for its validity
15 #define validAtlasRegion(region) ( (region<AtlasDetDescr::fNumAtlasRegions) && (region>=AtlasDetDescr::fFirstAtlasRegion) )
16 #define assertAtlasRegion(region) ( assert(validAtlasRegion(region)) )
17 
18 namespace AtlasDetDescr {
19 
27  enum AtlasRegion {
28  // Unset
30  // first Geometry element in enum, used in e.g. loops
32  // ATLAS Detector setup: geometrical ones
33  fAtlasID = 1,
36  fAtlasMS = 4,
38  // number of defined GeoIDs
40  };
41 
42 } // end of namespace
43 
44 #endif // ATLASDETDESCR_ATLASREGION
AtlasDetDescr::fNumAtlasRegions
@ fNumAtlasRegions
Definition: AtlasRegion.h:39
AtlasDetDescr::fAtlasForward
@ fAtlasForward
Definition: AtlasRegion.h:34
AtlasDetDescr::AtlasRegion
AtlasRegion
Definition: AtlasRegion.h:27
AtlasDetDescr::fUndefinedAtlasRegion
@ fUndefinedAtlasRegion
Definition: AtlasRegion.h:29
AtlasDetDescr::fAtlasMS
@ fAtlasMS
Definition: AtlasRegion.h:36
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
AtlasDetDescr::fFirstAtlasRegion
@ fFirstAtlasRegion
Definition: AtlasRegion.h:31