ATLAS Offline Software
SCTSiPropertiesCondAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef SCTSIPROPERTIESCONDALG
6 #define SCTSIPROPERTIESCONDALG
7 
9 
16 
17 #include "GaudiKernel/ServiceHandle.h"
18 #include "GaudiKernel/ToolHandle.h"
19 
20 class SCT_ID;
21 
23 {
24  public:
25  SCTSiPropertiesCondAlg(const std::string& name, ISvcLocator* pSvcLocator);
26  virtual ~SCTSiPropertiesCondAlg() = default;
27  virtual StatusCode initialize() override final;
28  virtual StatusCode execute(const EventContext& ctx) const override;
29  virtual StatusCode finalize() override final;
30  virtual bool isReEntrant() const override final { return false; }
31 
32  private:
33  DoubleProperty m_temperatureMin{this, "TemperatureMin", -80., "Minimum temperature allowed in Celcius."};
34  DoubleProperty m_temperatureMax{this, "TemperatureMax", 100., "Maximum temperature allowed in Celcius."};
35  DoubleProperty m_temperatureDefault{this, "TemperatureDefault", -7., "Default temperature in Celcius."};
36  BooleanProperty m_forceGeoModel{this, "ForceUseGeoModel", false, "Flag to avoid using HV and temp from conditions"};
37  SG::ReadCondHandleKey<SCT_DCSFloatCondData> m_readKeyTemp{this, "ReadKeyeTemp", "SCT_SiliconTempCondData", "Key of input sensor temperature conditions folder"};
38  SG::ReadCondHandleKey<SCT_DCSFloatCondData> m_readKeyHV{this, "ReadKeyHV", "SCT_SiliconBiasVoltCondData", "Key of input bias voltage conditions folder"};
39  SG::ReadCondHandleKey<InDetDD::SiDetectorElementCollection> m_SCTDetEleCollKey{this, "SCTDetEleCollKey", "SCT_DetectorElementCollection", "Key of SiDetectorElementCollection for SCT"};
40  SG::WriteCondHandleKey<InDet::SiliconPropertiesVector> m_writeKey{this, "WriteKey", "SCTSiliconPropertiesVector", "Key of output silicon properties conditions folder"};
41 
42  ToolHandle<ISiliconConditionsTool> m_siCondTool{this, "SiConditionsTool", "SCT_SiliconConditionsTool", "SiConditionsTool to be used"};
43  const SCT_ID* m_pHelper;
44 };
45 
46 #endif // SCTSIPROPERTIESCONDALG
SCTSiPropertiesCondAlg::m_siCondTool
ToolHandle< ISiliconConditionsTool > m_siCondTool
Definition: SCTSiPropertiesCondAlg.h:42
WriteCondHandleKey.h
SCTSiPropertiesCondAlg::m_temperatureMax
DoubleProperty m_temperatureMax
Definition: SCTSiPropertiesCondAlg.h:34
SCTSiPropertiesCondAlg
Definition: SCTSiPropertiesCondAlg.h:23
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
SCTSiPropertiesCondAlg::m_pHelper
const SCT_ID * m_pHelper
ID helper for SCT.
Definition: SCTSiPropertiesCondAlg.h:43
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
SCTSiPropertiesCondAlg::~SCTSiPropertiesCondAlg
virtual ~SCTSiPropertiesCondAlg()=default
SCTSiPropertiesCondAlg::isReEntrant
virtual bool isReEntrant() const override final
Definition: SCTSiPropertiesCondAlg.h:30
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
SCT_DCSFloatCondData.h
header file for data object for SCT_DCSConditions{HV,Temp}CondAlg, SCT_DCSConditionsTool,...
SCTSiPropertiesCondAlg::m_readKeyTemp
SG::ReadCondHandleKey< SCT_DCSFloatCondData > m_readKeyTemp
Definition: SCTSiPropertiesCondAlg.h:37
SCTSiPropertiesCondAlg::m_writeKey
SG::WriteCondHandleKey< InDet::SiliconPropertiesVector > m_writeKey
Definition: SCTSiPropertiesCondAlg.h:40
ReadCondHandleKey.h
AthReentrantAlgorithm.h
SCTSiPropertiesCondAlg::finalize
virtual StatusCode finalize() override final
Definition: SCTSiPropertiesCondAlg.cxx:132
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
SiDetectorElementCollection.h
SCTSiPropertiesCondAlg::m_temperatureDefault
DoubleProperty m_temperatureDefault
Definition: SCTSiPropertiesCondAlg.h:35
SCTSiPropertiesCondAlg::m_SCTDetEleCollKey
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_SCTDetEleCollKey
Definition: SCTSiPropertiesCondAlg.h:39
SCTSiPropertiesCondAlg::initialize
virtual StatusCode initialize() override final
Definition: SCTSiPropertiesCondAlg.cxx:20
SG::ReadCondHandleKey< SCT_DCSFloatCondData >
SCT_ID
Definition: SCT_ID.h:68
ISiliconConditionsTool.h
SCTSiPropertiesCondAlg::m_readKeyHV
SG::ReadCondHandleKey< SCT_DCSFloatCondData > m_readKeyHV
Definition: SCTSiPropertiesCondAlg.h:38
SCTSiPropertiesCondAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: SCTSiPropertiesCondAlg.cxx:42
SG::WriteCondHandleKey< InDet::SiliconPropertiesVector >
SiliconPropertiesVector.h
SCTSiPropertiesCondAlg::m_temperatureMin
DoubleProperty m_temperatureMin
Definition: SCTSiPropertiesCondAlg.h:33
SCTSiPropertiesCondAlg::m_forceGeoModel
BooleanProperty m_forceGeoModel
Definition: SCTSiPropertiesCondAlg.h:36
SCTSiPropertiesCondAlg::SCTSiPropertiesCondAlg
SCTSiPropertiesCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: SCTSiPropertiesCondAlg.cxx:14