ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArCabling
python
LArHVCablingConfig.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2
3
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
4
from
AthenaConfiguration.ComponentFactory
import
CompFactory
5
from
IOVDbSvc.IOVDbSvcConfig
import
addFolders
6
7
def
LArHVCablingCfg
(flags):
8
result=ComponentAccumulator()
9
if
flags.Input.isMC:
10
result.merge(addFolders(flags,[
"/LAR/Identifier/HVLineToElectrodeMap<tag>LARHVLineToElectrodeMap-001</tag>"
],
"LAR_OFL"
,
11
className=
"AthenaAttributeList"
))
12
13
larHVIdMappingAlg=CompFactory.LArHVIdMappingAlg(ReadKey=
"/LAR/Identifier/HVLineToElectrodeMap"
,WriteKey=
"LArHVIdMap"
)
14
result.addCondAlgo(larHVIdMappingAlg)
15
16
else
:
17
#Data case
18
result.merge(addFolders(flags,[
"/LAR/IdentifierOfl/HVLineToElectrodeMap"
],
"LAR_OFL"
, className=
"AthenaAttributeList"
))
19
hvmapalg = CompFactory.LArHVIdMappingAlg(ReadKey=
"/LAR/IdentifierOfl/HVLineToElectrodeMap"
,WriteKey=
"LArHVIdMap"
)
20
result.addCondAlgo(hvmapalg)
21
22
return
result
LArHVCablingConfig.LArHVCablingCfg
LArHVCablingCfg(flags)
Definition
LArHVCablingConfig.py:7
Generated on
for ATLAS Offline Software by
1.17.0