Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
SiElementPropertiesTable.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 /***************************************************************************
6  Stores properties that are needed in SiSpacePointFinder.
7  --------------------------------------------------------
8  ATLAS Collaboration
9  ***************************************************************************/
10 
11 // $Id: SiElementPropertiesTable.h,v 1.3 2009-01-07 17:50:36 markuse Exp $
12 
13 #ifndef SISPACEPOINTFORMATION_SIELEMENTPROPERTIESTABLE_H
14 #define SISPACEPOINTFORMATION_SIELEMENTPROPERTIESTABLE_H
15 
17 
20 
21 #include <vector>
22 
23 namespace InDet {
24 
25 class SiElementPropertiesTable final
26 {
27 public:
28 
30  const InDetDD::SiDetectorElementCollection& elements,
31  float epsilonWidth,
32  const bool doEndcapEtaNeighbours=false);
33  ~SiElementPropertiesTable() = default;
34 
35  const std::vector<IdentifierHash>* neighbours(const IdentifierHash& waferID) const;
36  float halfWidth(IdentifierHash hashID) const;
37 
38 private:
39  std::vector<SiElementProperties> m_properties;
40 
41 };
42 
43 
44 inline const std::vector<IdentifierHash>*
46 {
47  return (m_properties[(unsigned int)waferID]).neighbours();
48 }
49 
50 inline float
52 {
53  return (m_properties[(unsigned int)waferID]).halfWidth();
54 }
55 
56 }
57 
58 #include "AthenaKernel/CLASS_DEF.h"
60 #include "AthenaKernel/CondCont.h"
62 
63 #endif // SISPACEPOINTFORMATION_SIELEMENTPROPERTIESTABLE_H
InDetDD::SiDetectorElementCollection
Definition: SiDetectorElementCollection.h:30
InDet::SiElementPropertiesTable::halfWidth
float halfWidth(IdentifierHash hashID) const
Definition: SiElementPropertiesTable.h:55
InDet
Primary Vertex Finder.
Definition: VP1ErrorUtils.h:36
InDet::SiElementPropertiesTable::~SiElementPropertiesTable
~SiElementPropertiesTable()=default
columnar::final
CM final
Definition: ColumnAccessor.h:106
IdentifierHash.h
InDet::SiElementPropertiesTable::m_properties
std::vector< SiElementProperties > m_properties
Definition: SiElementPropertiesTable.h:47
InDet::SiElementPropertiesTable
Definition: SiElementPropertiesTable.h:30
SiDetectorElementCollection.h
SiElementProperties.h
SCT_ID
Definition: SCT_ID.h:68
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:67
CONDCONT_MIXED_DEF
CONDCONT_MIXED_DEF(InDet::SiElementPropertiesTable, 92686144)
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition: IdentifierHash.h:25
InDet::SiElementPropertiesTable::SiElementPropertiesTable
SiElementPropertiesTable(const SCT_ID &idHelper, const InDetDD::SiDetectorElementCollection &elements, float epsilonWidth, const bool doEndcapEtaNeighbours=false)
Definition: SiElementPropertiesTable.cxx:23
CLASS_DEF.h
macros to associate a CLID to a type
InDet::SiElementPropertiesTable::neighbours
const std::vector< IdentifierHash > * neighbours(const IdentifierHash &waferID) const
Definition: SiElementPropertiesTable.h:49