ATLAS Offline Software
InnerDetector
InDetConditions
SiPropertiesTool
src
SiliconPropertiesVector.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// Source file for class SiliconPropertiesVector for SiPropertiesTool
8
9
#include "
SiPropertiesTool/SiliconPropertiesVector.h
"
10
11
namespace
InDet
{
12
13
SiliconPropertiesVector::SiliconPropertiesVector
():
14
m_data
{},
15
m_defaultProperties{}
16
{
17
}
18
19
SiliconPropertiesVector::~SiliconPropertiesVector
() =
default
;
20
21
void
SiliconPropertiesVector::resize
(
IdentifierHash::value_type
size
) {
22
m_data
.resize(
size
);
23
}
24
25
const
InDet::SiliconProperties
&
SiliconPropertiesVector::getSiProperties
(
const
IdentifierHash
& elementHash)
const
{
26
if
(
m_data
.size()<=elementHash)
return
m_defaultProperties
;
27
return
m_data
[elementHash];
28
}
29
30
void
SiliconPropertiesVector::setConditions
(
const
IdentifierHash
& elementHash,
const
double
temperature,
const
double
electricField) {
31
if
(
m_data
.size()<elementHash)
m_data
.resize(elementHash);
32
m_data
[elementHash].setConditions(temperature, electricField);
33
}
34
35
}
// namespace InDet
InDet::SiliconPropertiesVector::m_defaultProperties
InDet::SiliconProperties m_defaultProperties
Definition:
SiliconPropertiesVector.h:32
InDet
Primary Vertex Finder.
Definition:
VP1ErrorUtils.h:36
m_data
std::vector< T > m_data
Definition:
TrackTruthMatchingBaseAlg.cxx:660
IdentifierHash::value_type
unsigned int value_type
Definition:
IdentifierHash.h:27
InDet::SiliconPropertiesVector::m_data
std::vector< InDet::SiliconProperties > m_data
Definition:
SiliconPropertiesVector.h:31
InDet::SiliconPropertiesVector::~SiliconPropertiesVector
~SiliconPropertiesVector()
python.setupRTTAlg.size
int size
Definition:
setupRTTAlg.py:39
InDet::SiliconPropertiesVector::resize
void resize(IdentifierHash::value_type size)
Definition:
SiliconPropertiesVector.cxx:21
InDet::SiliconPropertiesVector::setConditions
void setConditions(const IdentifierHash &elementHash, const double temperature, const double electricField)
Definition:
SiliconPropertiesVector.cxx:30
InDet::SiliconProperties
Definition:
SiliconProperties.h:24
SiliconPropertiesVector.h
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::SiliconPropertiesVector::SiliconPropertiesVector
SiliconPropertiesVector()
Definition:
SiliconPropertiesVector.cxx:13
InDet::SiliconPropertiesVector::getSiProperties
const InDet::SiliconProperties & getSiProperties(const IdentifierHash &elementHash) const
Definition:
SiliconPropertiesVector.cxx:25
Generated on Thu Nov 7 2024 21:26:05 for ATLAS Offline Software by
1.8.18