ATLAS Offline Software
Loading...
Searching...
No Matches
PixelSiLorentzAngleCondAlg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
10
11#ifndef PIXELSILORENTZANGLECONDALG
12#define PIXELSILORENTZANGLECONDALG
13
15
19#include "GeoPrimitives/GeoPrimitives.h" //for Amg::Vector3D
20
24#include "GaudiKernel/SystemOfUnits.h" //for Gaudi::Units::tesla
26
28
30// MagField cache
34
36 public:
37 PixelSiLorentzAngleCondAlg(const std::string& name, ISvcLocator* pSvcLocator);
38 virtual ~PixelSiLorentzAngleCondAlg() = default;
39 virtual StatusCode initialize() override;
40 virtual StatusCode execute(const EventContext& ctx) const override;
41 virtual StatusCode finalize() override;
42
43 private:
44
45 Gaudi::Property<std::string> m_pixelIDName
46 {this, "PixelIDName", "PixelID", "Pixel ID name"};
47
48
50 {this, "ReadKeyeTemp", "PixelDCSTempCondData", "Key of input sensor temperature conditions folder"};
51
53 {this, "ReadKeyHV", "PixelDCSHVCondData", "Key of input bias voltage conditions folder"};
54
56 {this, "ReadKeyBFieldSensor", "/EXT/DCS/MAGNETS/SENSORDATA", "Key of input B-field sensor"};
57
59 {this, "PixelDetEleCollKey", "PixelDetectorElementCollection", "Key of SiDetectorElementCollection for Pixel"};
60
62 {this, "WriteKey", "PixelSiLorentzAngleCondData", "Key of output SiLorentzAngleCondData"};
63
64 ToolHandle<ISiPropertiesTool> m_siPropertiesTool
65 {this, "SiPropertiesTool", "SiPropertiesTool", "Tool to retrieve SiProperties"};
66
67 // Properties
68 DoubleProperty m_nominalField {this, "NominalField", 2.0834*Gaudi::Units::tesla, "Default nominal field"};
69 BooleanProperty m_useMagFieldCache{this, "UseMagFieldCache", true};
70 BooleanProperty m_useMagFieldDcs{this, "UseMagFieldDcs", true};
71 BooleanProperty m_disable3D{this, "Disable3DCorrection", false};
72
73 unsigned int m_maxHash{};
74
76// Amg::Vector3D getMagneticField(const InDetDD::SiDetectorElement* element) const;
78 const InDetDD::SiDetectorElement* element) const;
79 // Read handle for conditions object to get the field cache
80 SG::ReadCondHandleKey<AtlasFieldCacheCondObj> m_fieldCondObjInputKey {this, "AtlasFieldCacheCondObj", "fieldCondObj",
81 "Name of the Magnetic Field conditions object key"};
82
83};
84
85#endif
Base class for conditions algorithms.
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
Store pixel HV data in PixelDCSHVData.
Store pixel temperature data in PixelDCSTempData.
Base class for conditions algorithms.
Class to hold geometrical description of a silicon detector element.
Local cache for magnetic field (based on MagFieldServices/AtlasFieldSvcTLS.h)
Gaudi::Property< std::string > m_pixelIDName
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_pixelDetEleCollKey
virtual StatusCode execute(const EventContext &ctx) const override
SG::ReadCondHandleKey< PixelDCSHVData > m_readKeyHV
Amg::Vector3D getMagneticField(MagField::AtlasFieldCache &m_fieldCache, const InDetDD::SiDetectorElement *element) const
SG::WriteCondHandleKey< SiLorentzAngleCondData > m_writeKey
SG::ReadCondHandleKey< CondAttrListCollection > m_readKeyBFieldSensor
virtual StatusCode finalize() override
ToolHandle< ISiPropertiesTool > m_siPropertiesTool
virtual StatusCode initialize() override
SG::ReadCondHandleKey< AtlasFieldCacheCondObj > m_fieldCondObjInputKey
virtual ~PixelSiLorentzAngleCondAlg()=default
PixelSiLorentzAngleCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
SG::ReadCondHandleKey< PixelDCSTempData > m_readKeyTemp
Eigen::Matrix< double, 3, 1 > Vector3D