forked from lbrianza/boostedWWAnalysis
-
Notifications
You must be signed in to change notification settings - Fork 6
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 #1 from thaarres/nanoAOD
Adapted to 94X, moved modules to Python dir
- Loading branch information
Showing
18 changed files
with
449 additions
and
215 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ git checkout -b TTbarResHad remotes/sal/TTbarResHad | |
## getting the code | ||
|
||
``` | ||
cd python/ | ||
cd $CMSSW_base/src | ||
git clone -b nanoAOD [email protected]:BoostedScalefactors/WTopScalefactorProducer.git | ||
cd WTopScalefactorProducer | ||
|
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,5 @@ | ||
/SingleMuon/thaarres-SingleMuon_Run2017B-17Nov2017-v1-351ed72508aa977f1c65d26f45752bf7/USER | ||
/SingleMuon/thaarres-SingleMuon_Run2017C-17Nov2017-v1-351ed72508aa977f1c65d26f45752bf7/USER | ||
/SingleMuon/thaarres-SingleMuon_Run2017D-17Nov2017-v1-351ed72508aa977f1c65d26f45752bf7/USER | ||
/SingleMuon/thaarres-SingleMuon_Run2017E-17Nov2017-v1-351ed72508aa977f1c65d26f45752bf7/USER | ||
/SingleMuon/thaarres-SingleMuon_Run2017F-17Nov2017-v1-351ed72508aa977f1c65d26f45752bf7/USER |
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 @@ | ||
/TTToSemiLeptonic_TuneCP5_PSweights_13TeV-powheg-pythia8/asparker-TTToSemiLeptonicTuneCP5PSweights13TeV-powheg-pythia8-09681bffa4a69220709beadfe75c6062/USER |
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,21 +1,22 @@ | ||
#!/Usr-/bin/env python | ||
import os | ||
import os,sys | ||
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 | ||
from WTopScalefactorProducer.Skimmer.TTSkimmer import * | ||
|
||
|
||
from PhysicsTools.NanoAODTools.WTopScalefactorProducer.Skimmer.TTbar_SemiLep import * | ||
|
||
# NOTE : This file is configured to Process MC. | ||
# If you want to process Data then ADD "jsonInput='Cert_271036-284044_13TeV_PromptReco_Collisions16_JSON.txt'" | ||
# If you want to process Data then ADD "jsonInput='/afs/cern.ch/cms/CAF/CMSCOMM/COMM_DQM/certification/Collisions17/13TeV/PromptReco/Cert_294927-306462_13TeV_PromptReco_Collisions17_JSON.txt'" | ||
# to the PostProcessor arguement below | ||
# | ||
|
||
p=PostProcessor(".", inputFiles() ,"nFatJet>0&&FatJet_msoftdrop>30&&FatJet_pt>200&&MET_sumEt>40&& ( (nElectron > 0 && HLT_Ele115_CaloIdVT_GsfTrkIdT) || (nMuon > 0 && HLT_Mu50))" ,modules=[TTbar_SemiLep()],provenance=True,fwkJobReport=True ,histFileName= 'TTbar_SemiLep_hists.root', histDirName='ttbar_semilep' , haddFileName= '80XNanoV0-TTbar_SemiLep.root' ) | ||
# p=PostProcessor(".", inputFiles(), # --> to submit with crab, use this | ||
p=PostProcessor(".", ["root://cms-xrd-global.cern.ch//store/user/asparker/TTToSemiLeptonic_TuneCP5_PSweights_13TeV-powheg-pythia8/TTToSemiLeptonicTuneCP5PSweights13TeV-powheg-pythia8/180130_175206/0000/80XNanoV0-TTbar_SemiLep_1.root"], # --> for local tests, use this | ||
"nFatJet>0&&FatJet_msoftdrop>30&&FatJet_pt>200&&MET_sumEt>40&& ( (nElectron > 0 && HLT_Ele115_CaloIdVT_GsfTrkIdT) || (nMuon > 0 && HLT_Mu50))" ,"keep_and_drop.txt", | ||
modules=[TTbar_SemiLep()],provenance=False,fwkJobReport=False , | ||
haddFileName= '94XNanoV0-TTbar_SemiLep.root' ) | ||
|
||
p.run() | ||
|
||
print "DONE" | ||
os.system("ls -lR") |
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,27 @@ | ||
drop * | ||
keep HLT_Mu50* | ||
keep HLT_Ele115_* | ||
keep FatJet_* | ||
keep Jet_* | ||
keep SubGenJetAK8* | ||
keep SubJet* | ||
keep Muon_* | ||
keep Electron_* | ||
keep MET* | ||
keep PuppiMET* | ||
keep GenPart* | ||
keep GenDressed* | ||
keep run* | ||
keep luminosityBlock* | ||
keep genWeight* | ||
keep event* | ||
keep Pileup* | ||
keep Flag_BadChargedCandidateFilter | ||
keep Flag_BadPFMuonFilter | ||
keep Flag_EcalDeadCellTriggerPrimitiveFilter | ||
keep Flag_HBHENoiseFilter | ||
keep Flag_HBHENoiseIsoFilter | ||
keep Flag_METFilters | ||
keep Flag_ecalBadCalibFilter | ||
keep Flag_globalTightHalo2016Filter | ||
keep Flag_goodVertices |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.