![]() |
ATLAS Offline Software
|
Variables | |
| parser = argparse.ArgumentParser(description='Extract yields and skimming efficiencies for derived data formats using ARQ and AMI. Written by C. Ohm.') | |
| required | |
| True | |
| type | |
| str | |
| help | |
| validFileFormat | |
| default | |
| nargs | |
| action | |
| False | |
| args = parser.parse_args() | |
| str | cmd = "AtlRunQuery.py \"find run %s and ready and st %s 100k+ / show lumi\"" % (args.runs, args.stream) |
| env = os.environ.copy() | |
| output = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, env=env) | |
| f = open("data/atlrunquery.pickle", 'rb') | |
| d = pickle.load(f) | |
| dict | lumiPerRun = {} |
| dict | eventsPerRun = {} |
| dict | selectedEventsPerRun = {} |
| lbDict = d[run]['#LB'] | |
| list | lumiTag = [key for key in d[run] if 'ofllumi:0:' in key][0] |
| lumiDict = d[run][lumiTag] | |
| int | integratedLumi = 0 |
| client = pyAMI.client.Client('atlas') | |
| str | pattern = "data15_13TeV.%08d.physics_Main.merge.DESDM_RPVLL" % run |
| dslist = AtlasAPI.list_datasets(client, patterns = pattern, fields = ['events'], type = 'DESDM_RPVLL') | |
| bins = len(eventsPerRun) | |
| yieldPerRunHisto = r.TH1F("YieldPerRun", "YieldPerRun", bins, 0, bins) | |
| skimmingEffPerRunHisto = r.TH1F("SkimmingEfficiencyPerRun", "SkimmingEfficiencyPerRun", bins, 0, bins) | |
| yieldPerLumiHisto = r.TH1F("YieldPerRunPerLumi", "YieldPerRunPerLumi", bins, 0, bins) | |
| int | runs = 0 |
| events = float(selectedEventsPerRun[run]) | |
| allevents = float(eventsPerRun[run]) | |
| dict | lumi = lumiPerRun[run] |
| c1 = r.TCanvas("PerRun", "PerRun") | |
| c2 = r.TCanvas("EffPerRun", "EffPerRun") | |
| c3 = r.TCanvas("PerLumi", "PerLumi") | |
| python.DataFormatRates.action |
Definition at line 18 of file DataFormatRates.py.
| python.DataFormatRates.allevents = float(eventsPerRun[run]) |
Definition at line 106 of file DataFormatRates.py.
| python.DataFormatRates.args = parser.parse_args() |
Definition at line 21 of file DataFormatRates.py.
| python.DataFormatRates.bins = len(eventsPerRun) |
Definition at line 98 of file DataFormatRates.py.
| python.DataFormatRates.c1 = r.TCanvas("PerRun", "PerRun") |
Definition at line 119 of file DataFormatRates.py.
| python.DataFormatRates.c2 = r.TCanvas("EffPerRun", "EffPerRun") |
Definition at line 123 of file DataFormatRates.py.
| python.DataFormatRates.c3 = r.TCanvas("PerLumi", "PerLumi") |
Definition at line 127 of file DataFormatRates.py.
| python.DataFormatRates.client = pyAMI.client.Client('atlas') |
Definition at line 75 of file DataFormatRates.py.
| str python.DataFormatRates.cmd = "AtlRunQuery.py \"find run %s and ready and st %s 100k+ / show lumi\"" % (args.runs, args.stream) |
Definition at line 28 of file DataFormatRates.py.
| python.DataFormatRates.d = pickle.load(f) |
Definition at line 44 of file DataFormatRates.py.
| python.DataFormatRates.default |
Definition at line 14 of file DataFormatRates.py.
| python.DataFormatRates.dslist = AtlasAPI.list_datasets(client, patterns = pattern, fields = ['events'], type = 'DESDM_RPVLL') |
Definition at line 82 of file DataFormatRates.py.
| python.DataFormatRates.env = os.environ.copy() |
Definition at line 32 of file DataFormatRates.py.
| python.DataFormatRates.events = float(selectedEventsPerRun[run]) |
Definition at line 105 of file DataFormatRates.py.
| dict python.DataFormatRates.eventsPerRun = {} |
Definition at line 49 of file DataFormatRates.py.
| python.DataFormatRates.f = open("data/atlrunquery.pickle", 'rb') |
Definition at line 43 of file DataFormatRates.py.
| python.DataFormatRates.False |
Definition at line 18 of file DataFormatRates.py.
| python.DataFormatRates.help |
Definition at line 13 of file DataFormatRates.py.
| int python.DataFormatRates.integratedLumi = 0 |
Definition at line 60 of file DataFormatRates.py.
| python.DataFormatRates.lbDict = d[run]['#LB'] |
Definition at line 55 of file DataFormatRates.py.
| dict python.DataFormatRates.lumi = lumiPerRun[run] |
Definition at line 107 of file DataFormatRates.py.
Definition at line 58 of file DataFormatRates.py.
| dict python.DataFormatRates.lumiPerRun = {} |
Definition at line 48 of file DataFormatRates.py.
Definition at line 56 of file DataFormatRates.py.
| python.DataFormatRates.nargs |
Definition at line 16 of file DataFormatRates.py.
| python.DataFormatRates.output = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, env=env) |
Definition at line 33 of file DataFormatRates.py.
| python.DataFormatRates.parser = argparse.ArgumentParser(description='Extract yields and skimming efficiencies for derived data formats using ARQ and AMI. Written by C. Ohm.') |
Definition at line 12 of file DataFormatRates.py.
| str python.DataFormatRates.pattern = "data15_13TeV.%08d.physics_Main.merge.DESDM_RPVLL" % run |
Definition at line 80 of file DataFormatRates.py.
| python.DataFormatRates.required |
Definition at line 13 of file DataFormatRates.py.
| int python.DataFormatRates.runs = 0 |
Definition at line 103 of file DataFormatRates.py.
| dict python.DataFormatRates.selectedEventsPerRun = {} |
Definition at line 50 of file DataFormatRates.py.
| python.DataFormatRates.skimmingEffPerRunHisto = r.TH1F("SkimmingEfficiencyPerRun", "SkimmingEfficiencyPerRun", bins, 0, bins) |
Definition at line 101 of file DataFormatRates.py.
| python.DataFormatRates.str |
Definition at line 13 of file DataFormatRates.py.
| python.DataFormatRates.True |
Definition at line 13 of file DataFormatRates.py.
| python.DataFormatRates.type |
Definition at line 13 of file DataFormatRates.py.
| python.DataFormatRates.validFileFormat |
Definition at line 14 of file DataFormatRates.py.
| python.DataFormatRates.yieldPerLumiHisto = r.TH1F("YieldPerRunPerLumi", "YieldPerRunPerLumi", bins, 0, bins) |
Definition at line 102 of file DataFormatRates.py.
Definition at line 100 of file DataFormatRates.py.