ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonConditions
MuonCondGeneral
MuonCondAlg
src
AlignmentErrorDbAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
#ifndef MUONCONDSVC_MUONALIGNMENTERRORDBALG_H
5
#define MUONCONDSVC_MUONALIGNMENTERRORDBALG_H
6
7
#include <GaudiKernel/EventIDRange.h>
8
#include "
AthenaBaseComps/AthCondAlgorithm.h
"
9
#include "
StoreGate/ReadCondHandleKey.h
"
10
#include "
StoreGate/WriteCondHandleKey.h
"
11
#include "
AthenaPoolUtilities/CondAttrListCollection.h
"
12
#include "
MuonAlignmentData/MuonAlignmentErrorData.h
"
13
#include <Identifier/Identifier.h>
14
#include <unordered_map>
15
#include "
MuonIdHelpers/IMuonIdHelperSvc.h
"
16
#include "
MuonIdHelpers/MuonIdHelper.h
"
17
#include "
MuonCalibITools/IIdToFixedIdTool.h
"
21
namespace
Muon
{
22
class
AlignmentErrorDbAlg
:
public
AthCondAlgorithm
{
23
public
:
24
25
using
AthCondAlgorithm::AthCondAlgorithm;
26
~AlignmentErrorDbAlg
()
override
=
default
;
27
28
StatusCode
initialize
()
override
;
29
StatusCode
execute
(
const
EventContext& ctx)
const override
;
30
31
private
:
32
std::tuple<std::string, EventIDRange>
getDbClobContent
(
const
EventContext& ctx)
const
;
33
std::tuple<std::string, EventIDRange>
getFileClobContent
()
const
;
34
35
SG::ReadCondHandleKey<CondAttrListCollection>
m_readKey
{
this
,
"ReadKey"
,
"/MUONALIGN/ERRS"
,
36
"Key of input muon alignment error condition data"
};
37
SG::WriteCondHandleKey<MuonAlignmentErrorData>
m_writeKey
{
this
,
"WriteKey"
,
"MuonAlignmentErrorData"
,
38
"Key of output muon alignment error condition data"
};
39
Gaudi::Property<std::string>
m_clobFileOverride
{
this
,
"clobFileOverride"
,
""
,
40
"Set this to the location of a CLOB file to override the DB setting"
};
41
ServiceHandle<Muon::IMuonIdHelperSvc>
m_idHelperSvc
{
this
,
"MuonIdHelperSvc"
,
"Muon::MuonIdHelperSvc/MuonIdHelperSvc"
};
42
ToolHandle<MuonCalib::IIdToFixedIdTool>
m_idTool
{
this
,
"idTool"
,
"MuonCalib::IdToFixedIdTool"
};
43
// SOME USEFUL METHODS //
44
// GET STATION EXACT NAME, FROM:
45
// https://gitlab.cern.ch/Asap/AsapModules/Track/MuonAlignTrk/-/blob/master/MuonAlignTrk/MuonFixedLongId.h?ref_type=heads
46
std::string
hardwareName
(
MuonCalib::MuonFixedLongId
calibId)
const
;
47
std::string_view
side
(
MuonCalib::MuonFixedLongId
calibId)
const
;
48
std::string
sectorString
(
MuonCalib::MuonFixedLongId
calibId)
const
;
49
int
sector
(
MuonCalib::MuonFixedLongId
calibId)
const
;
50
int
hardwareEta
(
MuonCalib::MuonFixedLongId
calibId)
const
;
51
bool
isSmallSector
(
MuonCalib::MuonFixedLongId
calibId)
const
;
52
void
generateMap
(
const
auto
& helper_obj,
const
auto
& idTool,
MuonAlignmentErrorData::MuonAlignmentErrorRuleCache
& adev_new,
53
std::vector<MuonAlignmentErrorData::MuonAlignmentErrorRule>& devVec)
const
;
54
};
55
}
56
#endif
AthCondAlgorithm.h
Base class for conditions algorithms.
CondAttrListCollection.h
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
IIdToFixedIdTool.h
IMuonIdHelperSvc.h
MuonAlignmentErrorData.h
MuonIdHelper.h
ReadCondHandleKey.h
WriteCondHandleKey.h
AthCondAlgorithm
Base class for conditions algorithms.
Definition
AthCondAlgorithm.h:22
MuonCalib::MuonFixedLongId
Definition
MuonFixedLongId.h:50
Muon::AlignmentErrorDbAlg
Definition
AlignmentErrorDbAlg.h:22
Muon::AlignmentErrorDbAlg::sectorString
std::string sectorString(MuonCalib::MuonFixedLongId calibId) const
Definition
AlignmentErrorDbAlg.cxx:257
Muon::AlignmentErrorDbAlg::m_idTool
ToolHandle< MuonCalib::IIdToFixedIdTool > m_idTool
Definition
AlignmentErrorDbAlg.h:42
Muon::AlignmentErrorDbAlg::m_writeKey
SG::WriteCondHandleKey< MuonAlignmentErrorData > m_writeKey
Definition
AlignmentErrorDbAlg.h:37
Muon::AlignmentErrorDbAlg::isSmallSector
bool isSmallSector(MuonCalib::MuonFixedLongId calibId) const
Definition
AlignmentErrorDbAlg.cxx:274
Muon::AlignmentErrorDbAlg::sector
int sector(MuonCalib::MuonFixedLongId calibId) const
Definition
AlignmentErrorDbAlg.cxx:265
Muon::AlignmentErrorDbAlg::initialize
StatusCode initialize() override
Definition
AlignmentErrorDbAlg.cxx:13
Muon::AlignmentErrorDbAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition
AlignmentErrorDbAlg.h:41
Muon::AlignmentErrorDbAlg::execute
StatusCode execute(const EventContext &ctx) const override
Definition
AlignmentErrorDbAlg.cxx:22
Muon::AlignmentErrorDbAlg::m_readKey
SG::ReadCondHandleKey< CondAttrListCollection > m_readKey
Definition
AlignmentErrorDbAlg.h:35
Muon::AlignmentErrorDbAlg::hardwareEta
int hardwareEta(MuonCalib::MuonFixedLongId calibId) const
Definition
AlignmentErrorDbAlg.cxx:298
Muon::AlignmentErrorDbAlg::~AlignmentErrorDbAlg
~AlignmentErrorDbAlg() override=default
Muon::AlignmentErrorDbAlg::hardwareName
std::string hardwareName(MuonCalib::MuonFixedLongId calibId) const
Definition
AlignmentErrorDbAlg.cxx:238
Muon::AlignmentErrorDbAlg::getDbClobContent
std::tuple< std::string, EventIDRange > getDbClobContent(const EventContext &ctx) const
Definition
AlignmentErrorDbAlg.cxx:195
Muon::AlignmentErrorDbAlg::getFileClobContent
std::tuple< std::string, EventIDRange > getFileClobContent() const
Definition
AlignmentErrorDbAlg.cxx:224
Muon::AlignmentErrorDbAlg::side
std::string_view side(MuonCalib::MuonFixedLongId calibId) const
Definition
AlignmentErrorDbAlg.cxx:253
Muon::AlignmentErrorDbAlg::generateMap
void generateMap(const auto &helper_obj, const auto &idTool, MuonAlignmentErrorData::MuonAlignmentErrorRuleCache &adev_new, std::vector< MuonAlignmentErrorData::MuonAlignmentErrorRule > &devVec) const
Definition
AlignmentErrorDbAlg.cxx:160
Muon::AlignmentErrorDbAlg::m_clobFileOverride
Gaudi::Property< std::string > m_clobFileOverride
Definition
AlignmentErrorDbAlg.h:39
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
SG::WriteCondHandleKey
Definition
WriteCondHandleKey.h:22
ServiceHandle
Definition
ClusterMakerTool.h:36
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition
TrackSystemController.h:46
MuonAlignmentErrorData::MuonAlignmentErrorRuleCache
Definition
MuonAlignmentErrorData.h:32
Generated on
for ATLAS Offline Software by
1.17.0