from Analysis.BoostedTopAnalysis.hadronicAnalysis_cfi import hadronicAnalysis as inputHadronicAnalysis process.TFileService = cms.Service("TFileService", fileName = cms.string("boostedTopHadronicStudies.root") ) process.hadronicAna = cms.EDAnalyzer('EDHadronicAnalysis', hadronicAnalysis = inputHadronicAnalysis.clone( dijetSelectorParams = inputHadronicAnalysis.dijetSelectorParams.clone( pfMetSrc = cms.InputTag('patMETsPFlow'), ptMin = cms.double(200) #ptMin = cms.double(220) ), trig = cms.string('HLT_Jet100U_v2'), cutsToIgnore = cms.vstring("Trigger") ) ) process.hadronicAnaUnweighted = process.hadronicAna.clone( ) process.hadronicAna.plotOptions = cms.PSet( plotTracks = cms.bool(True), reweightHistoFile = cms.string('reweight_histo.root'), reweightHistoName = cms.string('ratio') ) process.hadronicAnaUnweighted.plotOptions = cms.PSet(
#input stuff for Run/Lumi selection with the "JSON"-formatted files from the PVT group import FWCore.PythonUtilities.LumiList as LumiList # setup process process = cms.Process("FWLitePlots") # get JSON file correctly parced JSONfile = 'Cert_132440-141961_7TeV_StreamExpress_Collisions10_JSON.txt' myList = LumiList.LumiList(filename=JSONfile).getCMSSWString().split(',') from Analysis.BoostedTopAnalysis.hadronicAnalysis_cfi import hadronicAnalysis as inputHadronicAnalysis process.hadronicAnalysis = inputHadronicAnalysis.clone( inputHadronicAnalysis.dijetSelectorParams.clone( pfMetSrc=cms.InputTag('patMETsPFlow'), ptMin=cms.double(50.0)), maxNPV=cms.int32(1), trig=cms.string('HLT_Jet30U')) #process.hadronicAnalysis.dijetSelectorParams.cutsToIgnore = cms.vstring(['Calo Jet ID', 'PF Jet ID']) #process.hadronicAnalysis.cutsToIgnore = cms.vstring(['Trigger']) process.plotOptions = cms.PSet( plotTracks=cms.bool(True) # reweightHistoFile = cms.string('boostedTopPlots.root'), # sampleHistoFile = cms.string('boostedTopPlots.root'), # reweightHistoName = cms.string('histos/nTracks') ) filesin = sys.argv[2] outfile = sys.argv[3]
import FWCore.PythonUtilities.LumiList as LumiList # setup process process = cms.Process("FWLitePlots") # get JSON file correctly parced JSONfile = 'Cert_132440-141961_7TeV_StreamExpress_Collisions10_JSON.txt' myList = LumiList.LumiList (filename = JSONfile).getCMSSWString().split(',') from Analysis.BoostedTopAnalysis.hadronicAnalysis_cfi import hadronicAnalysis as inputHadronicAnalysis process.hadronicAnalysis = inputHadronicAnalysis.clone( inputHadronicAnalysis.dijetSelectorParams.clone( pfMetSrc = cms.InputTag('patMETsPFlow'), ptMin = cms.double(50.0) ), maxNPV = cms.int32(1), trig = cms.string('HLT_Jet30U') ) #process.hadronicAnalysis.dijetSelectorParams.cutsToIgnore = cms.vstring(['Calo Jet ID', 'PF Jet ID']) #process.hadronicAnalysis.cutsToIgnore = cms.vstring(['Trigger']) process.plotOptions = cms.PSet( plotTracks = cms.bool(True) # reweightHistoFile = cms.string('boostedTopPlots.root'), # sampleHistoFile = cms.string('boostedTopPlots.root'), # reweightHistoName = cms.string('histos/nTracks') )
'dcap:///pnfs/cms/WAX/11/store/user/guofan/Jet/ttbsm_383_Oct25_147146_148058/e6b092d68d75aab417dfeee8751d8b0a/ttbsm_381_1_1_Ieu.root' )) ## Maximal Number of Events process.maxEvents = cms.untracked.PSet(input=cms.untracked.int32(3000)) from Analysis.BoostedTopAnalysis.hadronicAnalysis_cfi import hadronicAnalysis as inputHadronicAnalysis process.TFileService = cms.Service( "TFileService", fileName=cms.string("boostedTopHadronicStudies.root")) process.hadronicAna = cms.EDAnalyzer( 'EDHadronicAnalysis', hadronicAnalysis=inputHadronicAnalysis.clone( dijetSelectorParams=inputHadronicAnalysis.dijetSelectorParams.clone( pfMetSrc=cms.InputTag('patMETsPFlow'), ptMin=cms.double(200) #ptMin = cms.double(220) ), trig=cms.string('HLT_Jet100U_v2'), cutsToIgnore=cms.vstring("Trigger"))) process.hadronicAnaUnweighted = process.hadronicAna.clone() process.hadronicAna.plotOptions = cms.PSet( plotTracks=cms.bool(True), reweightHistoFile=cms.string('reweight_histo.root'), reweightHistoName=cms.string('ratio')) process.hadronicAnaUnweighted.plotOptions = cms.PSet(plotTracks=cms.bool(True)) process.p = cms.Path( # process.hadronicAna*