ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArExample
LArCalibProcessing
python
LArCalibBaseConfig.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
2
3
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
4
import
os
5
6
def
LArCalibBaseCfg
(flags):
7
result=ComponentAccumulator()
8
9
from
LArGeoAlgsNV.LArGMConfig
import
LArGMCfg
10
result.merge(LArGMCfg(flags))
11
12
if
flags.LArCalib.isSC:
13
#Setup SuperCell cabling
14
from
LArCabling.LArCablingConfig
import
LArOnOffIdMappingSCCfg, LArCalibIdMappingSCCfg, LArLATOMEMappingCfg
15
result.merge(LArOnOffIdMappingSCCfg(flags))
16
result.merge(LArCalibIdMappingSCCfg(flags))
17
result.merge(LArLATOMEMappingCfg(flags))
18
else
:
19
#Setup regular cabling
20
from
LArCabling.LArCablingConfig
import
LArOnOffIdMappingCfg, LArCalibIdMappingCfg
21
result.merge(LArOnOffIdMappingCfg(flags))
22
result.merge(LArCalibIdMappingCfg(flags))
23
24
#Set up bad-channel config
25
from
LArCalibProcessing.LArCalib_BadChannelConfig
import
LArCalibBadChannelCfg
26
27
result.merge(LArCalibBadChannelCfg(flags))
28
if
"FRONTIER_SERVER"
not
in
os.environ:
29
# when running offline job at P1,
30
# point to the location where PoolCat_oflcond.xml can be found
31
p =
":/det/lar/project/databases/jobsDatabase/"
32
if
p
not
in
os.environ[
"DATAPATH"
]:
33
os.environ[
"DATAPATH"
] += p
34
return
result
35
36
37
38
39
#Helper method to maipulate channel selection string
40
def
chanSelStr
(flags):
41
inp=flags.LArCalib.Input.ChannelSelection
42
if
inp==
""
:
return
""
43
if
inp.startswith(
"<channelSelection>"
):
return
inp
44
45
return
"<channelSelection>"
+inp+
"</channelSelection>"
python.LArCalibBaseConfig.chanSelStr
chanSelStr(flags)
Definition
LArCalibBaseConfig.py:40
python.LArCalibBaseConfig.LArCalibBaseCfg
LArCalibBaseCfg(flags)
Definition
LArCalibBaseConfig.py:6
Generated on
for ATLAS Offline Software by
1.17.0