ATLAS Offline Software
Loading...
Searching...
No Matches
SCT_GeneralParameters.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
6#include "SCT_DataBase.h"
9#include "GaudiKernel/SystemOfUnits.h"
10#include "GeoModelKernel/GeoDefinitions.h"
12
13const double SCT_SAFETY = 0.01 * Gaudi::Units::mm; // Used in some places to make envelopes slightly larger to ensure
14 // no overlaps due to rounding errors.
15
16
18{
19 m_rdb = rdb;
20 m_placements = std::make_unique<TopLevelPlacements>(m_rdb->topLevelTable());
21}
22
23
27
28
29const GeoTrf::Transform3D &
30SCT_GeneralParameters::partTransform(const std::string & partName) const
31{
32 return m_placements->transform(partName);
33}
34
35
36bool
37SCT_GeneralParameters::partPresent(const std::string & partName) const
38{
39 return m_placements->present(partName);
40}
41
42
43
44//
45// General
46//
47double
49{
50 return SCT_SAFETY;
51}
52
53// Default Conditions. Values should be come form conditions data base. These values provide
54// default vlaues if nothing from the conditions database is provided.
55
56
57double
59{
60 if (m_rdb->conditionsTable()->size() == 0) {
61 return 266.15 * Gaudi::Units::kelvin; // -7 C
62 }
63 return (m_rdb->conditions()->getDouble("TEMPERATURE") + 273.15) * Gaudi::Units::kelvin;
64}
65
66
67double
69{
70 if (m_rdb->conditionsTable()->size() == 0) {
71 return 100 * Gaudi::Units::volt;
72 }
73 return m_rdb->conditions()->getDouble("BIASVOLT") * Gaudi::Units::volt;
74}
75
76double
78{
79 if (m_rdb->conditionsTable()->size() == 0) {
80 return 20 * Gaudi::Units::volt;
81 }
82 return m_rdb->conditions()->getDouble("DEPLETIONVOLT") * Gaudi::Units::volt;
83}
84
85
86
87
Definition of the abstract IRDBRecord interface.
Definition of the abstract IRDBRecordset interface.
const double SCT_SAFETY
SCT_GeneralParameters(SCT_DataBase *rdb)
std::unique_ptr< TopLevelPlacements > m_placements
const GeoTrf::Transform3D & partTransform(const std::string &partName) const
bool partPresent(const std::string &partName) const