Exemple #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"])
def get_argparse():
    # Collect arguments with the module argparse
    parser = cmdLineUtils.getParserSourceDest(description, EPILOG)
    parser.prog = 'rooteventselector'
    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)
    parser.add_argument("-s", "--selection", default="")
    parser.add_argument("-i", "--branchinclude", default="")
    parser.add_argument("-e", "--branchexclude", default="")
    return parser
Exemple #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("-r",
                        "--recursive",
                        help=cmdLineUtils.RECURSIVE_HELP,
                        action="store_true")
    parser.add_argument("--replace",
                        help=cmdLineUtils.REPLACE_HELP,
                        action="store_true")

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

    # Process rootCp
    return cmdLineUtils.rootCp(sourceList, destFileName, destPathSplit, \
                               compress=optDict["compress"], recreate=optDict["recreate"], \
                               recursive=optDict["recursive"], replace=optDict["replace"])
Exemple #4
0
def get_argparse():
	# Collect arguments with the module argparse
	parser = cmdLineUtils.getParserSourceDest(COMMAND_HELP, EPILOG)
	parser.prog = 'rootslimtree'

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

	return parser
Exemple #5
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("-i","--interactive", help=cmdLineUtils.INTERACTIVE_HELP, action="store_true")
    parser.add_argument("--recreate", help=cmdLineUtils.RECREATE_HELP, action="store_true")

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

    # Process rootMv
    return cmdLineUtils.rootMv(sourceList, destFileName, destPathSplit, \
                               compress=optDict["compress"], interactive=optDict["interactive"], \
                               recreate=optDict["recreate"])
Exemple #6
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"])
Exemple #7
0
def get_argparse():
    # Collect arguments with the module argparse
    parser = cmdLineUtils.getParserSourceDest(description, EPILOG)
    parser.prog = 'rootmv'
    parser.add_argument("-c",
                        "--compress",
                        type=int,
                        help=cmdLineUtils.COMPRESS_HELP)
    parser.add_argument("-i",
                        "--interactive",
                        help=cmdLineUtils.INTERACTIVE_HELP,
                        action="store_true")
    parser.add_argument("--recreate",
                        help=cmdLineUtils.RECREATE_HELP,
                        action="store_true")
    return parser
Exemple #8
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"])