Beispiel #1
0
                ]
                LaunchOnCondor.SendCluster_Push(
                    ["CMSSW", ["HSCParticleProducer_Data_Template_cfg.py"]])
                INDEX += 1

#   LaunchOnCondor.SendCluster_Submit()

if sys.argv[1] == '2':
    FarmDirectory = "MERGE"
    LaunchOnCondor.SendCluster_Create(FarmDirectory, "HSCPEdmMerge")
    LaunchOnCondor.Jobs_Queue = '8nh'
    for RUN in goodLumis:
        LaunchOnCondor.Jobs_InitCmds = ['export HOME=%s' % os.environ['HOME']]
        LaunchOnCondor.Jobs_FinalCmds = [
            "edmLumisInFiles.py Run2016_%i.root --output=%s/out/Run2016_%i.json"
            % (RUN, os.getcwd(), RUN)
        ]  #in the first step also to add
        LaunchOnCondor.Jobs_FinalCmds += [
            "mv Run2016_%i.root %s/out/Run2016_%i.root" %
            (RUN, os.getcwd(), RUN)
        ]
        LaunchOnCondor.ListToFile(
            LaunchOnCondor.GetListOfFiles(
                '"file:', '%s/out/%i/*_HSCP_*.root' % (os.getcwd(), RUN),
                '",'), FarmDirectory + "InputFile.txt")
        LaunchOnCondor.SendCMSJobs(
            FarmDirectory, "HSCPEdmMerge_%i" % RUN, "Merge_cfg.py",
            FarmDirectory + "InputFile.txt", 1,
            ['XXX_SAVEPATH_XXX', 'Run2016_%i.root' % RUN])
        os.system("rm " + FarmDirectory + "InputFile.txt")
Beispiel #2
0
    #["RunD_*_204801_205100","RunD_204801_205100"],
    #["RunD_*_205101_205400","RunD_205101_205400"],
    #["RunD_*_205401_205700","RunD_205401_205700"],
    #["RunD_*_205701_206000","RunD_205701_206000"],
    #["RunD_*_206001_206300","RunD_206001_206300"],
    #["RunD_*_206301_206600","RunD_206301_206600"],
    #["RunD_*_206601_206900","RunD_206601_206900"],
    #["RunD_*_206901_207200","RunD_206901_207200"],
    #["RunD_*_207201_207500","RunD_207201_207500"],
    #["RunD_*_207501_207800","RunD_207501_207800"],
    #["RunD_*_207801_208100","RunD_207801_208100"],
    #["RunD_*_208101_208357","RunD_208101_208357"],
    ["RunD_*_208358_208686", "RunD_208358_208686"]
]

FarmDirectory = "MERGE"
for j in Jobs:
    LaunchOnCondor.ListToFile(
        LaunchOnCondor.GetListOfFiles(
            '"dcache:',
            '/pnfs/cms/WAX/11/store/user/farrell3/HSCPEDMUpdateData2012_30Nov2012/'
            + j[0] + '/HSCP_*.root', '",'), FarmDirectory + "InputFile.txt")
    #LaunchOnCondor.SendCMSJobs(FarmDirectory, j[1], "Merge_cfg.py", FarmDirectory + "InputFile.txt", 1, ['XXX_SAVEPATH_XXX','file:/storage/data/cms/users/quertenmont/HSCP/CMSSW_4_2_8/12_08_16/'])
    LaunchOnCondor.SendCMSJobs(
        FarmDirectory, j[1], "Merge_cfg.py", FarmDirectory + "InputFile.txt",
        1, [
            'XXX_SAVEPATH_XXX',
            '/uscmst1b_scratch/lpc1/3DayLifetime/farrell/2012Data_04Sep2012'
        ])
os.system("rm " + FarmDirectory + "InputFile.txt")