Example #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("-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"])
Example #2
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"])
Example #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("-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"])