Functions | |
def | columnescape |
def | read_objects_root |
def | save_keyvalue |
def | tosqlite |
def | treetotable |
Variables | |
tuple | args = parser.parse_args() |
dictionary | basic_objects = {} |
tuple | db = sqlite3.connect(args.output) |
tuple | f = ROOT.TFile.Open(args.inputfile) |
tuple | inf = re.compile("([- \[])inf([,}\]])") |
tuple | nan = re.compile("([- \[])nan([,}\]])") |
tuple | parser = argparse.ArgumentParser(description="Convert arbitrary ROOT file to SQLite database, mapping TTrees to tables and converting TObjects to JSON.") |
def root2sqlite.columnescape | ( | s | ) |
def root2sqlite.read_objects_root | ( | rootfile | ) |
def root2sqlite.save_keyvalue | ( | dictionary, | |
name | |||
) |
Definition at line 100 of file root2sqlite.py.
References print(), read_objects_root(), tosqlite(), treetotable(), and betterConfigParser.unicode.
def root2sqlite.tosqlite | ( | x | ) |
Definition at line 23 of file root2sqlite.py.
References edmScanValgrind.buffer, and betterConfigParser.unicode.
Referenced by save_keyvalue(), and treetotable().
def root2sqlite.treetotable | ( | ttree, | |
name | |||
) |
Definition at line 54 of file root2sqlite.py.
References columnescape(), join(), print(), sistrip::SpyUtilities.range(), and tosqlite().
Referenced by save_keyvalue().
tuple root2sqlite.args = parser.parse_args() |
Definition at line 13 of file root2sqlite.py.
dictionary root2sqlite.basic_objects = {} |
Definition at line 18 of file root2sqlite.py.
tuple root2sqlite.db = sqlite3.connect(args.output) |
Definition at line 16 of file root2sqlite.py.
tuple root2sqlite.f = ROOT.TFile.Open(args.inputfile) |
Definition at line 15 of file root2sqlite.py.
tuple root2sqlite.inf = re.compile("([- \[])inf([,}\]])") |
Definition at line 20 of file root2sqlite.py.
tuple root2sqlite.nan = re.compile("([- \[])nan([,}\]])") |
Definition at line 21 of file root2sqlite.py.
tuple root2sqlite.parser = argparse.ArgumentParser(description="Convert arbitrary ROOT file to SQLite database, mapping TTrees to tables and converting TObjects to JSON.") |
Definition at line 9 of file root2sqlite.py.