ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArExample
LArCalibProcessing
python
LArStripsXtalkCorrConfig.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
2
3
from
AthenaConfiguration.ComponentFactory
import
CompFactory
4
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
5
6
def
LArStripsXtalkCorrCfg
(flags,KeyList):
7
result=ComponentAccumulator()
8
9
#Need geometry for neighbors
10
from
LArGeoAlgsNV.LArGMConfig
import
LArGMCfg
11
result.merge(LArGMCfg(flags))
12
13
theLArStripsCrossTalkCorrector = CompFactory.LArStripsCrossTalkCorrector()
14
theLArStripsCrossTalkCorrector.KeyList = KeyList
15
theLArStripsCrossTalkCorrector.ADCsaturation = 4095
16
theLArStripsCrossTalkCorrector.NoXtalkCorr=[
"deadReadout"
,
"deadPhys"
,
"deadCalib"
,
"almostDead"
]
17
#Note: The old-style config for ramp runs does not include 'deadPhys' in the DontUseForXtalkCorr list,
18
# while the old-style calib of delay runs does contain it. I assueme a mistake in the old config
19
if
len(KeyList)
and
KeyList[0] ==
"LOW"
:
20
theLArStripsCrossTalkCorrector.DontUseForXtalkCorr=[
"short"
,
"peculiarCalibrationLine"
,
"deadReadout"
,
"deadPhys"
]
21
else
:
22
theLArStripsCrossTalkCorrector.DontUseForXtalkCorr=[
"short"
,
"deadReadout"
,
"deadPhys"
]
23
theLArStripsCrossTalkCorrector.AcceptableDifference=25.0
#in per-cent
24
#theLArStripsCrossTalkCorrector.PedestalKey="LArPedestal"
25
result.addEventAlgo(theLArStripsCrossTalkCorrector)
26
27
return
result
python.LArStripsXtalkCorrConfig.LArStripsXtalkCorrCfg
LArStripsXtalkCorrCfg(flags, KeyList)
Definition
LArStripsXtalkCorrConfig.py:6
Generated on
for ATLAS Offline Software by
1.17.0