|
| PURW_create_actual_mu_profile.logger = logging.getLogger('PURW actual mu profile tool') |
|
| PURW_create_actual_mu_profile.parser = argparse.ArgumentParser(description='Make a BCID-aware pileup reweighting file') |
|
| PURW_create_actual_mu_profile.type |
|
| PURW_create_actual_mu_profile.help |
|
| PURW_create_actual_mu_profile.default |
|
| PURW_create_actual_mu_profile.args = parser.parse_args() |
|
| PURW_create_actual_mu_profile.bcidfile = ROOT.TFile.Open(args.bcidfile) |
|
| PURW_create_actual_mu_profile.grl = None |
|
| PURW_create_actual_mu_profile.outfile = ROOT.TFile.Open(args.outfile, 'RECREATE') |
|
| PURW_create_actual_mu_profile.metadata = ROOT.TTree('DataCustomReweighting', 'DataCustomReweighting') |
|
| PURW_create_actual_mu_profile.cname_arr = bytearray('pileup\0',encoding='utf-8') |
|
| PURW_create_actual_mu_profile.runno_arr = array.array('I', [0]) |
|
| PURW_create_actual_mu_profile.histname_arr = bytearray('pileup_data_run_XXXXXX\0',encoding='utf-8') |
|
| PURW_create_actual_mu_profile.lgp = ROOT.Root.TGoodRunsListReader(args.grl) |
|
| PURW_create_actual_mu_profile.outhist = None |
|
| PURW_create_actual_mu_profile.runno = run.GetRunNumber() |
|
| PURW_create_actual_mu_profile.encoding |
|
| PURW_create_actual_mu_profile.rdir = bcidfile.Get(repr(runno)) |
|
| PURW_create_actual_mu_profile.runhist = None |
|
| PURW_create_actual_mu_profile.inhist = rdir.Get('%srec' % lb) |
|
| PURW_create_actual_mu_profile.lumitag = bcidfile.Get('LuminosityTag') |
|
| PURW_create_actual_mu_profile.grlo = ROOT.TNamed("InputGRL", args.grl) |
|