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 14 of file update_CPContent.py.

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

◆ mergeList()

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

Definition at line 21 of file update_CPContent.py.

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

Variable Documentation

◆ kk

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

Definition at line 50 of file update_CPContent.py.

◆ list1

list update_CPContent.list1 = []

Definition at line 43 of file update_CPContent.py.

◆ nc

def update_CPContent.nc = makeContent(kk)

Definition at line 51 of file update_CPContent.py.

update_CPContent.makeContent
def makeContent(l)
Definition: update_CPContent.py:14
plotBeamSpotVxVal.range
range
Definition: plotBeamSpotVxVal.py:195
update_CPContent.mergeList
def mergeList(l1, l2, excludeList=[])
Definition: update_CPContent.py:21