File indexing completed on 2024-04-06 11:56:23
0001
0002 from Alignment.OfflineValidation.TkAlAllInOneTool.dataset import Dataset
0003 import argparse
0004 import os
0005 import sys
0006
0007 parser = argparse.ArgumentParser()
0008 parser.add_argument("outputfilename", help="Goes into $CMSSW_BASE/src/Alignment/HIPAlignmentAlgorithm/data unless an absolute path starting with / is provided. example: ALCARECOTkAlMinBias.dat_example")
0009 parser.add_argument("datasetname", help="example: /ZeroBias/Run2016G-TkAlMinBias-PromptReco-v1/ALCARECO")
0010 parser.add_argument("filesperjob", type=int, help="max number of files in each job")
0011 parser.add_argument("firstrun", type=int, nargs="?", help="first run to use")
0012 parser.add_argument("lastrun", type=int, nargs="?", help="last run to use")
0013 args = parser.parse_args()
0014
0015 dataset = Dataset(args.datasetname, tryPredefinedFirst=False)
0016 outputfilename = os.path.join(os.environ["CMSSW_BASE"], "src", "Alignment", "HIPAlignmentAlgorithm", "data", args.outputfilename)
0017 dataset.createdatasetfile_hippy(outputfilename, args.filesperjob, args.firstrun, args.lastrun)