|
SND@LHC Software
|
Variables | |
| parser | |
| type | |
| str | |
| help | |
| required | |
| nargs | |
| int | |
| default | |
| float | |
| args = parser.parse_args() | |
| client = pymongo.MongoClient("sndrundb.cern.ch") | |
| db = client.sndrundb | |
| list | pipeline = [] |
| dict | run_length_expr = {"$dateDiff": {"startDate": "$start", "endDate": "$stop", "unit": "minute"}} |
| dict | projection |
| result = list(db["EcsData"].aggregate(pipeline)) | |
| list | include_pipeline = [] |
| include_result = list(db["EcsData"].aggregate(include_pipeline)) | |
| key | |
| now = datetime.now() | |
| root = ET.Element("runlist") | |
| meta_data = ET.SubElement(root, "meta") | |
| text | |
| selection = ET.SubElement(meta_data, "selection") | |
| runs = ET.SubElement(root, "runs") | |
| int | n_runs = 0 |
| totals = defaultdict(int) | |
| this_run = ET.SubElement(runs, "run") | |
| data = run[field_name] | |
| stats = ET.SubElement(meta_data, "statistics") | |
| tree = ET.ElementTree(root) | |
| space | |
| encoding | |
| xml_declaration | |
| makeRunListDB.args = parser.parse_args() |
Definition at line 24 of file makeRunListDB.py.
| makeRunListDB.client = pymongo.MongoClient("sndrundb.cern.ch") |
Definition at line 26 of file makeRunListDB.py.
| makeRunListDB.data = run[field_name] |
Definition at line 131 of file makeRunListDB.py.
| makeRunListDB.db = client.sndrundb |
Definition at line 27 of file makeRunListDB.py.
| makeRunListDB.default |
Definition at line 13 of file makeRunListDB.py.
| makeRunListDB.encoding |
Definition at line 150 of file makeRunListDB.py.
| makeRunListDB.float |
Definition at line 14 of file makeRunListDB.py.
| makeRunListDB.help |
Definition at line 11 of file makeRunListDB.py.
| list makeRunListDB.include_pipeline = [] |
Definition at line 96 of file makeRunListDB.py.
| makeRunListDB.include_result = list(db["EcsData"].aggregate(include_pipeline)) |
Definition at line 100 of file makeRunListDB.py.
| makeRunListDB.int |
Definition at line 12 of file makeRunListDB.py.
| makeRunListDB.key |
Definition at line 104 of file makeRunListDB.py.
| makeRunListDB.meta_data = ET.SubElement(root, "meta") |
Definition at line 112 of file makeRunListDB.py.
| int makeRunListDB.n_runs = 0 |
Definition at line 122 of file makeRunListDB.py.
| makeRunListDB.nargs |
Definition at line 12 of file makeRunListDB.py.
| makeRunListDB.now = datetime.now() |
Definition at line 107 of file makeRunListDB.py.
| makeRunListDB.parser |
Definition at line 8 of file makeRunListDB.py.
| list makeRunListDB.pipeline = [] |
Definition at line 29 of file makeRunListDB.py.
| dict makeRunListDB.projection |
Definition at line 78 of file makeRunListDB.py.
| makeRunListDB.required |
Definition at line 11 of file makeRunListDB.py.
Definition at line 93 of file makeRunListDB.py.
| makeRunListDB.root = ET.Element("runlist") |
Definition at line 110 of file makeRunListDB.py.
| dict makeRunListDB.run_length_expr = {"$dateDiff": {"startDate": "$start", "endDate": "$stop", "unit": "minute"}} |
Definition at line 75 of file makeRunListDB.py.
| makeRunListDB.runs = ET.SubElement(root, "runs") |
Definition at line 119 of file makeRunListDB.py.
| makeRunListDB.selection = ET.SubElement(meta_data, "selection") |
Definition at line 115 of file makeRunListDB.py.
| makeRunListDB.space |
Definition at line 149 of file makeRunListDB.py.
| makeRunListDB.stats = ET.SubElement(meta_data, "statistics") |
Definition at line 143 of file makeRunListDB.py.
| makeRunListDB.str |
Definition at line 11 of file makeRunListDB.py.
| makeRunListDB.text |
Definition at line 113 of file makeRunListDB.py.
| makeRunListDB.this_run = ET.SubElement(runs, "run") |
Definition at line 127 of file makeRunListDB.py.
| makeRunListDB.totals = defaultdict(int) |
Definition at line 123 of file makeRunListDB.py.
| makeRunListDB.tree = ET.ElementTree(root) |
Definition at line 148 of file makeRunListDB.py.
| makeRunListDB.type |
Definition at line 11 of file makeRunListDB.py.
| makeRunListDB.xml_declaration |
Definition at line 150 of file makeRunListDB.py.