ATLAS Offline Software
Public Types | Public Member Functions | Static Public Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
CaloSamplingHelper Class Reference

algorithmic methods of the legacy CaloSampling.h class used by the legacy CaloCluster object More...

#include <CaloSamplingHelper.h>

Inheritance diagram for CaloSamplingHelper:
Collaboration diagram for CaloSamplingHelper:

Public Types

enum  CaloSample
 
enum  CaloSample
 

Public Member Functions

 CaloSamplingHelper ()=default
 
 ~CaloSamplingHelper ()=default
 
 CaloSamplingHelper (const CaloSamplingHelper &rhs)=delete
 
CaloSamplingHelperoperator= (const CaloSamplingHelper &rhs)=delete
 

Static Public Member Functions

static CaloSample getSampling (const CaloCell &c)
 Retrieves the sampling indicator for a cell. More...
 
static unsigned int getSamplingBit (const CaloSample &rSample)
 Return a unique bit set for a given sampling. More...
 
static unsigned int getSamplingBit (const CaloCell &rCell)
 Return a unique bit set for a given sampling. More...
 
static bool isEMSampling (const CaloSample &rSample)
 Get sampling characteristics. More...
 
static bool isHADSampling (const CaloSample &rSample)
 
static bool isBarrelSampling (const CaloSample &rSample)
 
static bool isEndCapSampling (const CaloSample &rSample)
 
static bool isLArSampling (const CaloSample &rSample)
 
static bool isTileSampling (const CaloSample &rSample)
 
static const std::string & getSamplingName (const CaloSampling::CaloSample theSample)
 Returns a string (name) for each CaloSampling. More...
 
static CaloSampling::CaloSample getSamplingId (const std::string &samplingName)
 Returns the CaloSampling::CaloSample enumerator value. More...
 
static bool getSamplings (const std::vector< CaloCell_ID::SUBCALO > &theCalos, std::vector< CaloSampling::CaloSample > &theSamplings)
 Returns a list of samplings enumerators for a list of sub-calos. More...
 
static bool getSamplings (const CaloCell_ID::SUBCALO &theCalo, std::vector< CaloSampling::CaloSample > &theSamplings)
 Returns a list of samplings enumerators for a list of sub-calos This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
static bool getCalos (const std::vector< CaloSampling::CaloSample > &theSamplings, std::vector< CaloCell_ID::SUBCALO > &theCalos)
 Returns a list of sub-calos for a list of samplings. More...
 
static constexpr unsigned int getNumberOfSamplings ()
 Get number of available samplings. More...
 
static unsigned int getNumberOfSamplings ()
 Get number of available samplings. More...
 
static unsigned int getSamplingPattern (const CaloSample s)
 Get a unsigned with one bit set
More...
 
static unsigned int getSamplingPattern (const CaloSample s)
 Get a unsigned with one bit set
More...
 
static constexpr unsigned int barrelPattern ()
 Get the bit-pattern for barrel samplings. More...
 
static unsigned int barrelPattern ()
 Get the bit-pattern for barrel samplings. More...
 
static constexpr unsigned int endcapPattern ()
 Get the bit-pattern for endcap samplings. More...
 
static unsigned int endcapPattern ()
 Get the bit-pattern for endcap samplings. More...
 
static std::string getSamplingName (unsigned int theSample)
 Returns a string (name) for each CaloSampling. More...
 
static CaloSample getSampling (const std::string &name)
 Return the sampling code for a given name. More...
 

Static Private Member Functions

static bool matchPattern (const CaloSample &rSample, const unsigned int &mask)
 

Static Private Attributes

static const unsigned int m_EMMask = 0x000000ff
 
static const unsigned int m_HADMask = 0x00ffff00
 
static const unsigned int m_BarrelMask = 0x001ff00f
 
static const unsigned int m_EndCapMask = 0x00e00ff0
 
static const unsigned int m_LArMask = 0x00e00fff
 
static const unsigned int m_TileMask = 0x001ff000
 
static const std::map< std::string, CaloSampling::CaloSamplem_lookUp
 
static const std::string m_unknown ="Unknown"
 

Detailed Description

algorithmic methods of the legacy CaloSampling.h class used by the legacy CaloCluster object

Definition at line 19 of file CaloEvent/CaloEvent/CaloSamplingHelper.h.

Member Enumeration Documentation

◆ CaloSample [1/2]

enum CaloSampling::CaloSample
inherited

Definition at line 22 of file Calorimeter/CaloGeoHelpers/CaloGeoHelpers/CaloSampling.h.

22  {
23 #define CALOSAMPLING(NAME, ISBARREL, ISENDCAP) NAME,
24 #include "CaloGeoHelpers/CaloSampling.def"
25 #undef CALOSAMPLING
26  };

◆ CaloSample [2/2]

enum CaloSampling::CaloSample
inherited

Definition at line 22 of file Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimParametrization/tools/CaloGeoHelpers/CaloSampling.h.

22  {
23 #define CALOSAMPLING(NAME, ISBARREL, ISENDCAP) NAME,
24 #include "CaloGeoHelpers/CaloSampling.def"
25 #undef CALOSAMPLING
26  };

Constructor & Destructor Documentation

◆ CaloSamplingHelper() [1/2]

CaloSamplingHelper::CaloSamplingHelper ( )
default

◆ ~CaloSamplingHelper()

CaloSamplingHelper::~CaloSamplingHelper ( )
default

◆ CaloSamplingHelper() [2/2]

CaloSamplingHelper::CaloSamplingHelper ( const CaloSamplingHelper rhs)
delete

Member Function Documentation

◆ barrelPattern() [1/2]

static unsigned int CaloSampling::barrelPattern ( )
staticinherited

Get the bit-pattern for barrel samplings.

◆ barrelPattern() [2/2]

unsigned int CaloSampling::barrelPattern ( )
inlinestaticconstexprinherited

Get the bit-pattern for barrel samplings.

Definition at line 75 of file Calorimeter/CaloGeoHelpers/CaloGeoHelpers/CaloSampling.h.

75  {
76  return (//EM Barrel
77 #define CALOSAMPLING(NAME, ISBARREL, ISENDCAP) (((unsigned)ISBARREL)<<NAME) |
78 #include "CaloGeoHelpers/CaloSampling.def"
79 #undef CALOSAMPLING
80  0 );
81 }

◆ endcapPattern() [1/2]

unsigned int CaloSampling::endcapPattern ( )
inlinestaticconstexprinherited

Get the bit-pattern for endcap samplings.

Definition at line 84 of file Calorimeter/CaloGeoHelpers/CaloGeoHelpers/CaloSampling.h.

84  {
85  return (//EMEC:
86 #define CALOSAMPLING(NAME, ISBARREL, ISENDCAP) (((unsigned)ISENDCAP)<<NAME) |
87 #include "CaloGeoHelpers/CaloSampling.def"
88 #undef CALOSAMPLING
89  0 );
90 }

◆ endcapPattern() [2/2]

static unsigned int CaloSampling::endcapPattern ( )
staticinherited

Get the bit-pattern for endcap samplings.

◆ getCalos()

bool CaloSamplingHelper::getCalos ( const std::vector< CaloSampling::CaloSample > &  theSamplings,
std::vector< CaloCell_ID::SUBCALO > &  theCalos 
)
static

Returns a list of sub-calos for a list of samplings.

Parameters
[in]theSamplingsvector of sampling enumerators
[out]theCalosvector of calo enumerators

Definition at line 127 of file CaloUtils/src/CaloSamplingHelper.cxx.

127  {
128  const size_t oldSize = theCalos.size();
129  for (auto fSample : theSamplings) {
131  switch (fSample) {
132  case PreSamplerB:
133  case EMB1:
134  case EMB2:
135  case EMB3:
136  case PreSamplerE:
137  case EME1:
138  case EME2:
139  case EME3:
140  theCaloId = CaloCell_ID::LAREM;
141  break;
142  case HEC0:
143  case HEC1:
144  case HEC2:
145  case HEC3:
146  theCaloId = CaloCell_ID::LARHEC;
147  break;
148  case FCAL0:
149  case FCAL1:
150  case FCAL2:
151  theCaloId = CaloCell_ID::LARFCAL;
152  break;
153  case TileBar0:
154  case TileBar1:
155  case TileBar2:
156  case TileGap1:
157  case TileGap2:
158  case TileGap3:
159  case TileExt0:
160  case TileExt1:
161  case TileExt2:
162  theCaloId = CaloCell_ID::TILE;
163  break;
164  case MINIFCAL0:
165  case MINIFCAL1:
166  case MINIFCAL2:
167  case MINIFCAL3:
168  theCaloId = CaloCell_ID::LARMINIFCAL;
169  break;
170  default:
171  break;
172  }
173  // check if not there yet (actually a std::set would be better than a
174  // vector)
175  if (std::find(theCalos.begin(), theCalos.end(), theCaloId) == theCalos.end()) {
176  theCalos.push_back(theCaloId);
177  }
178  }
179  return theCalos.size() > oldSize;
180 }

◆ getNumberOfSamplings() [1/2]

static unsigned int CaloSampling::getNumberOfSamplings ( )
staticinherited

Get number of available samplings.

◆ getNumberOfSamplings() [2/2]

unsigned int CaloSampling::getNumberOfSamplings ( )
inlinestaticconstexprinherited

Get number of available samplings.

Definition at line 30 of file Calorimeter/CaloGeoHelpers/CaloGeoHelpers/CaloSampling.h.

31  {
32  return static_cast<unsigned int>(Unknown);
33  }

◆ getSampling() [1/2]

CaloSamplingHelper::CaloSample CaloSamplingHelper::getSampling ( const CaloCell c)
static

Retrieves the sampling indicator for a cell.

Parameters
creference to a non-modifiable CaloCell

Returns CaloSampling::Unknown if sampling cannot be found.

Definition at line 39 of file CaloEvent/src/CaloSamplingHelper.cxx.

39  {
40 
41  const CaloDetDescrElement * theCaloDDE= cell.caloDDE() ;
42  if (theCaloDDE!=nullptr) {
43  return (CaloSamplingHelper::CaloSample) theCaloDDE->getSampling();
44  }
45  else{
46  return Unknown;
47 
48  }
49 }

◆ getSampling() [2/2]

CaloSampling::CaloSample CaloSampling::getSampling ( const std::string &  name)
staticinherited

Return the sampling code for a given name.

Parameters
[in]nameThe name to translate.

Returns Unknown if the name is not known.

Definition at line 32 of file Calorimeter/CaloGeoHelpers/Root/CaloSampling.cxx.

33 {
34  for (int samp = 0; samp != static_cast<int>(Unknown); ++samp) {
35  if (sample_names[samp] == name) {
36  return static_cast<CaloSample> (samp);
37  }
38  }
39  return Unknown;
40 }

◆ getSamplingBit() [1/2]

unsigned int CaloSamplingHelper::getSamplingBit ( const CaloCell rCell)
static

Return a unique bit set for a given sampling.

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters
rCellconst reference to a CaloCell object

Returns 0 if cell has CaloSampling::Unknown indicator.

Definition at line 51 of file CaloEvent/src/CaloSamplingHelper.cxx.

52 {
53  return getSamplingBit(getSampling(rCell));
54 }

◆ getSamplingBit() [2/2]

static unsigned int CaloSamplingHelper::getSamplingBit ( const CaloSample rSample)
inlinestatic

Return a unique bit set for a given sampling.

Parameters
rSamplereference to a non-modifiable sampling indicator

Returns 0 for CaloSampling::Unknown .

Definition at line 48 of file CaloEvent/CaloEvent/CaloSamplingHelper.h.

48  {
49  return CaloSampling::getSamplingPattern(rSample);
50  }

◆ getSamplingId()

CaloSampling::CaloSample CaloSamplingHelper::getSamplingId ( const std::string &  samplingName)
static

Returns the CaloSampling::CaloSample enumerator value.

Parameters
[in]samplingNamestring with sampling name

Definition at line 63 of file CaloUtils/src/CaloSamplingHelper.cxx.

64 {
65  return m_lookUp.find(name) != m_lookUp.end()
66  ? (*m_lookUp.find(name)).second
68 }

◆ getSamplingName() [1/2]

const std::string & CaloSamplingHelper::getSamplingName ( const CaloSampling::CaloSample  theSample)
static

Returns a string (name) for each CaloSampling.

Parameters
[in]theSampleCaloSampling::CaloSample enumerator value

Definition at line 44 of file CaloUtils/src/CaloSamplingHelper.cxx.

44  {
45  //Linear search for the value in the std::map m_lookUp.
46  //Slow, but acceptable because:
47  // 1. The map has only 28 entries
48  // 2. It's and integer-comparision
49  // 3. The method is only use for log-output (eg not too often)
50 
51  //Implementation uses a C++11 lambda function
52  //[&theSample] defines the lambda function and says that it depends on the external variable theSampling (captured by reference)
53  //(std::pair<std::string,CaloSample> i) is the parameter of the function
54  //{return (i.second==theSample);} Is the code of the function
55  auto it=std::find_if(m_lookUp.begin(),m_lookUp.end(),[&theSample](const std::pair<std::string,CaloSampling::CaloSample>& i) {return (i.second==theSample);});
56  if (it==m_lookUp.end())
57  return m_unknown;
58  else
59  return it->first;
60 }

◆ getSamplingName() [2/2]

std::string CaloSampling::getSamplingName ( unsigned int  theSample)
staticinherited

Returns a string (name) for each CaloSampling.

Parameters
[in]theSampleCaloSampling::CaloSample enumerator value

Definition at line 24 of file Calorimeter/CaloGeoHelpers/Root/CaloSampling.cxx.

25 {
26  if (theSample >= getNumberOfSamplings())
27  return "";
28  return sample_names[theSample];
29 }

◆ getSamplingPattern() [1/2]

static unsigned int CaloSampling::getSamplingPattern ( const CaloSample  s)
inlinestaticinherited

Get a unsigned with one bit set

Definition at line 33 of file Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimParametrization/tools/CaloGeoHelpers/CaloSampling.h.

33  {
34  return (0x1U << s);
35  }

◆ getSamplingPattern() [2/2]

static unsigned int CaloSampling::getSamplingPattern ( const CaloSample  s)
inlinestaticinherited

Get a unsigned with one bit set

Definition at line 36 of file Calorimeter/CaloGeoHelpers/CaloGeoHelpers/CaloSampling.h.

36  {
37  return (0x1U << s);
38  }

◆ getSamplings() [1/2]

bool CaloSamplingHelper::getSamplings ( const CaloCell_ID::SUBCALO theCalo,
std::vector< CaloSampling::CaloSample > &  theSamplings 
)
static

Returns a list of samplings enumerators for a list of sub-calos This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters
[in]theCalocalo enumerator

Definition at line 122 of file CaloUtils/src/CaloSamplingHelper.cxx.

122  {
123  const std::vector<CaloCell_ID::SUBCALO> caloVector = {theCalo};
124  return getSamplings(caloVector, theSamplings);
125 }

◆ getSamplings() [2/2]

bool CaloSamplingHelper::getSamplings ( const std::vector< CaloCell_ID::SUBCALO > &  theCalos,
std::vector< CaloSampling::CaloSample > &  theSamplings 
)
static

Returns a list of samplings enumerators for a list of sub-calos.

Parameters
[in]theCalosvector of calo enumerators
[out]theSamplingsvector of sampling enumerators

Definition at line 70 of file CaloUtils/src/CaloSamplingHelper.cxx.

72  {
73 
74  const size_t oldSize = theSamplings.size();
75  for (auto fCalo : theCalos) {
76  switch (fCalo) {
77  case CaloCell_ID::LAREM:
78  theSamplings.push_back(PreSamplerB);
79  theSamplings.push_back(EMB1);
80  theSamplings.push_back(EMB2);
81  theSamplings.push_back(EMB3);
82  theSamplings.push_back(PreSamplerE);
83  theSamplings.push_back(EME1);
84  theSamplings.push_back(EME2);
85  theSamplings.push_back(EME3);
86  break;
88  theSamplings.push_back(HEC0);
89  theSamplings.push_back(HEC1);
90  theSamplings.push_back(HEC2);
91  theSamplings.push_back(HEC3);
92  break;
94  theSamplings.push_back(FCAL0);
95  theSamplings.push_back(FCAL1);
96  theSamplings.push_back(FCAL2);
97  break;
98  case CaloCell_ID::TILE:
99  theSamplings.push_back(TileBar0);
100  theSamplings.push_back(TileBar1);
101  theSamplings.push_back(TileBar2);
102  theSamplings.push_back(TileExt0);
103  theSamplings.push_back(TileExt1);
104  theSamplings.push_back(TileExt2);
105  theSamplings.push_back(TileGap1);
106  theSamplings.push_back(TileGap2);
107  theSamplings.push_back(TileGap3);
108  break;
110  theSamplings.push_back(MINIFCAL0);
111  theSamplings.push_back(MINIFCAL1);
112  theSamplings.push_back(MINIFCAL2);
113  theSamplings.push_back(MINIFCAL3);
114  break;
115  default:
116  break;
117  }
118  }
119  return oldSize < theSamplings.size();
120 }

◆ isBarrelSampling()

bool CaloSamplingHelper::isBarrelSampling ( const CaloSample rSample)
static

Definition at line 67 of file CaloEvent/src/CaloSamplingHelper.cxx.

68 {
69  return matchPattern(rSample,m_BarrelMask);
70 }

◆ isEMSampling()

bool CaloSamplingHelper::isEMSampling ( const CaloSample rSample)
static

Get sampling characteristics.

Definition at line 57 of file CaloEvent/src/CaloSamplingHelper.cxx.

58 {
59  return matchPattern(rSample,m_EMMask);
60 }

◆ isEndCapSampling()

bool CaloSamplingHelper::isEndCapSampling ( const CaloSample rSample)
static

Definition at line 72 of file CaloEvent/src/CaloSamplingHelper.cxx.

73 {
74  return matchPattern(rSample,m_EndCapMask);
75 }

◆ isHADSampling()

bool CaloSamplingHelper::isHADSampling ( const CaloSample rSample)
static

Definition at line 62 of file CaloEvent/src/CaloSamplingHelper.cxx.

63 {
64  return matchPattern(rSample,m_HADMask);
65 }

◆ isLArSampling()

bool CaloSamplingHelper::isLArSampling ( const CaloSample rSample)
static

Definition at line 77 of file CaloEvent/src/CaloSamplingHelper.cxx.

78 {
79  return matchPattern(rSample,m_LArMask);
80 }

◆ isTileSampling()

bool CaloSamplingHelper::isTileSampling ( const CaloSample rSample)
static

Definition at line 82 of file CaloEvent/src/CaloSamplingHelper.cxx.

83 {
84  return matchPattern(rSample,m_TileMask);
85 }

◆ matchPattern()

bool CaloSamplingHelper::matchPattern ( const CaloSample rSample,
const unsigned int &  mask 
)
staticprivate

Definition at line 87 of file CaloEvent/src/CaloSamplingHelper.cxx.

89 {
90  unsigned int bitPattern = getSamplingBit(rSample);
91  return ( bitPattern & mask ) == bitPattern;
92 }

◆ operator=()

CaloSamplingHelper& CaloSamplingHelper::operator= ( const CaloSamplingHelper rhs)
delete

Member Data Documentation

◆ m_BarrelMask

const unsigned int CaloSamplingHelper::m_BarrelMask = 0x001ff00f
staticprivate

Definition at line 79 of file CaloEvent/CaloEvent/CaloSamplingHelper.h.

◆ m_EMMask

const unsigned int CaloSamplingHelper::m_EMMask = 0x000000ff
staticprivate

Definition at line 77 of file CaloEvent/CaloEvent/CaloSamplingHelper.h.

◆ m_EndCapMask

const unsigned int CaloSamplingHelper::m_EndCapMask = 0x00e00ff0
staticprivate

Definition at line 80 of file CaloEvent/CaloEvent/CaloSamplingHelper.h.

◆ m_HADMask

const unsigned int CaloSamplingHelper::m_HADMask = 0x00ffff00
staticprivate

Definition at line 78 of file CaloEvent/CaloEvent/CaloSamplingHelper.h.

◆ m_LArMask

const unsigned int CaloSamplingHelper::m_LArMask = 0x00e00fff
staticprivate

Definition at line 81 of file CaloEvent/CaloEvent/CaloSamplingHelper.h.

◆ m_lookUp

const std::map< std::string, CaloSampling::CaloSample > CaloSamplingHelper::m_lookUp
staticprivate
Initial value:
{
{"PreSamplerB", PreSamplerB},
{"EMB1", EMB1},
{"EMB2", EMB2},
{"EMB3", EMB3},
{"PreSamplerE", PreSamplerE},
{"EME1", EME1},
{"EME2", EME2},
{"EME3", EME3},
{"HEC0", HEC0},
{"HEC1", HEC1},
{"HEC2", HEC2},
{"HEC3", HEC3},
{"TileBar0", TileBar0},
{"TileBar1", TileBar1},
{"TileBar2", TileBar2},
{"TileGap1", TileGap1},
{"TileGap2", TileGap2},
{"TileGap3", TileGap3},
{"TileExt0", TileExt0},
{"TileExt1", TileExt1},
{"TileExt2", TileExt2},
{"FCal1", FCAL0},
{"FCal2", FCAL1},
{"FCal3", FCAL2},
{"MiniFCal0", MINIFCAL0},
{"MiniFCal1", MINIFCAL1},
{"MiniFCal2", MINIFCAL2},
{"MiniFCal3", MINIFCAL3}
}

Definition at line 55 of file CaloUtils/CaloUtils/CaloSamplingHelper.h.

◆ m_TileMask

const unsigned int CaloSamplingHelper::m_TileMask = 0x001ff000
staticprivate

Definition at line 82 of file CaloEvent/CaloEvent/CaloSamplingHelper.h.

◆ m_unknown

const std::string CaloSamplingHelper::m_unknown ="Unknown"
staticprivate

Definition at line 56 of file CaloUtils/CaloUtils/CaloSamplingHelper.h.


The documentation for this class was generated from the following files:
GetLCDefs::Unknown
@ Unknown
Definition: GetLCDefs.h:21
python.SystemOfUnits.second
int second
Definition: SystemOfUnits.py:120
CaloCell_Base_ID::LARFCAL
@ LARFCAL
Definition: CaloCell_Base_ID.h:46
CaloSamplingHelper::m_lookUp
static const std::map< std::string, CaloSampling::CaloSample > m_lookUp
Definition: CaloUtils/CaloUtils/CaloSamplingHelper.h:55
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
CaloCell_ID_FCS::TileExt2
@ TileExt2
Definition: FastCaloSim_CaloCell_ID.h:39
constants.EMB1
int EMB1
Definition: Calorimeter/CaloClusterCorrection/python/constants.py:53
ReadCellNoiseFromCool.cell
cell
Definition: ReadCellNoiseFromCool.py:53
find
std::string find(const std::string &s)
return a remapped string
Definition: hcg.cxx:135
CaloCell_ID_FCS::TileExt0
@ TileExt0
Definition: FastCaloSim_CaloCell_ID.h:37
CaloCell_ID_FCS::TileBar1
@ TileBar1
Definition: FastCaloSim_CaloCell_ID.h:32
CaloCell_Base_ID::LARMINIFCAL
@ LARMINIFCAL
Definition: CaloCell_Base_ID.h:46
CaloDetDescrElement
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:66
skel.it
it
Definition: skel.GENtoEVGEN.py:396
CaloCell_ID_FCS::FCAL1
@ FCAL1
Definition: FastCaloSim_CaloCell_ID.h:41
CaloCell_Base_ID::LARHEC
@ LARHEC
Definition: CaloCell_Base_ID.h:46
CaloCell_ID_FCS::HEC2
@ HEC2
Definition: FastCaloSim_CaloCell_ID.h:29
CaloSamplingHelper::m_TileMask
static const unsigned int m_TileMask
Definition: CaloEvent/CaloEvent/CaloSamplingHelper.h:82
CaloCell_ID_FCS::TileGap3
@ TileGap3
Definition: FastCaloSim_CaloCell_ID.h:36
python.utils.AtlRunQueryLookup.mask
string mask
Definition: AtlRunQueryLookup.py:460
CaloSamplingHelper::getSamplingBit
static unsigned int getSamplingBit(const CaloSample &rSample)
Return a unique bit set for a given sampling.
Definition: CaloEvent/CaloEvent/CaloSamplingHelper.h:48
CaloSampling::getSamplingPattern
static unsigned int getSamplingPattern(const CaloSample s)
Get a unsigned with one bit set
Definition: Calorimeter/CaloGeoHelpers/CaloGeoHelpers/CaloSampling.h:36
CaloCell_ID_FCS::HEC1
@ HEC1
Definition: FastCaloSim_CaloCell_ID.h:28
constants.EMB2
int EMB2
Definition: Calorimeter/CaloClusterCorrection/python/constants.py:54
lumiFormat.i
int i
Definition: lumiFormat.py:85
CaloSampling::CaloSample
CaloSample
Definition: Calorimeter/CaloGeoHelpers/CaloGeoHelpers/CaloSampling.h:22
CaloCell_ID_FCS::TileBar0
@ TileBar0
Definition: FastCaloSim_CaloCell_ID.h:31
CaloSamplingHelper::m_EndCapMask
static const unsigned int m_EndCapMask
Definition: CaloEvent/CaloEvent/CaloSamplingHelper.h:80
CaloCell_ID_FCS::TileGap2
@ TileGap2
Definition: FastCaloSim_CaloCell_ID.h:35
CaloCell_Base_ID::SUBCALO
SUBCALO
enumeration of sub calorimeters
Definition: CaloCell_Base_ID.h:46
CaloSamplingHelper::m_EMMask
static const unsigned int m_EMMask
Definition: CaloEvent/CaloEvent/CaloSamplingHelper.h:77
constants.EME1
int EME1
Definition: Calorimeter/CaloClusterCorrection/python/constants.py:55
CaloCell_Base_ID::TILE
@ TILE
Definition: CaloCell_Base_ID.h:46
CaloCell_ID_FCS::TileGap1
@ TileGap1
Definition: FastCaloSim_CaloCell_ID.h:34
CALOSAMPLING
#define CALOSAMPLING(NAME, ISBARREL, ISENDCAP)
Definition: Calorimeter/CaloGeoHelpers/CaloGeoHelpers/CaloSampling.h:23
python.Include.include
include
Definition: Include.py:318
CaloSamplingHelper::m_unknown
static const std::string m_unknown
Definition: CaloUtils/CaloUtils/CaloSamplingHelper.h:56
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
CaloCell_ID_FCS::TileExt1
@ TileExt1
Definition: FastCaloSim_CaloCell_ID.h:38
CaloCell_ID_FCS::EME3
@ EME3
Definition: FastCaloSim_CaloCell_ID.h:26
CaloSamplingHelper::getSamplings
static bool getSamplings(const std::vector< CaloCell_ID::SUBCALO > &theCalos, std::vector< CaloSampling::CaloSample > &theSamplings)
Returns a list of samplings enumerators for a list of sub-calos.
Definition: CaloUtils/src/CaloSamplingHelper.cxx:70
CaloSampling::getNumberOfSamplings
static constexpr unsigned int getNumberOfSamplings()
Get number of available samplings.
Definition: Calorimeter/CaloGeoHelpers/CaloGeoHelpers/CaloSampling.h:30
CaloCell_ID_FCS::HEC0
@ HEC0
Definition: FastCaloSim_CaloCell_ID.h:27
CaloSamplingHelper::getSampling
static CaloSample getSampling(const CaloCell &c)
Retrieves the sampling indicator for a cell.
Definition: CaloEvent/src/CaloSamplingHelper.cxx:39
CaloDetDescrElement::getSampling
CaloCell_ID::CaloSample getSampling() const
cell sampling
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:395
CaloCell_ID_FCS::PreSamplerE
@ PreSamplerE
Definition: FastCaloSim_CaloCell_ID.h:23
CaloCell_ID_FCS::PreSamplerB
@ PreSamplerB
Definition: FastCaloSim_CaloCell_ID.h:19
CaloSamplingHelper::m_LArMask
static const unsigned int m_LArMask
Definition: CaloEvent/CaloEvent/CaloSamplingHelper.h:81
CaloSamplingHelper::m_HADMask
static const unsigned int m_HADMask
Definition: CaloEvent/CaloEvent/CaloSamplingHelper.h:78
CaloCell_ID_FCS::FCAL2
@ FCAL2
Definition: FastCaloSim_CaloCell_ID.h:42
CaloCell_ID_FCS::HEC3
@ HEC3
Definition: FastCaloSim_CaloCell_ID.h:30
CaloCell_Base_ID::LAREM
@ LAREM
Definition: CaloCell_Base_ID.h:46
CaloCell_Base_ID::NOT_VALID
@ NOT_VALID
Definition: CaloCell_Base_ID.h:46
CaloCell_ID_FCS::FCAL0
@ FCAL0
Definition: FastCaloSim_CaloCell_ID.h:40
CaloCell_ID_FCS::EMB3
@ EMB3
Definition: FastCaloSim_CaloCell_ID.h:22
CaloCell_ID_FCS::TileBar2
@ TileBar2
Definition: FastCaloSim_CaloCell_ID.h:33
CaloSamplingHelper::m_BarrelMask
static const unsigned int m_BarrelMask
Definition: CaloEvent/CaloEvent/CaloSamplingHelper.h:79
constants.EME2
int EME2
Definition: Calorimeter/CaloClusterCorrection/python/constants.py:56
CaloSamplingHelper::matchPattern
static bool matchPattern(const CaloSample &rSample, const unsigned int &mask)
Definition: CaloEvent/src/CaloSamplingHelper.cxx:87