Пример #1
0
    process.GlobalTag.globaltag = autoCond['run2_data']
else:
    process.GlobalTag.globaltag = autoCond['run2_mc']

if usePrivateSQlite:
    from CondCore.DBCommon.CondDBSetup_cfi import *
    import os
    if runOnData:
        era = "Summer15_25nsV6_DATA"
    else:
        era = "Summer15_25nsV6_MC"

    process.jec = cms.ESSource(
        "PoolDBESSource",
        CondDBSetup,
        connect=cms.string("frontier://FrontierPrep/CMS_COND_PHYSICSTOOLS"),
        toGet=cms.VPSet(
            cms.PSet(record=cms.string("JetCorrectionsRecord"),
                     tag=cms.string("JetCorrectorParametersCollection_" + era +
                                    "_AK4PF"),
                     label=cms.untracked.string("AK4PF")),
            cms.PSet(record=cms.string("JetCorrectionsRecord"),
                     tag=cms.string("JetCorrectorParametersCollection_" + era +
                                    "_AK4PFchs"),
                     label=cms.untracked.string("AK4PFchs")),
        ))
    process.es_prefer_jec = cms.ESPrefer("PoolDBESSource", 'jec')

### =====================================================================================================
# Define the input source
fname = 'root://eoscms.cern.ch//store/relval/CMSSW_8_0_20/RelValTTbar_13/GEN-SIM-RECO/80X_mcRun2_asymptotic_2016_TrancheIV_v4_Tr4GT_v4-v1/00000/1E399A96-C47A-E611-A718-0025905B8572.root'
Пример #2
0
process.patTaus.isoDeposits = cms.PSet()
process.patPhotons.isoDeposits = cms.PSet()

process.patMuons.embedTrack = True  # used for IDs
process.patMuons.embedCombinedMuon = True  # used for IDs
process.patMuons.embedMuonBestTrack = True  # used for IDs
process.patMuons.embedStandAloneMuon = True  # maybe?
process.patMuons.embedPickyMuon = False  # no, use best track
process.patMuons.embedTpfmsMuon = False  # no, use best track
process.patMuons.embedDytMuon = False  # no, use best track

process.patElectrons.embedPflowSuperCluster = False
process.patElectrons.embedPflowBasicClusters = False
process.patElectrons.embedPflowPreshowerClusters = False

process.selectedPatJets.cut = cms.string("pt > 10")
process.selectedPatMuons.cut = cms.string(
    "pt > 5 || isPFMuon || (pt > 3 && (isGlobalMuon || isStandAloneMuon || numberOfMatches > 0 || muonID('RPCMuLoose')))"
)
process.selectedPatElectrons.cut = cms.string("")
process.selectedPatTaus.cut = cms.string(
    "pt > 20 && tauID('decayModeFinding')> 0.5")
process.selectedPatPhotons.cut = cms.string("pt > 15 && hadTowOverEm()<0.15 ")

process.slimmedJets.clearDaughters = False

from PhysicsTools.PatAlgos.tools.jetTools import addJetCollection

addJetCollection(process,
                 labelName='CA8',
                 jetSource=cms.InputTag('ca8PFJetsCHS'))
Пример #3
0
process.patJets.embedGenPartonMatch = False

process.patMuons.isoDeposits = cms.PSet()
process.patElectrons.isoDeposits = cms.PSet()
process.patTaus.isoDeposits = cms.PSet()
process.patPhotons.isoDeposits = cms.PSet()

process.patMuons.embedTrack         = True  # used for IDs
process.patMuons.embedCombinedMuon  = True  # used for IDs
process.patMuons.embedMuonBestTrack = True  # used for IDs
process.patMuons.embedStandAloneMuon = True # maybe?
process.patMuons.embedPickyMuon = False   # no, use best track
process.patMuons.embedTpfmsMuon = False   # no, use best track
process.patMuons.embedDytMuon   = False   # no, use best track

process.selectedPatJets.cut = cms.string("pt > 10")
process.selectedPatMuons.cut = cms.string("pt > 3") 
process.selectedPatElectrons.cut = cms.string("pt > 5") 
process.selectedPatTaus.cut = cms.string("pt > 20")

process.slimmedJets.clearDaughters = False
#process.slimmedElectrons.dropRecHits = True
#process.slimmedElectrons.dropBasicClusters = True
#process.slimmedElectrons.dropPFlowClusters = True
#process.slimmedElectrons.dropPreshowerClusters = True

from PhysicsTools.PatAlgos.tools.trigTools import switchOnTriggerStandAlone
switchOnTriggerStandAlone( process )
process.patTrigger.packTriggerPathNames = cms.bool(True)

#                                         ##
Пример #4
0
from Configuration.AlCa.autoCond import autoCond
if runOnData:
  process.GlobalTag.globaltag = autoCond['run2_data']
else:
  process.GlobalTag.globaltag = autoCond['run2_mc']

if usePrivateSQlite:
    from CondCore.DBCommon.CondDBSetup_cfi import *
    import os
    if runOnData:
      era="Summer15_25nsV6_DATA"
    else:
      era="Summer15_25nsV6_MC"
      
    process.jec = cms.ESSource("PoolDBESSource",CondDBSetup,
                               connect = cms.string( "frontier://FrontierPrep/CMS_COND_PHYSICSTOOLS"),
                               toGet =  cms.VPSet(
            cms.PSet(
                record = cms.string("JetCorrectionsRecord"),
                tag = cms.string("JetCorrectorParametersCollection_"+era+"_AK4PF"),
                label= cms.untracked.string("AK4PF")
                ),
            cms.PSet(
                record = cms.string("JetCorrectionsRecord"),
                tag = cms.string("JetCorrectorParametersCollection_"+era+"_AK4PFchs"),
                label= cms.untracked.string("AK4PFchs")
                ),
            )
                               )
    process.es_prefer_jec = cms.ESPrefer("PoolDBESSource",'jec')