3 from DerivationFrameworkCore.JetTriggerContentRun3
import JetTriggerContentRun3
6 excludedTriggerContentForTLA = [
11 additionalTriggerContentForTLA = []
16 for excludedStr
in exclusionList:
17 if excludedStr
in content:
25 JetTriggerContentRun3TLA = [
26 element
for element
in JetTriggerContentRun3
30 for additionalContent
in additionalTriggerContentForTLA:
32 if "Aux" not in additionalContent:
33 JetTriggerContentRun3TLA.append(additionalContent)
38 matchedAuxElementIdx = -1
39 for idx, element
in enumerate(JetTriggerContentRun3TLA):
40 if additionalContent.split(
".")[0] == element.split(
".")[0]:
41 matchedAuxElementIdx = idx
43 if matchedAuxElementIdx < 0:
45 JetTriggerContentRun3TLA.append(additionalContent)
48 if additionalContent.split(
".")[-1] ==
"" and len(additionalContent.split(
".")) == 2:
50 JetTriggerContentRun3TLA[matchedAuxElementIdx] = additionalContent
53 JetTriggerContentRun3TLA[matchedAuxElementIdx] =
".".
join([additionalContent.split(
".")[0]] +
list(
set(additionalContent.split(
".")[1:] + JetTriggerContentRun3TLA[matchedAuxElementIdx].
split(
".")[1:])))
57 JetTriggerContentRun3TLA =
list(
set(JetTriggerContentRun3TLA))