ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Calorimeter
CaloClusterCorrection
python
WriteCaloSwCorrections.py
Go to the documentation of this file.
1
#!/usr/bin/env athena.py
2
# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration.
3
#
4
# File: CaloClusterCorrection/python/WriteCaloSwCorrections.py
5
# Author: scott snyder <snyder@bnl.gov>
6
# Date: May 2024, from old config version
7
# Purpose: Write cluster correction constants to pool+cool.
8
#
9
10
11
CALOCORR_POOLFILE =
'CaloSwCorrections.pool.root'
12
CALOCORR_COOLFILE =
'swcool.db'
13
CaloSwCorrKeys = [
'ele55'
,
'ele35'
,
'ele37'
,
14
'gam55'
,
'gam35'
,
'gam37'
]
15
16
17
from
AthenaConfiguration.MainServicesConfig
import
\
18
MainServicesCfg
19
from
CaloClusterCorrection.WriteCorrectionsConfig
import
\
20
WriteCorrectionsFlags, WriteCorrectionsCfg
21
22
flags = WriteCorrectionsFlags (CALOCORR_COOLFILE)
23
cfg = MainServicesCfg (flags)
24
25
26
from
CaloClusterCorrection.CaloSwCorrections
import
CaloSwCorrections
27
from
CaloClusterCorrection.constants
import
CALOCORR_SW
28
(corr_output_list, tag_list, ca) =\
29
CaloSwCorrections.config_for_pool (flags,
30
CaloSwCorrKeys,
31
CALOCORR_SW)
32
cfg.merge (ca)
33
34
cfg.merge (WriteCorrectionsCfg (flags, CALOCORR_POOLFILE,
35
corr_output_list, tag_list))
36
37
38
sc = cfg.run (flags.Exec.MaxEvents)
39
import
sys
40
sys.exit (sc.isFailure())
Generated on
for ATLAS Offline Software by
1.17.0