ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetConditions
SiLorentzAngleTool
src
SCTSiLorentzAngleCondAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
9
#ifndef SCTSiLorentzAngleCondAlg_h
10
#define SCTSiLorentzAngleCondAlg_h
11
12
// Athena includes
13
#include "
AthenaBaseComps/AthCondAlgorithm.h
"
14
15
#include "
AthenaPoolUtilities/CondAttrListCollection.h
"
16
#include "
GeoPrimitives/GeoPrimitives.h
"
17
#include "
InDetConditionsSummaryService/ISiliconConditionsTool.h
"
18
#include "
InDetReadoutGeometry/SiDetectorElementCollection.h
"
19
#include "
MagFieldConditions/AtlasFieldCacheCondObj.h
"
20
#include "
MagFieldElements/AtlasFieldCache.h
"
21
#include "
SCT_ConditionsData/SCT_DCSFloatCondData.h
"
22
#include "
SiLorentzAngleTool/SiLorentzAngleCondData.h
"
23
#include "
StoreGate/ReadCondHandleKey.h
"
24
#include "
StoreGate/WriteCondHandleKey.h
"
25
26
// Gaudi includes
27
#include "GaudiKernel/ServiceHandle.h"
28
#include "GaudiKernel/SystemOfUnits.h"
29
#include "GaudiKernel/ToolHandle.h"
30
35
36
class
SCTSiLorentzAngleCondAlg
:
public
AthCondAlgorithm
37
{
38
public
:
39
SCTSiLorentzAngleCondAlg
(
const
std::string& name, ISvcLocator* pSvcLocator);
40
virtual
~SCTSiLorentzAngleCondAlg
() =
default
;
41
virtual
StatusCode
initialize
() override final;
42
virtual StatusCode
execute
(
const
EventContext& ctx)
const
override final;
43
virtual StatusCode
finalize
() override final;
44
45
private
:
46
SG
::ReadCondHandleKey<
SCT_DCSFloatCondData
>
m_readKeyTemp
{
this
,
"ReadKeyTemp"
,
"SCT_SiliconTempCondData"
,
"Key of input SCT temperature"
};
47
SG::ReadCondHandleKey<SCT_DCSFloatCondData>
m_readKeyHV
{
this
,
"ReadKeyHV"
,
"SCT_SiliconBiasVoltCondData"
,
"Key of input SCT HV"
};
48
// The /GLOBAL/BField/Maps folder is run-lumi folder and has just one IOV. The folder is not used for IOV determination.
49
SG::ReadCondHandleKey<InDetDD::SiDetectorElementCollection>
m_SCTDetEleCollKey
{
this
,
"SCTDetEleCollKey"
,
"SCT_DetectorElementCollection"
,
"Key of SiDetectorElementCollection for SCT"
};
50
// Read handle for conditions object to get the field cache
51
SG::ReadCondHandleKey<AtlasFieldCacheCondObj>
m_fieldCondObjInputKey
{
this
,
"AtlasFieldCacheCondObj"
,
"fieldCondObj"
,
52
"Name of the Magnetic Field conditions object key"
};
53
SG::WriteCondHandleKey<SiLorentzAngleCondData>
m_writeKey
{
this
,
"WriteKey"
,
"SCTSiLorentzAngleCondData"
,
"Key of output SiLorentzAngleCondData"
};
54
55
ToolHandle<ISiliconConditionsTool>
m_siConditionsTool
{
this
,
"SiConditionsTool"
,
"SCT_SiliconConditionsTool"
,
"Tool to retrieve SCT silicon information"
};
56
57
// Properties
58
// YOU NEED TO USE THE SAME PROPERTIES AS USED IN SCTLorentzAngleTool!!!
59
DoubleProperty
m_temperature
{
this
,
"Temperature"
, -7.,
"Default temperature in Celcius."
};
60
DoubleProperty
m_temperatureMin
{
this
,
"TemperatureMin"
, -80.,
"Minimum temperature allowed in Celcius."
};
61
DoubleProperty
m_temperatureMax
{
this
,
"TemperatureMax"
, 100.,
"Maximum temperature allowed in Celcius."
};
62
DoubleProperty
m_deplVoltage
{
this
,
"DepletionVoltage"
, 70.,
"Default depletion voltage in Volt."
};
63
DoubleProperty
m_biasVoltage
{
this
,
"BiasVoltage"
, 150.,
"Default bias voltage in Volt."
};
64
DoubleProperty
m_nominalField
{
this
,
"NominalField"
, 2.0834*Gaudi::Units::tesla};
65
BooleanProperty
m_useMagFieldCache
{
this
,
"UseMagFieldCache"
,
true
};
66
BooleanProperty
m_useMagFieldDcs
{
this
,
"UseMagFieldDcs"
,
true
};
67
BooleanProperty
m_sctDefaults
{
this
,
"useSctDefaults"
,
false
};
68
BooleanProperty
m_useGeoModel
{
this
,
"UseGeoModel"
,
false
};
69
unsigned
int
m_maxHash
;
70
71
Amg::Vector3D
getMagneticField
(
MagField::AtlasFieldCache
& fieldCache,
const
InDetDD::SiDetectorElement
* element)
const
;
72
73
};
74
75
#endif
// SCTSiLorentzAngleCondAlg_h
AthCondAlgorithm.h
Base class for conditions algorithms.
AtlasFieldCacheCondObj.h
AtlasFieldCache.h
CondAttrListCollection.h
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
GeoPrimitives.h
ISiliconConditionsTool.h
ReadCondHandleKey.h
SCT_DCSFloatCondData.h
header file for data object for SCT_DCSConditions{HV,Temp}CondAlg, SCT_DCSConditionsTool,...
SiDetectorElementCollection.h
SiLorentzAngleCondData.h
WriteCondHandleKey.h
AthCondAlgorithm
Base class for conditions algorithms.
Definition
AthCondAlgorithm.h:22
InDetDD::SiDetectorElement
Class to hold geometrical description of a silicon detector element.
Definition
SiDetectorElement.h:109
MagField::AtlasFieldCache
Local cache for magnetic field (based on MagFieldServices/AtlasFieldSvcTLS.h).
Definition
AtlasFieldCache.h:43
SCTSiLorentzAngleCondAlg::m_temperatureMin
DoubleProperty m_temperatureMin
Definition
SCTSiLorentzAngleCondAlg.h:60
SCTSiLorentzAngleCondAlg::m_temperature
DoubleProperty m_temperature
Definition
SCTSiLorentzAngleCondAlg.h:59
SCTSiLorentzAngleCondAlg::getMagneticField
Amg::Vector3D getMagneticField(MagField::AtlasFieldCache &fieldCache, const InDetDD::SiDetectorElement *element) const
Definition
SCTSiLorentzAngleCondAlg.cxx:219
SCTSiLorentzAngleCondAlg::m_biasVoltage
DoubleProperty m_biasVoltage
Definition
SCTSiLorentzAngleCondAlg.h:63
SCTSiLorentzAngleCondAlg::~SCTSiLorentzAngleCondAlg
virtual ~SCTSiLorentzAngleCondAlg()=default
SCTSiLorentzAngleCondAlg::m_SCTDetEleCollKey
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_SCTDetEleCollKey
Definition
SCTSiLorentzAngleCondAlg.h:49
SCTSiLorentzAngleCondAlg::finalize
virtual StatusCode finalize() override final
Definition
SCTSiLorentzAngleCondAlg.cxx:214
SCTSiLorentzAngleCondAlg::m_writeKey
SG::WriteCondHandleKey< SiLorentzAngleCondData > m_writeKey
Definition
SCTSiLorentzAngleCondAlg.h:53
SCTSiLorentzAngleCondAlg::m_readKeyHV
SG::ReadCondHandleKey< SCT_DCSFloatCondData > m_readKeyHV
Definition
SCTSiLorentzAngleCondAlg.h:47
SCTSiLorentzAngleCondAlg::m_temperatureMax
DoubleProperty m_temperatureMax
Definition
SCTSiLorentzAngleCondAlg.h:61
SCTSiLorentzAngleCondAlg::m_sctDefaults
BooleanProperty m_sctDefaults
Definition
SCTSiLorentzAngleCondAlg.h:67
SCTSiLorentzAngleCondAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override final
Definition
SCTSiLorentzAngleCondAlg.cxx:58
SCTSiLorentzAngleCondAlg::m_useGeoModel
BooleanProperty m_useGeoModel
Definition
SCTSiLorentzAngleCondAlg.h:68
SCTSiLorentzAngleCondAlg::SCTSiLorentzAngleCondAlg
SCTSiLorentzAngleCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition
SCTSiLorentzAngleCondAlg.cxx:23
SCTSiLorentzAngleCondAlg::m_fieldCondObjInputKey
SG::ReadCondHandleKey< AtlasFieldCacheCondObj > m_fieldCondObjInputKey
Definition
SCTSiLorentzAngleCondAlg.h:51
SCTSiLorentzAngleCondAlg::m_nominalField
DoubleProperty m_nominalField
Definition
SCTSiLorentzAngleCondAlg.h:64
SCTSiLorentzAngleCondAlg::m_siConditionsTool
ToolHandle< ISiliconConditionsTool > m_siConditionsTool
Definition
SCTSiLorentzAngleCondAlg.h:55
SCTSiLorentzAngleCondAlg::m_readKeyTemp
SG::ReadCondHandleKey< SCT_DCSFloatCondData > m_readKeyTemp
Definition
SCTSiLorentzAngleCondAlg.h:46
SCTSiLorentzAngleCondAlg::m_useMagFieldDcs
BooleanProperty m_useMagFieldDcs
Definition
SCTSiLorentzAngleCondAlg.h:66
SCTSiLorentzAngleCondAlg::m_useMagFieldCache
BooleanProperty m_useMagFieldCache
Definition
SCTSiLorentzAngleCondAlg.h:65
SCTSiLorentzAngleCondAlg::m_maxHash
unsigned int m_maxHash
Definition
SCTSiLorentzAngleCondAlg.h:69
SCTSiLorentzAngleCondAlg::m_deplVoltage
DoubleProperty m_deplVoltage
Definition
SCTSiLorentzAngleCondAlg.h:62
SCTSiLorentzAngleCondAlg::initialize
virtual StatusCode initialize() override final
Definition
SCTSiLorentzAngleCondAlg.cxx:29
SCT_DCSFloatCondData
Class for data object used in SCT_DCSConditions{HV,Temp}CondAlg, SCT_DCSConditionsTool,...
Definition
SCT_DCSFloatCondData.h:30
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
SG::WriteCondHandleKey
Definition
WriteCondHandleKey.h:22
const
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition
GeoPrimitives.h:47
SG
Forward declaration.
Definition
CaloCellPacker_400_500.h:32
private
#define private
Definition
testRead.cxx:27
Generated on
for ATLAS Offline Software by
1.17.0