ATLAS Offline Software
Loading...
Searching...
No Matches
update_CPContent Namespace Reference

Functions

 makeContent (l)
 mergeList (l1, l2, excludeList=[])

Variables

 ifile = sys.argv[1]
list list1 = []
 kk = mergeList(list1, mcc.MuonsCPContent, ['EventInfo', 'EventInfoAux'])
 nc = makeContent(kk)

Function Documentation

◆ makeContent()

update_CPContent.makeContent ( l)

Definition at line 13 of file update_CPContent.py.

13def makeContent(l):
14 ct = 'MuonsCPContent = [\n'
15 for i in l:
16 ct += '"'+i+'",\n'
17 ct += ']'
18 return ct
19

◆ mergeList()

update_CPContent.mergeList ( l1,
l2,
excludeList = [] )

Definition at line 20 of file update_CPContent.py.

20def mergeList(l1, l2, excludeList=[]):
21 l1a = []
22 for i in l1:
23 x = i.split('.')
24 tag=x[0]
25 found = False
26 for ji in range(len(l2)):
27 j = l2[ji]
28# for j in l2:
29 y = j.split('.')
30 if tag!=y[0]: continue
31 found = True
32 for m in x[1:]:
33 if m in y[1:]: continue
34 print (m, 'is not found for', tag)
35 l2[ji] += '.'+m
36 if (not found) and (not (tag in excludeList)):
37 print (tag, 'is not found')
38 l1a.append(i)
39 return l2+l1a
40

Variable Documentation

◆ ifile

update_CPContent.ifile = sys.argv[1]

Definition at line 41 of file update_CPContent.py.

◆ kk

update_CPContent.kk = mergeList(list1, mcc.MuonsCPContent, ['EventInfo', 'EventInfoAux'])

Definition at line 49 of file update_CPContent.py.

◆ list1

list update_CPContent.list1 = []

Definition at line 42 of file update_CPContent.py.

◆ nc

update_CPContent.nc = makeContent(kk)

Definition at line 50 of file update_CPContent.py.