 |
ATLAS Offline Software
|
Go to the documentation of this file.
7 #ifndef CALOGEOHELPERS_CALOSAMPLING_H
8 #define CALOGEOHELPERS_CALOSAMPLING_H
23 #define CALOSAMPLING(NAME, ISBARREL, ISENDCAP) NAME,
24 #include "CaloGeoHelpers/CaloSampling.def"
39 #if __cplusplus >= 201100
46 #if __cplusplus >= 201100
66 #if __cplusplus >= 201100
73 #define
CALOSAMPLING(NAME, ISBARREL, ISENDCAP) (((
unsigned)ISBARREL)<<NAME) |
74 #
include "CaloGeoHelpers/CaloSampling.def"
79 #if __cplusplus >= 201100
86 #define
CALOSAMPLING(NAME, ISBARREL, ISENDCAP) (((
unsigned)ISENDCAP)<<NAME) |
87 #
include "CaloGeoHelpers/CaloSampling.def"
static std::string getSamplingName(CaloSample theSample)
Returns a string (name) for each CaloSampling.
provides Calorimeter Sampling enum
static constexpr unsigned int barrelPattern()
Get the bit-pattern for barrel samplings.
static unsigned int endcapPattern()
Get the bit-pattern for endcap samplings.
static unsigned int getSamplingPattern(const CaloSample s)
Get a unsigned with one bit set
static constexpr unsigned int endcapPattern()
Get the bit-pattern for endcap samplings.
static unsigned int getNumberOfSamplings()
Get number of available samplings.
static std::string getSamplingName(unsigned int theSample)
Returns a string (name) for each CaloSampling.
static unsigned int barrelPattern()
Get the bit-pattern for barrel samplings.