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"
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"
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 129 of file CaloUtils/src/CaloSamplingHelper.cxx.

130  {
131  const size_t oldSize = theCalos.size();
132  for (auto fSample : theSamplings) {
134  switch ( fSample ) {
136  case CaloSampling::EMB1:
137  case CaloSampling::EMB2:
138  case CaloSampling::EMB3:
140  case CaloSampling::EME1:
141  case CaloSampling::EME2:
142  case CaloSampling::EME3:
143  theCaloId = CaloCell_ID::LAREM;
144  break;
145  case CaloSampling::HEC0:
146  case CaloSampling::HEC1:
147  case CaloSampling::HEC2:
148  case CaloSampling::HEC3:
149  theCaloId = CaloCell_ID::LARHEC;
150  break;
151  case CaloSampling::FCAL0:
152  case CaloSampling::FCAL1:
153  case CaloSampling::FCAL2:
154  theCaloId = CaloCell_ID::LARFCAL;
155  break;
165  theCaloId = CaloCell_ID::TILE;
166  break;
167  case CaloSampling::MINIFCAL0:
168  case CaloSampling::MINIFCAL1:
169  case CaloSampling::MINIFCAL2:
170  case CaloSampling::MINIFCAL3:
171  theCaloId = CaloCell_ID::LARMINIFCAL;
172  break;
173  default:
174  break;
175  }
176  // check if not there yet (actually a std::set would be better than a vector)
177  if ( std::find(theCalos.begin(),theCalos.end(),theCaloId) == theCalos.end()){
178  theCalos.push_back(theCaloId);
179  }
180  }
181  return theCalos.size() > oldSize;
182 }

◆ 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 61 of file CaloUtils/src/CaloSamplingHelper.cxx.

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

◆ 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 42 of file CaloUtils/src/CaloSamplingHelper.cxx.

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

◆ 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.

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

◆ 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 69 of file CaloUtils/src/CaloSamplingHelper.cxx.

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

◆ 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", CaloSampling::PreSamplerB},
{"EMB1", CaloSampling::EMB1},
{"EMB2", CaloSampling::EMB2},
{"EMB3", CaloSampling::EMB3},
{"PreSamplerE", CaloSampling::PreSamplerE},
{"EME1", CaloSampling::EME1},
{"EME2", CaloSampling::EME2},
{"EME3", CaloSampling::EME3},
{"HEC0", CaloSampling::HEC0},
{"HEC1", CaloSampling::HEC1},
{"HEC2", CaloSampling::HEC2},
{"HEC3", CaloSampling::HEC3},
{"TileBar0", CaloSampling::TileBar0},
{"TileBar1", CaloSampling::TileBar1},
{"TileBar2", CaloSampling::TileBar2},
{"TileGap1", CaloSampling::TileGap1},
{"TileGap2", CaloSampling::TileGap2},
{"TileGap3", CaloSampling::TileGap3},
{"TileExt0", CaloSampling::TileExt0},
{"TileExt1", CaloSampling::TileExt1},
{"TileExt2", CaloSampling::TileExt2},
{"FCal1", CaloSampling::FCAL0},
{"FCal2", CaloSampling::FCAL1},
{"FCal3", CaloSampling::FCAL2},
{"MiniFCal0", CaloSampling::MINIFCAL0},
{"MiniFCal1", CaloSampling::MINIFCAL1},
{"MiniFCal2", CaloSampling::MINIFCAL2},
{"MiniFCal3", CaloSampling::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:423
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:92
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:319
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:192
CaloCell_ID_FCS::TileExt1
@ TileExt1
Definition: FastCaloSim_CaloCell_ID.h:38
CaloCell_ID_FCS::EME3
@ EME3
Definition: FastCaloSim_CaloCell_ID.h:26
undef
@ undef
Definition: L1CaloPprPlotManager.h:81
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:69
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