Skip to content
Snippets Groups Projects
Commit dfc55a95 authored by Adam Edward Barton's avatar Adam Edward Barton
Browse files

Merge branch 'add-comment' into 'master'

Add comments to confusing code

See merge request !47684
parents e732a4d8 3e590e18
No related branches found
No related tags found
5 merge requests!69091Fix correlated smearing bug in JER in JetUncertainties in 22.0,!58791DataQualityConfigurations: Modify L1Calo config for web display,!51674Fixing hotSpotInHIST for Run3 HIST,!50012RecExConfig: Adjust log message levels from GetRunNumber and GetLBNumber,!47684Add comments to confusing code
......@@ -77,13 +77,23 @@ def getBJetSequence(jc_name):
)
# Conversion of flavour-tagging algorithms from new to old-style
# 1) We need to do the alogorithms manually and then remove them from the CA
# 1) We need to do the algorithms manually and then remove them from the CA
#
# Please see the discussion on
# https://gitlab.cern.ch/atlas/athena/-/merge_requests/46951#note_4854474
# and the description in that merge request.
flavourTaggingAlgs = [conf2toConfigurable(alg)
for alg in findAllAlgorithms(acc_flavourTaggingAlgs._sequence)]
bJetBtagSequence = seqAND( f"bJetBtagSequence_{jc_name}", secondStageAlgs + flavourTaggingAlgs )
# you can't use accumulator.wasMerged() here because the above
# code only merged the algorithms. Instead we rely on this hacky
# looking construct.
acc_flavourTaggingAlgs._sequence = []
# 2) the rest is done by the generic helper
# this part is needed to accomodate parts of flavor tagging that
# aren't algorithms, e.g. JetTagCalibration.
appendCAtoAthena(acc_flavourTaggingAlgs)
InputMakerAlg.ViewNodeName = f"bJetBtagSequence_{jc_name}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment