ATLAS Offline Software
Loading...
Searching...
No Matches
EventInfoClearAlgConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
2
3from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4from AthenaConfiguration.ComponentFactory import CompFactory
5from LArCellRec.LArTimeVetoAlgConfig import LArTimeVetoAlgCfg
6from IOVDbSvc.IOVDbSvcConfig import addOverride
7
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