Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Functions | Variables
TIDAparseGRL Namespace Reference

Functions

def main (filePath)
 

Variables

 __author__
 
 usage
 
 opts
 
 args
 
 filePathIn
 

Function Documentation

◆ main()

def TIDAparseGRL.main (   filePath)
A script that takes in and parses a GRL xml file, and outputs a list of good lumi blocks.
The lines are formatted: RUNNUMBER, STARTLUMIBLOCK, ENDLUMIBLOCK.

Definition at line 8 of file TIDAparseGRL.py.

8 def main(filePath) :
9  """A script that takes in and parses a GRL xml file, and outputs a list of good lumi blocks.
10 The lines are formatted: RUNNUMBER, STARTLUMIBLOCK, ENDLUMIBLOCK."""
11  GRLlist = open(filePath)
12  runNum = 0
13  for line in GRLlist :
14  if '<Run>' in line :
15  splitLine = line.split('<Run>')
16  splitLine = splitLine[1].split('</Run>')
17  runNum = splitLine[0]
18 
19  if '<LBRange Start="' in line :
20  line = line.replace('<LBRange Start="', runNum+', ')
21  line = line.replace('" End="', ', ')
22  line = line.replace('"/>', '')
23  line = line.strip()
24  print line
25 

Variable Documentation

◆ __author__

TIDAparseGRL.__author__
private

Definition at line 3 of file TIDAparseGRL.py.

◆ args

TIDAparseGRL.args

Definition at line 31 of file TIDAparseGRL.py.

◆ filePathIn

TIDAparseGRL.filePathIn

Definition at line 45 of file TIDAparseGRL.py.

◆ opts

TIDAparseGRL.opts

Definition at line 31 of file TIDAparseGRL.py.

◆ usage

TIDAparseGRL.usage

Definition at line 27 of file TIDAparseGRL.py.

TIDAparseGRL.main
def main(filePath)
Definition: TIDAparseGRL.py:8
Trk::open
@ open
Definition: BinningType.h:40
Trk::split
@ split
Definition: LayerMaterialProperties.h:38