Beispiel #1
0
#MC
#process.load("KoPFA.CommonTools.Sources.CMG.V5_10_0.Summer12.patTuple_TTbarTuneZ2_cff")
#process.load("KoPFA.CommonTools.Sources.CMG.V5_10_0.Summer12.patTuple_TTbarFullLepMGDecays_cff")
#process.load("KoPFA.CommonTools.Sources.CMG.V5_10_0.Summer12.cmgTuple_TTH_HToBB_M125_cff")
#process.load("KoPFA.CommonTools.Sources.CMG.V5_10_0.Summer12.cmgTuple_TTbarFullLepMGDecays_cff")
#process.load("KoPFA.CommonTools.Sources.CMG.V5_10_0.Summer12.cmgTuple_TTbarTuneZ2_cff")
#process.load("KoPFA.CommonTools.Sources.CMG.V5_10_0.Summer12.cmgTuple_ZJets_cff")
#process.load("KoPFA.CommonTools.Sources.CMG.V5_10_0.Summer12.patTuple_QCD_cff")

runOnMC = True
runOn2012 = True

from CMGTools.Common.Tools.applyJSON_cff import applyJSON
json = '/afs/cern.ch/cms/CAF/CMSCOMM/COMM_DQM/certification/Collisions12/8TeV/Prompt/Cert_190456-203002_8TeV_PromptReco_Collisions12_JSON_v2.txt'
if not runOnMC:
    applyJSON(process, json)

process.nEventsFilter = cms.EDProducer("EventCountProducer")

process.load("KoPFA.CMGAnalyzer.TtFullLepKinSolutionProducer_cfi")
process.load("KoPFA.CMGAnalyzer.TtFullLepMaosSolutionProducer_cfi")

from KoPFA.CMGAnalyzer.JetEnergyScale_cfi import *
JetEnergyScale.electronLabel = cms.InputTag("cmgElectronSel")
JetEnergyScale.muonLabel = cms.InputTag("cmgMuonSel")

nEventsPatHLT = cms.EDProducer("EventCountProducer")
process.nEventsFilter = cms.EDProducer("EventCountProducer")

process.p5 = cms.Path(process.hltHighLevelMuMu *
                      #process.hltHighLevelMuEl*
#MC
#process.load("KoPFA.CommonTools.Sources.CMG.V5_12_0_44X.Fall11.patTuple_TTbarTuneZ2_cff")


#process.source = cms.Source("PoolSource",
#  fileNames = cms.untracked.vstring(
    #pickRelValInputFiles() # <-- picks automatically RelVal input files for the current release
    #'rfio:/castor/cern.ch/user/j/jhgoh/TopAnalysis/pf2pat/MuEl/MC/20110603/DYmm20to50/patTuple_skim_1_1_ogh.root',
#    '/store/caf/user/tjkim/mc/Summer12_DR53X/TTJets_FullLeptMGDecays_8TeV-madgraph/CMG/cmgTuple.root'
#  )
#)

from CMGTools.Common.Tools.applyJSON_cff import applyJSON
json = 'Cert_160404-180252_7TeV_2011Full_Golden_JSON.txt'
if not runOnMC:
    applyJSON(process, json )

#############2011 analysis######################################
process.PUweight.PileUpRD   = PileUpRD2011
process.PUweight.PileUpRDup = PileUpRD2011UP
process.PUweight.PileUpRDdn = PileUpRD2011DN
process.PUweight.PileUpMC   = Fall11

process.nEventsFilter = cms.EDProducer("EventCountProducer")

process.load("KoPFA.CMGAnalyzer.TtFullLepKinSolutionProducer_cfi")
process.load("KoPFA.CMGAnalyzer.TtFullLepMaosSolutionProducer_cfi")

#process.BaseSequence = cms.Sequence(
 #   process.ttbar2bFilter*
 #   process.EventFilter*