process.selectedPrimaryVertexQuality = cms.EDFilter( "VertexSelector", src=cms.InputTag('offlinePrimaryVertices'), cut=cms.string( "isValid & ndof >= 4 & chi2 > 0 & tracksSize > 0 & abs(z) < 24 & abs(position.Rho) < 2." ), filter=cms.bool(False), ) ### GeneralTrack AssociationMap-specific includes from CommonTools.RecoUtils.pf_pu_assomap_cfi import Tracks2Vertex process.Tracks2VertexAM = Tracks2Vertex.clone( VertexCollection=cms.InputTag('selectedPrimaryVertexQuality'), VertexAssOneDim=cms.untracked.bool(False), VertexAssUseAbsDistance=cms.untracked.bool(True), ) ### PFCandidate AssociationMap-specific includes from CommonTools.RecoUtils.pfcand_assomap_cfi import PFCandAssoMap process.PFCand2VertexAM = PFCandAssoMap.clone( VertexCollection=cms.InputTag('selectedPrimaryVertexQuality'), VertexTrackAssociationMap=cms.InputTag('Tracks2VertexAM'), ) ### PFCandidateCollection-specific includes from CommonTools.RecoUtils.pfcand_nopu_witham_cfi import FirstVertexPFCandidates process.PFCand = FirstVertexPFCandidates.clone(
selectedPrimaryVertexQuality = cms.EDFilter( "VertexSelector", src=cms.InputTag('offlinePrimaryVertices'), cut=cms.string( "isValid & ndof >= 4 & chi2 > 0 & tracksSize > 0 & abs(z) < 24 & abs(position.Rho) < 2." ), filter=cms.bool(False), ) ### GeneralTrack AssociationMap-specific includes from CommonTools.RecoUtils.pf_pu_assomap_cfi import Tracks2Vertex Tracks2VertexAM = Tracks2Vertex.clone( VertexCollection=cms.InputTag('selectedPrimaryVertexQuality'), VertexAssOneDim=cms.untracked.bool(False), VertexAssUseAbsDistance=cms.untracked.bool(True), UseBeamSpotCompatibility=cms.untracked.bool(True), ignoreMissingCollection=cms.bool(True)) ### PFCandidate AssociationMap-specific includes from CommonTools.RecoUtils.pfcand_assomap_cfi import PFCandAssoMap PFCand2VertexAM = PFCandAssoMap.clone( VertexCollection=cms.InputTag('selectedPrimaryVertexQuality'), VertexTrackAssociationMap=cms.InputTag('Tracks2VertexAM'), ignoreMissingCollection=cms.bool(True)) ### PFCandidateCollection-specific includes from CommonTools.RecoUtils.pfcand_nopu_witham_cfi import FirstVertexPFCandidates PFCand = FirstVertexPFCandidates.clone(
selectedPrimaryVertexHighestPtTrackSumForPFMEtCorrType0 = cms.EDFilter("PATSingleVertexSelector", mode = cms.string('firstVertex'), vertices = cms.InputTag('selectedVerticesForPFMEtCorrType0'), filter = cms.bool(False) ) #-------------------------------------------------------------------------------- #-------------------------------------------------------------------------------- # association of PFCandidates to vertices from RecoParticleFlow.PFTracking.particleFlowDisplacedVertex_cfi import particleFlowDisplacedVertex from TrackingTools.TransientTrack.TransientTrackBuilder_cfi import * from CommonTools.RecoUtils.pf_pu_assomap_cfi import Tracks2Vertex trackToVertexAssociation = Tracks2Vertex.clone() from CommonTools.RecoUtils.pfcand_assomap_cfi import PFCandAssoMap pfCandidateToVertexAssociation = PFCandAssoMap.clone( VertexTrackAssociationMap = cms.InputTag('trackToVertexAssociation') ) #-------------------------------------------------------------------------------- #-------------------------------------------------------------------------------- # produce Type 0 MET corrections pfMETcorrType0 = cms.EDProducer("Type0PFMETcorrInputProducer", srcPFCandidateToVertexAssociations = cms.InputTag('pfCandidateToVertexAssociation'), srcHardScatterVertex = cms.InputTag('selectedPrimaryVertexHighestPtTrackSumForPFMEtCorrType0'), correction = cms.PSet( formula = cms.string("-([0] + [1]*x)*(1.0 + TMath::Erf(-[2]*TMath::Power(x, [3])))"),
# CHS selectedPrimaryVertexQuality = cms.EDFilter( "VertexSelector", src=cms.InputTag("offlinePrimaryVertices"), cut=cms.string("isValid & ndof >= 4 & chi2 > 0 & tracksSize > 0 & abs(z) < 24 & abs(position.Rho) < 2."), filter=cms.bool(False), ) ### GeneralTrack AssociationMap-specific includes from CommonTools.RecoUtils.pf_pu_assomap_cfi import Tracks2Vertex Tracks2VertexAM = Tracks2Vertex.clone( VertexCollection=cms.InputTag("selectedPrimaryVertexQuality"), VertexAssOneDim=cms.untracked.bool(False), VertexAssUseAbsDistance=cms.untracked.bool(True), UseBeamSpotCompatibility=cms.untracked.bool(True), ignoreMissingCollection=cms.bool(True), ) ### PFCandidate AssociationMap-specific includes from CommonTools.RecoUtils.pfcand_assomap_cfi import PFCandAssoMap PFCand2VertexAM = PFCandAssoMap.clone( VertexCollection=cms.InputTag("selectedPrimaryVertexQuality"), VertexTrackAssociationMap=cms.InputTag("Tracks2VertexAM"), ignoreMissingCollection=cms.bool(True), ) ### PFCandidateCollection-specific includes from CommonTools.RecoUtils.pfcand_nopu_witham_cfi import FirstVertexPFCandidates
process.load('Configuration.StandardSequences.GeometryPilot2_cff') process.load("Configuration.StandardSequences.Reconstruction_cff") process.load("Configuration.StandardSequences.MagneticField_cff") process.selectedPrimaryVertexQuality = cms.EDFilter("VertexSelector", src = cms.InputTag('offlinePrimaryVertices'), cut = cms.string("isValid & ndof >= 4 & chi2 > 0 & tracksSize > 0 & abs(z) < 24 & abs(position.Rho) < 2."), filter = cms.bool(False), ) ### GeneralTrack AssociationMap-specific includes from CommonTools.RecoUtils.pf_pu_assomap_cfi import Tracks2Vertex process.Tracks2VertexAM = Tracks2Vertex.clone( VertexCollection = cms.InputTag('selectedPrimaryVertexQuality'), VertexAssOneDim = cms.untracked.bool(False), VertexAssUseAbsDistance = cms.untracked.bool(True), ) ### PFCandidate AssociationMap-specific includes from CommonTools.RecoUtils.pfcand_assomap_cfi import PFCandAssoMap process.PFCand2VertexAM = PFCandAssoMap.clone( VertexCollection = cms.InputTag('selectedPrimaryVertexQuality'), VertexTrackAssociationMap = cms.InputTag('Tracks2VertexAM'), ) ### PFCandidateCollection-specific includes from CommonTools.RecoUtils.pfcand_nopu_witham_cfi import FirstVertexPFCandidates process.PFCand = FirstVertexPFCandidates.clone(
process.load("Configuration.StandardSequences.Reconstruction_cff") process.load("Configuration.StandardSequences.MagneticField_cff") process.selectedPrimaryVertexQuality = cms.EDFilter( "VertexSelector", src=cms.InputTag('offlinePrimaryVertices'), cut=cms.string( "isValid & ndof >= 4 & chi2 > 0 & tracksSize > 0 & abs(z) < 24 & abs(position.Rho) < 2." ), filter=cms.bool(False), ) ### GeneralTrack AssociationMap-specific includes from CommonTools.RecoUtils.pf_pu_assomap_cfi import Tracks2Vertex process.Tracks2VertexAM = Tracks2Vertex.clone( VertexCollection=cms.InputTag('selectedPrimaryVertexQuality'), ) ### PFCandidate AssociationMap-specific includes from CommonTools.RecoUtils.pfcand_assomap_cfi import PFCandAssoMap process.PFCand2VertexAM = PFCandAssoMap.clone( VertexCollection=cms.InputTag('selectedPrimaryVertexQuality'), ) ### PFCandidateCollection-specific includes from CommonTools.RecoUtils.pfcand_nopu_witham_cfi import FirstVertexPFCandidates process.PFCand = FirstVertexPFCandidates.clone( VertexPFCandAssociationMap=cms.InputTag('PFCand2VertexAM'), ) process.p = cms.Path(process.selectedPrimaryVertexQuality * process.Tracks2VertexAM * process.PFCand2VertexAM *
### standard includes process.load('Configuration.StandardSequences.GeometryPilot2_cff') process.load("Configuration.StandardSequences.Reconstruction_cff") process.load("Configuration.StandardSequences.MagneticField_cff") process.selectedPrimaryVertexQuality = cms.EDFilter("VertexSelector", src = cms.InputTag('offlinePrimaryVertices'), cut = cms.string("isValid & ndof >= 4 & chi2 > 0 & tracksSize > 0 & abs(z) < 24 & abs(position.Rho) < 2."), filter = cms.bool(False), ) ### GeneralTrack AssociationMap-specific includes from CommonTools.RecoUtils.pf_pu_assomap_cfi import Tracks2Vertex process.Tracks2VertexAM = Tracks2Vertex.clone( VertexCollection = cms.InputTag('selectedPrimaryVertexQuality'), ) ### PFCandidate AssociationMap-specific includes from CommonTools.RecoUtils.pfcand_assomap_cfi import PFCandAssoMap process.PFCand2VertexAM = PFCandAssoMap.clone( VertexCollection = cms.InputTag('selectedPrimaryVertexQuality'), ) ### PFCandidateCollection-specific includes from CommonTools.RecoUtils.pfcand_nopu_witham_cfi import FirstVertexPFCandidates process.PFCand = FirstVertexPFCandidates.clone( VertexPFCandAssociationMap = cms.InputTag('PFCand2VertexAM'), )