Loading [MathJax]/extensions/tex2jax.js
 |
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"
32 return static_cast<unsigned int>(
Unknown);
77 #define
CALOSAMPLING(NAME, ISBARREL, ISENDCAP) (((
unsigned)ISBARREL)<<NAME) |
78 #
include "CaloGeoHelpers/CaloSampling.def"
86 #define
CALOSAMPLING(NAME, ISBARREL, ISENDCAP) (((
unsigned)ISENDCAP)<<NAME) |
87 #
include "CaloGeoHelpers/CaloSampling.def"
static CaloSample getSampling(const std::string &name)
Return the sampling code for a given name.
provides Calorimeter Sampling enum
static constexpr unsigned int barrelPattern()
Get the bit-pattern for barrel samplings.
static unsigned int getSamplingPattern(const CaloSample s)
Get a unsigned with one bit set
#define CALOSAMPLING(NAME, ISBARREL, ISENDCAP)
static constexpr unsigned int endcapPattern()
Get the bit-pattern for endcap samplings.
static constexpr unsigned int getNumberOfSamplings()
Get number of available samplings.
static std::string getSamplingName(CaloSample theSample)
Returns a string (name) for each CaloSampling.