ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Functions
EventInfoClearAlgConfig Namespace Reference
Functions
EventVetoCearAlgCfg
(flags)
Function Documentation
◆
EventVetoCearAlgCfg()
EventVetoCearAlgCfg
(
flags
)
Definition at line
8
of file
EventInfoClearAlgConfig.py
.
8
def
EventVetoCearAlgCfg(flags):
9
10
if
flags.Input.isMC:
#Do not run this in MC!
11
return
None
12
13
if
456729
not
in
flags.Input.RunNumbers:
14
return
None
15
16
#Possible improvement:
17
#Our AODFix infrastructure was designed to fix software problems. Here, we are fixing a conditions problem.
18
#Ideally, we should apply this AODFix only if the input-AOD was made using global conditions tags that
19
#contains a folder-level tag for the folder /LAR/BadChannelsOfl/EventVeto that is older than
20
#LARBadChannelsOflEventVeto-RUN2-UPD4-18
21
#But the format of global conditions tags is much less well defined as the format of athena-release numbers,
22
#moreover the future derivation-campaigns may use CREST not COOL, so I don't know how to code this in a
23
#future-proof way
24
25
#print("Conditions tag this data was made with:",flags.IOVDb.GlobalTag)
26
27
beginSeq = CompFactory.AthSequencer(
'AthBeginSeq'
, Sequential=
True
)
28
result=ComponentAccumulator(sequence=beginSeq)
29
result.addEventAlgo(CompFactory.EventInfoClearAlg())
30
31
result.merge(LArTimeVetoAlgCfg(flags))
32
result.merge(addOverride(flags,
"/LAR/BadChannelsOfl/EventVeto"
,
"LARBadChannelsOflEventVeto-RUN2-UPD4-18"
))
33
34
return
result
Generated on
for ATLAS Offline Software by
1.17.0