Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include branch split level in edmDumpEventContent --all #45405

Merged
merged 1 commit into from
Jul 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions FWCore/PythonUtilities/scripts/edmDumpEventContent
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ class Branch (object):
self.label = pieces[2]
self.process = pieces[3]
self.fullname = "_".join (pieces)
self.splitlevel = branchInfo.GetSplitLevel()
# if we're past a regex list, then make sure we've got a match
if not regexList:
# nothing more to do
Expand Down Expand Up @@ -108,7 +109,8 @@ class Branch (object):
lengthDict = { 'type' : [7, 35],
'module' : [7, 25],
'label' : [7, 15],
'process' : [7, 15] }
'process' : [7, 15],
'fullname': [7, 50]}
# Since we want this script to print out the columns in the
# order that we want and not some random order, we specify
# that order here.
Expand Down Expand Up @@ -138,7 +140,13 @@ class Branch (object):
Branch.form += ')-%ds ' % lengthDict[piece][0]
if Branch.mode == 'all':
# name
Branch.form += ' %(fullname)s'
Branch.form += ' %('
if useMin:
Branch.form += 'fullname)-%ds' % min ( lengthDict['fullname'] )
else:
Branch.form += 'fullname)-%ds' % lengthDict['fullname'][0]
# split level
Branch.form += ' %(splitlevel)s'


@staticmethod
Expand All @@ -149,7 +157,8 @@ class Branch (object):
'module' : 'Module',
'label' : 'Label',
'process' : 'Process',
'fullname' : 'Full Name'}
'fullname' : 'Full Name',
'splitlevel' : 'Split level'}
print(title)
print('-' * len(title))
for branch in branchList:
Expand All @@ -164,7 +173,7 @@ if __name__ == "__main__":
help='print out only branch names')
nameAllGroup.add_argument('--all', dest='all', action='store_true',
help='Print out everything: type, module, label, '\
'process, and branch name')
'process, branch name, and branch split level')
parser.add_argument('--lfn', dest='lfn', action='store_true',
help="Force LFN2PFN translation (usually not necessary)")
lumiRunGroup = parser.add_mutually_exclusive_group()
Expand Down