ATLAS Offline Software
Simulation
ISF
ISF_FastCaloSim
ISF_FastCaloSimParametrization
tools
Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimParametrization/tools/CaloSampling.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "CaloGeoHelpers/CaloSampling.h"
6
7
namespace
{
8
9
const
char
*
const
sample_names[] = {
10
#define CALOSAMPLING(name, inbarrel, inendcap) #name ,
11
#include "CaloGeoHelpers/CaloSampling.def"
12
#undef CALOSAMPLING
13
};
14
15
}
// anonymous namespace
16
17
unsigned
int
CaloSampling::getNumberOfSamplings
()
18
{
19
return
(
unsigned
int
)
Unknown
;
20
}
21
22
23
std::string
CaloSampling::getSamplingName
(
CaloSample
theSample)
24
{
25
return
sample_names[theSample];
26
}
27
28
29
std::string
CaloSampling::getSamplingName
(
unsigned
int
theSample)
30
{
31
if
(theSample >=
getNumberOfSamplings
())
32
return
""
;
33
return
sample_names[theSample];
34
}
GetLCDefs::Unknown
@ Unknown
Definition:
GetLCDefs.h:21
CaloSampling::CaloSample
CaloSample
Definition:
Calorimeter/CaloGeoHelpers/CaloGeoHelpers/CaloSampling.h:22
CaloSampling::getNumberOfSamplings
static constexpr unsigned int getNumberOfSamplings()
Get number of available samplings.
Definition:
Calorimeter/CaloGeoHelpers/CaloGeoHelpers/CaloSampling.h:30
CaloSampling::getSamplingName
static std::string getSamplingName(CaloSample theSample)
Returns a string (name) for each CaloSampling.
Definition:
Calorimeter/CaloGeoHelpers/Root/CaloSampling.cxx:18
Generated on Fri Jul 5 2024 21:12:03 for ATLAS Offline Software by
1.8.18