ATLAS Offline Software
Functions | Variables
update_CPContent Namespace Reference

Functions

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

Variables

list list1 = []
 
def kk = mergeList(list1, mcc.MuonsCPContent, ['EventInfo', 'EventInfoAux'])
 
def nc = makeContent(kk)
 

Function Documentation

◆ makeContent()

def update_CPContent.makeContent (   l)

Definition at line 13 of file update_CPContent.py.

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

◆ mergeList()

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

Definition at line 20 of file update_CPContent.py.

20 def 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 
41 ifile=sys.argv[1]

Variable Documentation

◆ kk

def 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

def update_CPContent.nc = makeContent(kk)

Definition at line 50 of file update_CPContent.py.

update_CPContent.makeContent
def makeContent(l)
Definition: update_CPContent.py:13
plotBeamSpotVxVal.range
range
Definition: plotBeamSpotVxVal.py:194
update_CPContent.mergeList
def mergeList(l1, l2, excludeList=[])
Definition: update_CPContent.py:20