{"size":0,"query":{"bool":{"must":[{"term":{"pr_id":18030}},{"terms":{"ctag":["p3583"]}},{"bool":{"must_not":[{"terms":{"status":["aborted","failed","broken","obsolete"]}}]}},{"term":{"primary_input":"aod"}}]}},"aggs":{"formats":{"filters":{"filters":{"DAOD_BPHY1":{"has_child":{"type":"output_dataset","query":{"term":{"data_format":"DAOD_BPHY1"}}} }, "DAOD_BPHY4" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_BPHY4" }} } }, "DAOD_EGAM9" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_EGAM9" }} } }, "DAOD_EXOT0" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_EXOT0" }} } }, "DAOD_EXOT6" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_EXOT6" }} } }, "DAOD_EXOT7" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_EXOT7" }} } }, "DAOD_HIGG4D5" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_HIGG4D5" }} } }, "DAOD_JETM9" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_JETM9" }} } }, "DAOD_STDM4" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_STDM4" }} } }, "DAOD_SUSY11" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_SUSY11" }} } }, "DAOD_TAUP1" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_TAUP1" }} } }, "DAOD_TOPQ2" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_TOPQ2" }} } }, "DAOD_TOPQ4" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_TOPQ4" }} } }, "DAOD_TOPQ5" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_TOPQ5" }} } }, "DAOD_BPHY5" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_BPHY5" }} } }, "DAOD_BPHY7" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_BPHY7" }} } }, "DAOD_EGAM1" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_EGAM1" }} } }, "DAOD_EGAM3" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_EGAM3" }} } }, "DAOD_EGAM4" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_EGAM4" }} } }, "DAOD_EGAM5" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_EGAM5" }} } }, "DAOD_EGAM7" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_EGAM7" }} } }, "DAOD_EXOT10" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_EXOT10" }} } }, "DAOD_EXOT12" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_EXOT12" }} } }, "DAOD_EXOT15" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_EXOT15" }} } }, "DAOD_EXOT19" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_EXOT19" }} } }, "DAOD_EXOT2" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_EXOT2" }} } }, "DAOD_EXOT21" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_EXOT21" }} } }, "DAOD_EXOT22" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_EXOT22" }} } }, "DAOD_EXOT5" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_EXOT5" }} } }, "DAOD_FTAG1" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_FTAG1" }} } }, "DAOD_FTAG3" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_FTAG3" }} } }, "DAOD_HIGG1D2" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_HIGG1D2" }} } }, "DAOD_HIGG2D5" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_HIGG2D5" }} } }, "DAOD_HIGG4D4" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_HIGG4D4" }} } }, "DAOD_HIGG4D6" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_HIGG4D6" }} } }, "DAOD_HIGG6D1" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_HIGG6D1" }} } }, "DAOD_HIGG6D2" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_HIGG6D2" }} } }, "DAOD_HIGG8D1" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_HIGG8D1" }} } }, "DAOD_JETM1" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_JETM1" }} } }, "DAOD_JETM10" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_JETM10" }} } }, "DAOD_JETM11" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_JETM11" }} } }, "DAOD_JETM12" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_JETM12" }} } }, "DAOD_JETM6" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_JETM6" }} } }, "DAOD_JETM7" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_JETM7" }} } }, "DAOD_MUON0" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_MUON0" }} } }, "DAOD_MUON1" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_MUON1" }} } }, "DAOD_MUON2" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_MUON2" }} } }, "DAOD_STDM2" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_STDM2" }} } }, "DAOD_STDM3" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_STDM3" }} } }, "DAOD_STDM5" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_STDM5" }} } }, "DAOD_STDM7" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_STDM7" }} } }, "DAOD_SUSY10" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_SUSY10" }} } }, "DAOD_SUSY12" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_SUSY12" }} } }, "DAOD_SUSY18" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_SUSY18" }} } }, "DAOD_SUSY3" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_SUSY3" }} } }, "DAOD_SUSY4" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_SUSY4" }} } }, "DAOD_SUSY6" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_SUSY6" }} } }, "DAOD_SUSY8" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_SUSY8" }} } }, "DAOD_SUSY9" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_SUSY9" }} } }, "DAOD_TAUP3" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_TAUP3" }} } }, "DAOD_TCAL1" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_TCAL1" }} } }, "DAOD_TOPQ1" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_TOPQ1" }} } }, "DAOD_EXOT13" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_EXOT13" }} } }, "DAOD_EXOT17" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_EXOT17" }} } }, "DAOD_HIGG1D1" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_HIGG1D1" }} } }, "DAOD_HIGG2D1" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_HIGG2D1" }} } }, "DAOD_SUSY5" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_SUSY5" }} } }, "DAOD_SUSY7" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_SUSY7" }} } }, "DAOD_FTAG4" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_FTAG4" }} } }, "DAOD_SUSY16" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_SUSY16" }} } }, "DAOD_SUSY2" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_SUSY2" }} } }, "DAOD_JETM3" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_JETM3" }} } }, "DAOD_JETM4" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_JETM4" }} } }, "DAOD_HIGG4D1" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_HIGG4D1" }} } }, "DAOD_HIGG4D2" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_HIGG4D2" }} } }, "DAOD_HIGG4D3" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_HIGG4D3" }} } }, "DAOD_EGAM2" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_EGAM2" }} } }, "DAOD_EXOT9" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_EXOT9" }} } }, "DAOD_EXOT4" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_EXOT4" }} } }, "DAOD_EXOT3" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_EXOT3" }} } }, "DAOD_EXOT8" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_EXOT8" }} } }, "DAOD_FTAG2" : { "has_child": { "type": "output_dataset", "query": {"term": {"data_format": "DAOD_FTAG2" }} } } } }, "aggs": { "status": { "terms": {"field": "status"}, "aggs": { "input_events": { "sum": {"field": "input_events"} }, "not_deleted": { "filter": {"term": {"primary_input_deleted": false}}, "aggs": { "input_bytes": { "sum": {"field": "input_bytes"} } } }, "processed_events": { "sum": {"field": "processed_events"} }, "cpu": { "sum": {"script": {"inline":"doc['hs06'].value * doc['total_events'].value"}} }, "timestamp_defined": { "filter": { "bool": { "must": [ {"exists": {"field": "start_time"}}, {"exists": {"field": "end_time"}} ] } }, "aggs": { "walltime": { "avg": {"script": {"inline": "doc['end_time'].value - doc['start_time'].value"}} } } }, "output": { "children": {"type": "output_dataset"}, "aggs": { "not_removed": { "filter": {"term": {"deleted": false}}, "aggs": { "bytes": { "sum": {"field": "bytes"} } } } } } } } } } } }