5#include "CaloGeoHelpers/CaloSampling.h"
9const char*
const sample_names[] = {
10#define CALOSAMPLING(name, inbarrel, inendcap) #name ,
11#include "CaloGeoHelpers/CaloSampling.def"
20 return sample_names[theSample];
28 return sample_names[theSample];
34 for (
int samp = 0; samp !=
static_cast<int>(
Unknown); ++samp) {
35 if (sample_names[samp] == name) {
static CaloSample getSampling(const std::string &name)
Return the sampling code for a given name.
static std::string getSamplingName(CaloSample theSample)
Returns a string (name) for each CaloSampling.
static constexpr unsigned int getNumberOfSamplings()
Get number of available samplings.