ATLAS Offline Software
Loading...
Searching...
No Matches
python.DataFormatRates Namespace Reference

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")

Variable Documentation

◆ action

python.DataFormatRates.action

Definition at line 18 of file DataFormatRates.py.

◆ allevents

python.DataFormatRates.allevents = float(eventsPerRun[run])

Definition at line 106 of file DataFormatRates.py.

◆ args

python.DataFormatRates.args = parser.parse_args()

Definition at line 21 of file DataFormatRates.py.

◆ bins

python.DataFormatRates.bins = len(eventsPerRun)

Definition at line 98 of file DataFormatRates.py.

◆ c1

python.DataFormatRates.c1 = r.TCanvas("PerRun", "PerRun")

Definition at line 119 of file DataFormatRates.py.

◆ c2

python.DataFormatRates.c2 = r.TCanvas("EffPerRun", "EffPerRun")

Definition at line 123 of file DataFormatRates.py.

◆ c3

python.DataFormatRates.c3 = r.TCanvas("PerLumi", "PerLumi")

Definition at line 127 of file DataFormatRates.py.

◆ client

python.DataFormatRates.client = pyAMI.client.Client('atlas')

Definition at line 75 of file DataFormatRates.py.

◆ cmd

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.

◆ d

python.DataFormatRates.d = pickle.load(f)

Definition at line 44 of file DataFormatRates.py.

◆ default

python.DataFormatRates.default

Definition at line 14 of file DataFormatRates.py.

◆ dslist

python.DataFormatRates.dslist = AtlasAPI.list_datasets(client, patterns = pattern, fields = ['events'], type = 'DESDM_RPVLL')

Definition at line 82 of file DataFormatRates.py.

◆ env

python.DataFormatRates.env = os.environ.copy()

Definition at line 32 of file DataFormatRates.py.

◆ events

python.DataFormatRates.events = float(selectedEventsPerRun[run])

Definition at line 105 of file DataFormatRates.py.

◆ eventsPerRun

dict python.DataFormatRates.eventsPerRun = {}

Definition at line 49 of file DataFormatRates.py.

◆ f

python.DataFormatRates.f = open("data/atlrunquery.pickle", 'rb')

Definition at line 43 of file DataFormatRates.py.

◆ False

python.DataFormatRates.False

Definition at line 18 of file DataFormatRates.py.

◆ help

python.DataFormatRates.help

Definition at line 13 of file DataFormatRates.py.

◆ integratedLumi

int python.DataFormatRates.integratedLumi = 0

Definition at line 60 of file DataFormatRates.py.

◆ lbDict

python.DataFormatRates.lbDict = d[run]['#LB']

Definition at line 55 of file DataFormatRates.py.

◆ lumi

dict python.DataFormatRates.lumi = lumiPerRun[run]

Definition at line 107 of file DataFormatRates.py.

◆ lumiDict

python.DataFormatRates.lumiDict = d[run][lumiTag]

Definition at line 58 of file DataFormatRates.py.

◆ lumiPerRun

dict python.DataFormatRates.lumiPerRun = {}

Definition at line 48 of file DataFormatRates.py.

◆ lumiTag

list python.DataFormatRates.lumiTag = [key for key in d[run] if 'ofllumi:0:' in key][0]

Definition at line 56 of file DataFormatRates.py.

◆ nargs

python.DataFormatRates.nargs

Definition at line 16 of file DataFormatRates.py.

◆ output

python.DataFormatRates.output = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, env=env)

Definition at line 33 of file DataFormatRates.py.

◆ parser

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.

◆ pattern

str python.DataFormatRates.pattern = "data15_13TeV.%08d.physics_Main.merge.DESDM_RPVLL" % run

Definition at line 80 of file DataFormatRates.py.

◆ required

python.DataFormatRates.required

Definition at line 13 of file DataFormatRates.py.

◆ runs

int python.DataFormatRates.runs = 0

Definition at line 103 of file DataFormatRates.py.

◆ selectedEventsPerRun

dict python.DataFormatRates.selectedEventsPerRun = {}

Definition at line 50 of file DataFormatRates.py.

◆ skimmingEffPerRunHisto

python.DataFormatRates.skimmingEffPerRunHisto = r.TH1F("SkimmingEfficiencyPerRun", "SkimmingEfficiencyPerRun", bins, 0, bins)

Definition at line 101 of file DataFormatRates.py.

◆ str

python.DataFormatRates.str

Definition at line 13 of file DataFormatRates.py.

◆ True

python.DataFormatRates.True

Definition at line 13 of file DataFormatRates.py.

◆ type

python.DataFormatRates.type

Definition at line 13 of file DataFormatRates.py.

◆ validFileFormat

python.DataFormatRates.validFileFormat

Definition at line 14 of file DataFormatRates.py.

◆ yieldPerLumiHisto

python.DataFormatRates.yieldPerLumiHisto = r.TH1F("YieldPerRunPerLumi", "YieldPerRunPerLumi", bins, 0, bins)

Definition at line 102 of file DataFormatRates.py.

◆ yieldPerRunHisto

python.DataFormatRates.yieldPerRunHisto = r.TH1F("YieldPerRun", "YieldPerRun", bins, 0, bins)

Definition at line 100 of file DataFormatRates.py.