Exemplo n.º 1
0
def execute():
    # Collect arguments with the module argparse
    parser = cmdLineUtils.getParserSourceDest(COMMAND_HELP, EPILOG)
    parser.add_argument("-c",
                        "--compress",
                        type=int,
                        help=cmdLineUtils.COMPRESS_HELP)
    parser.add_argument("--recreate",
                        help=cmdLineUtils.RECREATE_HELP,
                        action="store_true")
    parser.add_argument("-f",
                        "--first",
                        type=int,
                        default=0,
                        help=FIRST_EVENT_HELP)
    parser.add_argument("-l",
                        "--last",
                        type=int,
                        default=-1,
                        help=LAST_EVENT_HELP)

    # Put arguments in shape
    sourceList, destFileName, destPathSplit, optDict = cmdLineUtils.getSourceDestListOptDict(
        parser)

    # Process rootEventselector
    return cmdLineUtils.rootEventselector(sourceList, destFileName, destPathSplit, \
                                          compress=optDict["compress"], recreate=optDict["recreate"], \
                                          first=optDict["first"], last=optDict["last"])
Exemplo n.º 2
0
def execute():
	parser = get_argparse()
	# Put arguments in shape
	sourceList, destFileName, destPathSplit, optDict = cmdLineUtils.getSourceDestListOptDict(parser)

	# Process rootEventselector
	return cmdLineUtils.rootEventselector(sourceList, destFileName, destPathSplit, \
										compress=optDict["compress"], recreate=optDict["recreate"], \
										first=optDict["first"], last=optDict["last"], \
										selectionString=optDict["selection"], \
										branchinclude=optDict["branchinclude"],\
										branchexclude=optDict["branchexclude"])
Exemplo n.º 3
0
def execute():
    # Collect arguments with the module argparse
    parser = cmdLineUtils.getParserSourceDest(COMMAND_HELP, EPILOG)
    parser.add_argument("-c","--compress", type=int, help=cmdLineUtils.COMPRESS_HELP)
    parser.add_argument("--recreate", help=cmdLineUtils.RECREATE_HELP, action="store_true")
    parser.add_argument("-f","--first", type=int, default=0, help=FIRST_EVENT_HELP)
    parser.add_argument("-l","--last", type=int, default=-1, help=LAST_EVENT_HELP)

    # Put arguments in shape
    sourceList, destFileName, destPathSplit, optDict = cmdLineUtils.getSourceDestListOptDict(parser)

    # Process rootEventselector
    return cmdLineUtils.rootEventselector(sourceList, destFileName, destPathSplit, \
                                          compress=optDict["compress"], recreate=optDict["recreate"], \
                                          first=optDict["first"], last=optDict["last"])
Exemplo n.º 4
0
def execute():
    # Collect arguments with the module argparse
    parser = cmdLineUtils.getParserSourceDest(COMMAND_HELP, EPILOG)
    parser.add_argument("-c","--compress", type=int, help=cmdLineUtils.COMPRESS_HELP)
    parser.add_argument("--recreate", help=cmdLineUtils.RECREATE_HELP, action="store_true")
    parser.add_argument("-i","--branchinclude", default="")
    parser.add_argument("-e","--branchexclude", default="")

    # Put arguments in shape
    sourceList, destFileName, destPathSplit, optDict = cmdLineUtils.getSourceDestListOptDict(parser)

    # Process rootEventselector in simplified slimtree mode
    return cmdLineUtils.rootEventselector(sourceList, destFileName, destPathSplit, \
                                          compress=optDict["compress"], recreate=optDict["recreate"], \
                                          first=0, last=-1, \
                                          selectionString="", \
                                          branchinclude=optDict["branchinclude"],\
                                          branchexclude=optDict["branchexclude"])
def execute():
    # Collect arguments with the module argparse
    parser = cmdLineUtils.getParserSourceDest(COMMAND_HELP, EPILOG)
    parser.add_argument("-c",
                        "--compress",
                        type=int,
                        help=cmdLineUtils.COMPRESS_HELP)
    parser.add_argument("--recreate",
                        help=cmdLineUtils.RECREATE_HELP,
                        action="store_true")
    parser.add_argument("-i", "--branchinclude", default="")
    parser.add_argument("-e", "--branchexclude", default="")

    # Put arguments in shape
    sourceList, destFileName, destPathSplit, optDict = cmdLineUtils.getSourceDestListOptDict(
        parser)

    # Process rootEventselector in simplified slimtree mode
    return cmdLineUtils.rootEventselector(sourceList, destFileName, destPathSplit, \
                                          compress=optDict["compress"], recreate=optDict["recreate"], \
                                          first=0, last=-1, \
                                          selectionString="", \
                                          branchinclude=optDict["branchinclude"],\
                                          branchexclude=optDict["branchexclude"])