forked from uniovi-hepex/nanoAOD-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
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 uniovi-hepex#12 from vrbouza/master
Forward to upstream the master buena
- Loading branch information
Showing
283 changed files
with
231,743 additions
and
68,184 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
#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 | ||
# 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 = cms.Source( | ||
"PoolSource", | ||
fileNames=cms.untracked.vstring(), | ||
# lumisToProcess=cms.untracked.VLuminosityBlockRange("254231:1-254231:24") | ||
) | ||
process.source.fileNames = [ | ||
'../../NanoAOD/test/lzma.root' ##you can change only this line | ||
'../../NanoAOD/test/lzma.root' # you can change only this line | ||
] | ||
process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(10)) | ||
process.output = cms.OutputModule("PoolOutputModule", fileName = cms.untracked.string('tree.root')) | ||
process.maxEvents = cms.untracked.PSet(input=cms.untracked.int32(10)) | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,34 @@ | ||
from WMCore.Configuration import Configuration | ||
from CRABClient.UserUtilities import config, getUsernameFromSiteDB | ||
|
||
config = Configuration() | ||
|
||
config.section_("General") | ||
config.General.requestName = 'NanoPost1' | ||
config.General.transferLogs=True | ||
config.General.transferLogs = True | ||
config.section_("JobType") | ||
config.JobType.pluginName = 'Analysis' | ||
config.JobType.psetName = 'PSet.py' | ||
config.JobType.scriptExe = 'crab_script.sh' | ||
config.JobType.inputFiles = ['crab_script.py','../scripts/haddnano.py'] #hadd nano will not be needed once nano tools are in cmssw | ||
config.JobType.sendPythonFolder = True | ||
# hadd nano will not be needed once nano tools are in cmssw | ||
config.JobType.inputFiles = ['crab_script.py', '../scripts/haddnano.py'] | ||
config.JobType.sendPythonFolder = True | ||
config.section_("Data") | ||
config.Data.inputDataset = '/TTJets_DiLept_TuneCUETP8M1_13TeV-madgraphMLM-pythia8/RunIIFall17NanoAOD-PUMoriond17_94X_mcRun2_asymptotic_v2-v1/NANOAODSIM' | ||
config.Data.inputDataset = '/DYJetsToLL_1J_TuneCP5_13TeV-amcatnloFXFX-pythia8/RunIIFall17NanoAOD-PU2017_12Apr2018_94X_mc2017_realistic_v14-v1/NANOAODSIM' | ||
#config.Data.inputDBS = 'phys03' | ||
config.Data.inputDBS = 'global' | ||
#config.Data.splitting = 'FileBased' | ||
config.Data.splitting = 'EventAwareLumiBased' | ||
config.Data.unitsPerJob = 100 | ||
config.Data.totalUnits = 2000 | ||
config.Data.inputDBS='phys03' | ||
config.Data.outLFNDirBase = '/store/user/arizzi/NanoPost/' | ||
config.Data.publication = True | ||
config.Data.splitting = 'FileBased' | ||
#config.Data.splitting = 'EventAwareLumiBased' | ||
config.Data.unitsPerJob = 2 | ||
config.Data.totalUnits = 10 | ||
|
||
config.Data.outLFNDirBase = '/store/user/%s/NanoPost' % ( | ||
getUsernameFromSiteDB()) | ||
config.Data.publication = False | ||
config.Data.outputDatasetTag = 'NanoTestPost' | ||
config.section_("Site") | ||
config.Site.storageSite = "T2_IT_Bari" | ||
config.Site.storageSite = "T2_DE_DESY" | ||
|
||
#config.Site.storageSite = "T2_CH_CERN" | ||
# config.section_("User") | ||
#config.User.voGroup = 'dcms' |
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 |
---|---|---|
@@ -1,14 +1,18 @@ | ||
#!/usr/bin/env python | ||
import os | ||
from PhysicsTools.NanoAODTools.postprocessing.framework.postprocessor import * | ||
from PhysicsTools.NanoAODTools.postprocessing.framework.postprocessor import * | ||
|
||
#this takes care of converting the input files from CRAB | ||
from PhysicsTools.NanoAODTools.postprocessing.framework.crabhelper import inputFiles,runsAndLumis | ||
# this takes care of converting the input files from CRAB | ||
from PhysicsTools.NanoAODTools.postprocessing.framework.crabhelper import inputFiles, runsAndLumis | ||
|
||
from PhysicsTools.NanoAODTools.postprocessing.examples.exampleModule import * | ||
p=PostProcessor(".",inputFiles(),"Jet_pt>200",modules=[exampleModule()],provenance=True,fwkJobReport=True,jsonInput=runsAndLumis()) | ||
from PhysicsTools.NanoAODTools.postprocessing.examples.exampleModule import * | ||
p = PostProcessor(".", | ||
inputFiles(), | ||
"Jet_pt>200", | ||
modules=[exampleModuleConstr()], | ||
provenance=True, | ||
fwkJobReport=True, | ||
jsonInput=runsAndLumis()) | ||
p.run() | ||
|
||
print "DONE" | ||
os.system("ls -lR") | ||
|
||
print("DONE") |
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
Oops, something went wrong.