9#ifndef MAGFIELDSERVICES_ATLASFIELDMAPCONDALG_H
10#define MAGFIELDSERVICES_ATLASFIELDMAPCONDALG_H
28 StatusCode
start() override final;
45 "MagneticFieldMaps/bfieldmap_7730_20400_14m.root"
48 "MagneticFieldMaps/bfieldmap_7730_0_14m.root"
51 "MagneticFieldMaps/bfieldmap_0_20400_14m.root"
63 StatusCode
updateFieldMap(
const EventContext& ctx, Cache& cache)
const;
69 EventIDRange& rangeDCS)
const;
75 "MagneticFieldMaps/bfieldmap_7730_20400_14m.root",
76 "File storing the full magnetic field map"
81 "MagneticFieldMaps/bfieldmap_7730_0_14m.root",
82 "File storing the solenoid-only magnetic field map"
87 "MagneticFieldMaps/bfieldmap_0_20400_14m.root",
88 "File storing the toroid-only magnetic field map"
94 "Nominal solenoid current (A)" };
98 "Nominal toroid current (A)" };
105 "Minimum solenoid current (A) for which solenoid is considered ON"
111 "Minimum toroid current (A) for which toroid is considered ON"
119 "Load the magnetic field map at start"
127 "Get magnetic field map filenames from COOL"
134 "COOLMapsFolderName",
135 "/GLOBAL/BField/Maps",
136 "Name of the COOL folder containing field maps"
143 "AtlasFieldMapCondObj",
145 "Name of key for the Magnetic Field conditions object with the map file "
153 "COOLCurrentsFolderName",
154 "/EXT/DCS/MAGNETS/SENSORDATA",
155 "Name of the COOL folder containing magnet currents"
Base class for conditions algorithms.
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
Base class for conditions algorithms.
StatusCode start() override final
Gaudi::Property< std::string > m_toroMapFilename
Gaudi::Property< double > m_mapToroCurrent
AtlasFieldMapCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
StatusCode checkCurrentFromConditions(const EventContext &ctx, double &soleCurrent, double &toroCurrent, EventIDRange &rangeDCS) const
StatusCode initialize() override final
StatusCode updateFieldMap(const EventContext &ctx, Cache &cache) const
Gaudi::Property< bool > m_loadMapOnStart
virtual ~AtlasFieldMapCondAlg()
Gaudi::Property< std::string > m_soleMapFilename
Gaudi::Property< std::string > m_fullMapFilename
map file names - if not read from cool
SG::ReadCondHandleKey< CondAttrListCollection > m_mapsInputKey
Gaudi::Property< double > m_soleMinCurrent
SG::WriteCondHandleKey< AtlasFieldMapCondObj > m_mapCondObjOutputKey
Gaudi::Property< double > m_toroMinCurrent
Gaudi::Property< bool > m_useMapsFromCOOL
Gaudi::Property< double > m_mapSoleCurrent
nominal current for the maps
SG::ReadCondHandleKey< CondAttrListCollection > m_currInputKey
StatusCode execute(const EventContext &ctx) const override final
Local cache for magnetic field (based on MagFieldServices/AtlasFieldSvcTLS.h)
std::unique_ptr< MagField::AtlasFieldMap > m_fieldMap
EventIDRange m_mapCondObjOutputRange
std::string m_fullMapFilename
std::string m_toroMapFilename
std::string m_soleMapFilename