forked from osWW-VBS/nanoAOD_vvVBS
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
crab fixed #29
Closed
Closed
crab fixed #29
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
17622b4
updated condor check script
ram1123 6a907cc
Updated condor resubmit job file naming convention & Utils folder
ram1123 b15da7e
running hadd by default to removee duplicates and reduce size; few ge…
ram1123 3d8eab1
Added condor resubmit script
ram1123 13dce0e
Added v7 2018 nanoAOD sample
ram1123 202b078
fix merge conflict
ram1123 ee7343a
Updated from main branch
ram1123 695e213
crab fixed
3c9f6ac
Update README.md
YujiLee301 4a324df
FJR checked
f4c0394
Merge branch 'crabjobs' of github.com:ram1123/nanoAOD_skim into crabjobs
bd68586
FJR checkings
538fa00
FJR checkings
508a712
FJR checkings
20a2258
Rename crab_script.sh
YujiLee301 ddc341f
Add files via upload
YujiLee301 b68caa7
Add files via upload
YujiLee301 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<FrameworkJobReport> | ||
<ReadBranches> | ||
</ReadBranches> | ||
<PerformanceReport> | ||
<PerformanceSummary Metric="StorageStatistics"> | ||
<Metric Name="Parameter-untracked-bool-enabled" Value="true"/> | ||
<Metric Name="Parameter-untracked-bool-stats" Value="true"/> | ||
<Metric Name="Parameter-untracked-string-cacheHint" Value="application-only"/> | ||
<Metric Name="Parameter-untracked-string-readHint" Value="auto-detect"/> | ||
<Metric Name="ROOT-tfile-read-totalMegabytes" Value="0"/> | ||
<Metric Name="ROOT-tfile-write-totalMegabytes" Value="0"/> | ||
</PerformanceSummary> | ||
</PerformanceReport> | ||
|
||
<GeneratorInfo> | ||
</GeneratorInfo> | ||
</FrameworkJobReport> |
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,13 @@ | ||
#this fake PSET is needed for local test and for crab to figure the output filename | ||
#you do not need to edit it unless you want to do a local test using a different input file than | ||
#the one marked below | ||
import FWCore.ParameterSet.Config as cms | ||
process = cms.Process('NANO') | ||
process.source = cms.Source("PoolSource", fileNames = cms.untracked.vstring(), | ||
# lumisToProcess=cms.untracked.VLuminosityBlockRange("254231:1-254231:24") | ||
) | ||
process.source.fileNames = [ 'root://cms-xrd-global.cern.ch//store/mc/RunIISummer16NanoAOD/TTJets_TuneCUETP8M1_13TeV-madgraphMLM-pythia8/NANOAODSIM/PUMoriond17_05Feb2018_94X_mcRun2_asymptotic_v2-v1/40000/2CE738F9-C212-E811-BD0E-EC0D9A8222CE.root' ##you can change only this line | ||
] | ||
process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(111)) | ||
process.output = cms.OutputModule("PoolOutputModule", fileName = cms.untracked.string('tree.root')) | ||
process.out = cms.EndPath(process.output) |
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
Submodule Utils
updated
from f30c7e to 637dc2
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,31 @@ | ||
from WMCore.Configuration import Configuration | ||
from CRABClient.UserUtilities import config | ||
config = Configuration() | ||
|
||
config.section_("General") | ||
config.General.requestName = 'nanoAOD_testing_2' | ||
config.General.workArea = '/afs/cern.ch/user/y/yujil/crabtest/CMSSW_10_6_30/src/PhysicsTools/NanoAODTools/python/postprocessing/analysis/nanoAOD_skim/crab_projects_sendPythonFolderFalse' | ||
#config.General.transferLogs=True | ||
config.General.transferOutputs = True | ||
config.section_("JobType") | ||
config.JobType.pluginName = 'Analysis' | ||
config.JobType.psetName = 'PSet.py' | ||
config.JobType.scriptExe = 'crab_script.sh' | ||
config.JobType.inputFiles = ['post_proc.py','../../../../scripts/haddnano.py','keep_and_drop.txt','FrameworkJobReport.xml'] #hadd nano will not be needed once nano tools are in cmssw | ||
#config.JobType.sendPythonFolder = True | ||
config.JobType.allowUndistributedCMSSW = True | ||
config.section_("Data") | ||
config.Data.inputDataset = '/WplusTo2JWminusTo2LJJ_EWK_LO_aQGC_MJJ100PTJ10_TuneCP5_13TeV-madgraph-pythia8/RunIIAutumn18NanoAODv5-Nano1June2019_102X_upgrade2018_realistic_v19-v1/NANOAODSIM' | ||
#config.Data.inputDBS = 'phys03' | ||
config.Data.inputDBS = 'global' | ||
config.Data.splitting = 'FileBased' | ||
#config.Data.splitting = 'EventAwareLumiBased' | ||
config.Data.unitsPerJob = 1 | ||
|
||
config.Data.outLFNDirBase = '/store/user/yujil/newNTuple_UL' | ||
#config.Data.outLFNDirBase = '/store/user/%s/NanoPostTemp' % (getUsernameFromSiteDB()) | ||
config.Data.publication = False | ||
config.Data.ignoreLocality = False | ||
config.Data.outputDatasetTag = 'NanoTestPost' | ||
config.section_("Site") | ||
config.Site.storageSite = "T2_CN_Beijing" |
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,32 @@ | ||
#this is not mean to be run locally | ||
# | ||
echo Check if TTY | ||
if [ "`tty`" != "not a tty" ]; then | ||
echo "YOU SHOULD NOT RUN THIS IN INTERACTIVE, IT DELETES YOUR LOCAL FILES" | ||
else | ||
|
||
echo "ENV..................................." | ||
env | ||
echo "VOMS" | ||
voms-proxy-info -all | ||
echo "CMSSW BASE, python path, pwd" | ||
echo $CMSSW_BASE | ||
echo $PYTHON_PATH | ||
echo $PWD | ||
rm -rf $CMSSW_BASE/lib/ | ||
rm -rf $CMSSW_BASE/src/ | ||
rm -rf $CMSSW_BASE/module/ | ||
rm -rf $CMSSW_BASE/python/ | ||
mv lib $CMSSW_BASE/lib | ||
mv src $CMSSW_BASE/src | ||
mv module $CMSSW_BASE/module | ||
mv python $CMSSW_BASE/python | ||
|
||
echo Found Proxy in: $X509_USER_PROXY | ||
cd $CMSSW_BASE/src/PhysicsTools/NanoAODTools/python/postprocessing/analysis/nanoAOD_skim | ||
cp /srv/FrameworkJobReport.xml . | ||
cmsenv | ||
python post_proc.py $1 | ||
cp tree*root /srv | ||
#python crab_script.py $1 | ||
fi |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete this file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested without this file, and the submission can not be successful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmmm, strange. This job report is created when we run it locally, by switching the job report boolean.
This report helps us to set the crab job parameters like the number of jobs and how many events are in each job.
How does the crab job depend on this file?