Exemplo n.º 1
0
import FWCore.ParameterSet.Config as cms

from CMGTools.Common.selections.kinematics_cfi import kinematics

cmgPFCandidate = cms.EDFilter(
    "PFCandidatePOProducer",
    cfg = cms.PSet(
      inputCollection = cms.InputTag("particleFlow")
      ),
    cuts = cms.PSet(
      kinematics = kinematics.clone()
      ),    
)
Exemplo n.º 2
0
import FWCore.ParameterSet.Config as cms

pfJetFactory = cms.PSet(inputCollection=cms.InputTag("patJetsWithVar"))
from CMGTools.Common.selections.kinematics_cfi import kinematics
cmgPFJet = cms.EDFilter("PFJetPOProducer",
                        cfg=pfJetFactory.clone(),
                        cuts=cms.PSet(jetKinematics=kinematics.clone()),
                        verbose=cms.untracked.bool(False))
Exemplo n.º 3
0
######################################################################

import FWCore.ParameterSet.Config as cms

from CMGTools.Common.selections.kinematics_cfi import kinematics

hemiFactory = cms.PSet(
    inputCollection = cms.VInputTag( cms.InputTag("dummy") ),
    maxCand = cms.uint32(30)
    )

cmgHemi = cms.EDFilter(
    "HemispherePOProducer",
    cfg = hemiFactory.clone(
      inputCollection = cms.VInputTag(cms.InputTag("cmgPFJetSel" ) )
      ),
    cuts = cms.PSet(kinematics = kinematics.clone())
    )

######################################################################
Exemplo n.º 4
0
         cms.PSet(
            type=cms.string("ThresholdVeto"),
            threshold=cms.double(0.5)# pt of the particles to be vetoed
         ),
      ),
    ),                          

    puIsoPar=cms.PSet(
      coneSize=cms.double(0.3),
      vetoes=cms.VPSet(
         cms.PSet(
            type=cms.string("ThresholdVeto"),
            threshold=cms.double(0.2)# pt of the particles to be vetoed
         ),
      ),
    ),                          

)

cmgPhoton = cms.EDFilter("PhotonPOProducer",
                         cfg = photonFactory.clone(
                         ),
                         cuts = cms.PSet(kinematics = kinematics.clone(
                              pt = cms.string('pt() > 2'),
                              eta = cms.string('abs(eta()) < 2.5'),
                              phi = cms.string('abs(phi()) < 3.2')
                         ))
                         )

######################################################################
Exemplo n.º 5
0
from CMGTools.Common.selections.kinematics_cfi import kinematics
from CMGTools.Common.selections.jetId_cfi import looseJetId

patJet = 'selectedPatJets'
pfJet = 'cmgPFJet'
pfLeadJet = 'cmgPFLeadJet'
pfDiJet = 'cmgPFDiJet'
pfFatJet = 'cmgPFFatJet'
pfFatDiJet = 'cmgPFFatDiJet'
pfTightDiJet = 'cmgPFTightDiJet'
pfFatTightDiJet = 'cmgPFFatTightDiJet'

# Produce PF Base Jet
allCuts = cms.PSet(
    jetKinematics=kinematics.clone(),
    looseJetId=looseJetId.clone(),
)

cmgPFJet = cmgPFJet.clone()
cmgPFJet.cfg.inputCollection = patJet
cmgPFJet.cuts = allCuts
cmgPFJet.cuts.jetKinematics.eta = cms.string('abs(eta()) < 2.5')

# Select PF PF Leading Jet
cmgPFLeadJet = leadingCMGPFJetSelector.clone()
cmgPFLeadJet.inputCollection = pfJet
cmgPFLeadJet.index = cms.int32(2)

# Produce PF PF Dijets
diPFJetFactory = cms.PSet(leg1Collection=cms.InputTag(pfLeadJet),
Exemplo n.º 6
0
######################################################################

import FWCore.ParameterSet.Config as cms

from CMGTools.Common.selections.kinematics_cfi import kinematics

multiJetFactory = cms.PSet(
    inputCollection = cms.InputTag("dummy")
    )

cmgMultiJet = cms.EDFilter(
    "MultiObjectPOProducer",
    cfg = multiJetFactory.clone(
      inputCollection = cms.InputTag("cmgPFJetSel")
      ),
    cuts = cms.PSet(kinematics = kinematics.clone())
    )

######################################################################
Exemplo n.º 7
0
import FWCore.ParameterSet.Config as cms

from CMGTools.Common.selections.kinematics_cfi import kinematics

baseJetScaler = cms.PSet(
    inputCollection = cms.InputTag("cmgBaseJet"),
    nSigma = cms.double(0.)
    )

cmgBaseJetUp = cms.EDFilter(
    "BaseJetPOScaler",
    cfg = baseJetScaler.clone(nSigma = 2.),
    cuts = cms.PSet(
    jetKinematics = kinematics.clone()
    )
)

cmgBaseJetDown = cms.EDFilter(
    "BaseJetPOScaler",
    cfg = baseJetScaler.clone(nSigma = -2.),
    cuts = cms.PSet(
    jetKinematics = kinematics.clone()
    )
)