ATLAS Offline Software
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  ~SiElementPropertiesTable() = default;
33 
34  const std::vector<IdentifierHash>* neighbours(const IdentifierHash& waferID) const;
35  float halfWidth(IdentifierHash hashID) const;
36 
37 private:
38  std::vector<SiElementProperties> m_properties;
39 
40 };
41 
42 
43 inline const std::vector<IdentifierHash>*
45 {
46  return (m_properties[(unsigned int)waferID]).neighbours();
47 }
48 
49 inline float
51 {
52  return (m_properties[(unsigned int)waferID]).halfWidth();
53 }
54 
55 }
56 
57 #include "AthenaKernel/CLASS_DEF.h"
59 #include "AthenaKernel/CondCont.h"
61 
62 #endif // SISPACEPOINTFORMATION_SIELEMENTPROPERTIESTABLE_H
InDetDD::SiDetectorElementCollection
Definition: SiDetectorElementCollection.h:30
InDet::SiElementPropertiesTable::halfWidth
float halfWidth(IdentifierHash hashID) const
Definition: SiElementPropertiesTable.h:54
InDet
DUMMY Primary Vertex Finder.
Definition: VP1ErrorUtils.h:36
EL::Detail::ManagerStep::final
@ final
InDet::SiElementPropertiesTable::~SiElementPropertiesTable
~SiElementPropertiesTable()=default
IdentifierHash.h
InDet::SiElementPropertiesTable::m_properties
std::vector< SiElementProperties > m_properties
Definition: SiElementPropertiesTable.h:46
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:64
CONDCONT_MIXED_DEF
CONDCONT_MIXED_DEF(InDet::SiElementPropertiesTable, 92686144)
IdentifierHash
Definition: IdentifierHash.h:38
InDet::SiElementPropertiesTable::SiElementPropertiesTable
SiElementPropertiesTable(const SCT_ID &idHelper, const InDetDD::SiDetectorElementCollection &elements, float epsilonWidth)
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:48