test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
createfilelist.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 from Alignment.OfflineValidation.TkAlAllInOneTool.dataset import Dataset
3 import argparse
4 import os
5 import sys
6 
8 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")
9 parser.add_argument("datasetname", help="example: /ZeroBias/Run2016G-TkAlMinBias-PromptReco-v1/ALCARECO")
10 parser.add_argument("filesperjob", type=int, help="max number of files in each job")
11 parser.add_argument("firstrun", type=int, nargs="?", help="first run to use")
12 parser.add_argument("lastrun", type=int, nargs="?", help="last run to use")
13 args = parser.parse_args()
14 
15 dataset = Dataset(args.datasetname, tryPredefinedFirst=False)
16 outputfilename = os.path.join(os.environ["CMSSW_BASE"], "src", "Alignment", "HIPAlignmentAlgorithm", "data", args.outputfilename)
17 dataset.createdatasetfile_hippy(outputfilename, args.filesperjob, args.firstrun, args.lastrun)