forked from cms-sw/cmssw
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request cms-sw#49 from hatakeyamak/pfvalidation-10_6_X-master
Pfvalidation 10 6 x master
- Loading branch information
Showing
13 changed files
with
270 additions
and
118,064 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
from CRABAPI.RawCommand import crabCommand | ||
from CRABClient.UserUtilities import getUsernameFromSiteDB | ||
from CRABClient.UserUtilities import config | ||
from copy import deepcopy | ||
import os | ||
|
||
def submit(config): | ||
res = crabCommand('submit', config = config) | ||
#save crab config for the future | ||
with open(config.General.workArea + "/crab_" + config.General.requestName + "/crab_config.py", "w") as fi: | ||
fi.write(config.pythonise_()) | ||
|
||
samples = [ | ||
("/RelValQCD_Pt-15To7000_Flat_14TeV/CMSSW_10_6_0-106X_upgrade2023_realistic_v2_2023D41noPU-v2/GEN-SIM-DIGI-RAW", "QCD_noPU_phase2"), | ||
(" /RelValQCD_Pt-15To7000_Flat_14TeV/CMSSW_10_6_0-PU25ns_106X_upgrade2023_realistic_v2_2023D41PU200-v1/GEN-SIM-DIGI-RAW", "QCD_PU_phase2"), | ||
#("/RelValZMM_14/CMSSW_10_6_0-106X_upgrade2023_realistic_v2_2023D41noPU-v2/GEN-SIM-DIGI-RAW", "ZMM_phase2"), | ||
("/RelValNuGun/CMSSW_10_6_0-PU25ns_106X_upgrade2023_realistic_v2_2023D41PU200-v1/GEN-SIM-DIGI-RAW", "NuGun_PU_phase2"), | ||
] | ||
|
||
if __name__ == "__main__": | ||
for dataset, name in samples: | ||
|
||
if os.path.isfile("step3_dump.pyc"): | ||
os.remove("step3_dump.pyc") | ||
|
||
conf = config() | ||
|
||
conf.General.requestName = name | ||
conf.General.transferLogs = True | ||
conf.General.workArea = 'crab_projects' | ||
conf.JobType.pluginName = 'Analysis' | ||
conf.JobType.psetName = 'step3_dump.py' | ||
conf.JobType.maxJobRuntimeMin = 4*60 | ||
conf.JobType.allowUndistributedCMSSW = True | ||
conf.JobType.outputFiles = ["step3_inMINIAODSIM.root"] | ||
conf.JobType.maxMemoryMB = 4000 | ||
conf.JobType.numCores = 2 | ||
|
||
conf.Data.inputDataset = dataset | ||
conf.Data.splitting = 'LumiBased' | ||
conf.Data.unitsPerJob = 10 | ||
#conf.Data.totalUnits = 50 | ||
conf.Data.publication = False | ||
conf.Data.outputDatasetTag = 'pfvalidation' | ||
#conf.Data.ignoreLocality = True | ||
|
||
# Where the output files will be transmitted to | ||
conf.Site.storageSite = 'T3_US_Baylor' | ||
#conf.Site.storageSite = 'T2_US_Caltech' | ||
#conf.Site.whitelist = ["T2_US_Caltech", "T2_CH_CERN"] | ||
|
||
submit(conf) |
Oops, something went wrong.